/* 
   style.css for Femiteryst
   Theme: Retro with Adaptive Typography
   Color Scheme: Pastel
   Animation Style: Particles Animation
   Fonts: Oswald (headers) and Nunito (body)
   Framework: Extends Bulma
*/

/* ===== CSS Variables ===== */
:root {
  /* Primary Colors */
  --primary-color: #6a5acd; /* Pastel Purple */
  --primary-dark: #5a4abf;
  --primary-light: #8678d7;
  
  /* Secondary Colors */
  --secondary-color: #f08080; /* Light Coral */
  --secondary-dark: #e06868;
  --secondary-light: #f59999;
  
  /* Accent Colors */
  --accent-color: #98d8c8; /* Mint */
  --accent-dark: #7fc1b0;
  --accent-light: #b1e6da;
  
  /* Neutral Colors */
  --bg-color: #f9f7f7;
  --text-color: #333333;
  --text-light: #6c757d;
  --border-color: #e0e0e0;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --secondary-gradient: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  --accent-gradient: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  
  /* Shadows */
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --button-shadow: 0 4px 8px rgba(106, 90, 205, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* Font Sizes */
  --h1-size-desktop: 3.5rem;
  --h1-size-tablet: 3rem;
  --h1-size-mobile: 2.25rem;
  
  --h2-size-desktop: 2.75rem;
  --h2-size-tablet: 2.25rem;
  --h2-size-mobile: 1.75rem;
  
  --h3-size-desktop: 2rem;
  --h3-size-tablet: 1.75rem;
  --h3-size-mobile: 1.5rem;
  
  --text-size-desktop: 1.125rem;
  --text-size-tablet: 1rem;
  --text-size-mobile: 0.9375rem;

  /* Spacing */
  --section-padding: 5rem 0;
  --section-padding-mobile: 3rem 0;
}

/* ===== Base Styles ===== */
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.title, .subtitle {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.section {
  padding: var(--section-padding);
}

/* ===== Buttons ===== */
.button {
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button.is-primary {
  background-color: var(--primary-color);
  border-color: transparent;
}

.button.is-primary:hover, 
.button.is-primary:focus {
  background-color: var(--primary-dark);
  box-shadow: var(--button-shadow);
  transform: translateY(-2px);
}

.button.is-secondary {
  background-color: var(--secondary-color);
  color: white;
  border-color: transparent;
}

.button.is-secondary:hover, 
.button.is-secondary:focus {
  background-color: var(--secondary-dark);
  box-shadow: 0 4px 8px rgba(240, 128, 128, 0.3);
  transform: translateY(-2px);
}

/* Button with particle effect on hover */
.button.is-primary::after,
.button.is-secondary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: -1;
  animation-duration: 0.6s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

.button.is-primary:hover::after,
.button.is-secondary:hover::after {
  animation-name: buttonParticle;
}

@keyframes buttonParticle {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(20);
    opacity: 0;
  }
}

/* ===== Navbar ===== */
.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  transition: all var(--transition-normal);
}

.navbar-item {
  font-family: 'Oswald', sans-serif;
  color: var(--text-color);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary-color);
  background-color: transparent;
}

.navbar-brand .title {
  margin: 0;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero .title, 
.hero .subtitle {
  color: white !important; /* Ensure readability over any background */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-body {
  position: relative;
  z-index: 2;
}

/* Hero particles animation */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.hero.is-medium {
  min-height: 500px;
  display: flex;
  align-items: center;
}

/* ===== Services Section ===== */
#servicios .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-normal);
  box-shadow: var(--card-shadow);
  border-radius: 8px;
  overflow: hidden;
}

#servicios .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

#servicios .card-image {
  overflow: hidden;
  flex-shrink: 0;
}

#servicios .card-image img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: 240px;
  object-fit: cover;
}

#servicios .card:hover .card-image img {
  transform: scale(1.05);
}

#servicios .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ===== Behind the Scenes Section ===== */
#detras-escena {
  background-color: #f5f5f5;
  position: relative;
  overflow: hidden;
}

#detras-escena .columns {
  position: relative;
  z-index: 2;
}

#detras-escena .image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
}

#detras-escena .image img {
  transition: transform var(--transition-normal);
  width: 100%;
  object-fit: cover;
}

#detras-escena .image:hover img {
  transform: scale(1.03);
}

#detras-escena h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* ===== Research Section ===== */
#investigacion .box {
  border-radius: 8px;
  transition: transform var(--transition-normal);
  box-shadow: var(--card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

#investigacion .box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#investigacion .box h3 {
  color: var(--primary-color);
}

#investigacion ul {
  padding-left: 1.5rem;
}

#investigacion ul li {
  margin-bottom: 0.75rem;
}

#investigacion .box[style*="background-image"] {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* ===== Case Studies Section ===== */
#casos-estudio {
  background-color: #f9f9f9;
}

#casos-estudio .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-normal);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

#casos-estudio .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

#casos-estudio .card-image {
  overflow: hidden;
  text-align: center;
}

#casos-estudio .card-image img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin: 0 auto;
}

#casos-estudio .card:hover .card-image img {
  transform: scale(1.05);
}

#casos-estudio .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#casos-estudio .card-content h3 {
  color: var(--primary-color);
}

/* ===== External Resources Section ===== */
#recursos-externos .card {
  height: 100%;
  transition: all var(--transition-normal);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

#recursos-externos .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#recursos-externos .card-content h3 {
  color: var(--primary-color);
}

#recursos-externos ul {
  padding-left: 0;
  list-style-type: none;
}

#recursos-externos ul li {
  margin-bottom: 0.75rem;
}

#recursos-externos a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

#recursos-externos a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

#recursos-externos a:hover::after {
  width: 100%;
}

/* ===== Webinars Section ===== */
#webinars {
  background-color: #f5f5f5;
}

#webinars .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-normal);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

#webinars .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

#webinars .card-image {
  overflow: hidden;
  text-align: center;
}

#webinars .card-image img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin: 0 auto;
}

#webinars .card:hover .card-image img {
  transform: scale(1.05);
}

#webinars .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#webinars .card-content h3 {
  color: var(--primary-color);
}

#webinars .card-content p:last-child {
  margin-top: auto;
}

/* ===== News Section ===== */
#noticias .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-normal);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

#noticias .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#noticias .card-image {
  overflow: hidden;
  text-align: center;
}

#noticias .card-image img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin: 0 auto;
}

#noticias .card:hover .card-image img {
  transform: scale(1.05);
}

#noticias .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#noticias .card-content h3 {
  color: var(--primary-color);
}

/* ===== Partners Section ===== */
#aliados {
  background-color: #f9f9f9;
}

#aliados .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-normal);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  text-align: center;
}

#aliados .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#aliados .card-image {
  overflow: hidden;
  padding: 1rem;
  text-align: center;
}

#aliados .card-image img {
  transition: transform var(--transition-slow);
  height: 150px;
  object-fit: contain;
  margin: 0 auto;
}

#aliados .card:hover .card-image img {
  transform: scale(1.05);
}

#aliados .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== FAQ Section ===== */
#preguntas-frecuentes .accordion {
  border-radius: 8px;
  overflow: hidden;
}

#preguntas-frecuentes .accordion-item {
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  transition: background-color var(--transition-fast);
}

#preguntas-frecuentes .accordion-item:last-child {
  border-bottom: none;
}

#preguntas-frecuentes .accordion-header {
  padding: 0;
}

#preguntas-frecuentes .accordion-button {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  background: transparent;
  border: none;
  padding: 1.5rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
  color: var(--text-color);
}

#preguntas-frecuentes .accordion-button:hover {
  color: var(--primary-color);
}

#preguntas-frecuentes .accordion-button::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform var(--transition-fast);
}

#preguntas-frecuentes .accordion-item.is-active .accordion-button::after {
  transform: translateY(-50%) rotate(45deg);
}

#preguntas-frecuentes .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
  padding: 0 1.5rem;
}

#preguntas-frecuentes .accordion-item.is-active .accordion-content {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

/* ===== Contact Section ===== */
#contacto {
  background-color: #f5f5f5;
}

#contacto .box {
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  height: 100%;
}

#contacto form .input, 
#contacto form .textarea,
#contacto form .select {
  transition: border-color var(--transition-fast);
  border-width: 2px;
}

#contacto form .input:focus, 
#contacto form .textarea:focus,
#contacto form .select:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-light);
}

#contacto form .label {
  color: var(--text-color);
  font-weight: 600;
}

#contacto .box h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

#contacto .image {
  border-radius: 8px;
  overflow: hidden;
}

#contacto .image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ===== Footer ===== */
.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 4rem 1.5rem 3rem;
}

.footer h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer p, .footer li {
  margin-bottom: 0.75rem;
}

.footer ul {
  list-style-type: none;
  padding-left: 0;
}

.footer a {
  color: #ecf0f1;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

.footer .social-links {
  margin-top: 1.5rem;
}

.footer .social-links a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.footer .social-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-light);
  transition: width var(--transition-normal);
}

.footer .social-links a:hover::after {
  width: 100%;
}

/* ===== Success Page ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.success-page .content {
  max-width: 600px;
}

/* ===== Terms & Privacy Pages ===== */
.terms-page,
.privacy-page {
  padding-top: 100px !important;
}

.terms-page .container,
.privacy-page .container {
  max-width: 800px;
}

/* ===== About Page ===== */
.about-page {
  padding-top: 5rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.team-member-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Read More Links ===== */
.read-more {
  font-weight: 600;
  color: var(--primary-color);
  display: inline-block;
  position: relative;
  padding-right: 20px;
  transition: all var(--transition-normal);
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-normal);
}

.read-more:hover {
  color: var(--primary-dark);
  padding-right: 25px;
}

.read-more:hover::after {
  transform: translateY(-50%) translateX(5px);
}

/* ===== Media Queries ===== */
@media screen and (max-width: 1023px) {
  .section {
    padding: var(--section-padding-mobile);
  }
  
  h1, .title.is-1 {
    font-size: var(--h1-size-tablet);
  }
  
  h2, .title.is-2 {
    font-size: var(--h2-size-tablet);
  }
  
  h3, .title.is-3, .title.is-4 {
    font-size: var(--h3-size-tablet);
  }
  
  p, .content {
    font-size: var(--text-size-tablet);
  }
}

@media screen and (max-width: 768px) {
  h1, .title.is-1 {
    font-size: var(--h1-size-mobile);
  }
  
  h2, .title.is-2 {
    font-size: var(--h2-size-mobile);
  }
  
  h3, .title.is-3, .title.is-4 {
    font-size: var(--h3-size-mobile);
  }
  
  p, .content {
    font-size: var(--text-size-mobile);
  }
  
  .navbar-menu {
    box-shadow: none;
  }
  
  .hero.is-medium {
    min-height: 400px;
  }
  
  #detras-escena .columns {
    margin-bottom: 2rem;
  }
  
  #investigacion .box,
  #casos-estudio .card,
  #webinars .card,
  #noticias .card {
    margin-bottom: 1.5rem;
  }
}

/* Animation for particles in hero background */
@keyframes floatingParticles {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) translateX(20px);
    opacity: 0;
  }
}

/* Add particle elements to hero on load */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: floatingParticles 6s ease-in-out infinite;
}