/* 
 * Estilos principales para el sitio de Auditores Financieros
 * Colores:
 * - Principal: #258570 (birkuza eléctrica)
 * - Acento: #2b2e7f (azul indigo profundo)
 * - Fondo: #fff9d9 (amarillo pastel)
 * - Botones: #ff5f57 (coral brillante)
 * - Texto: #2e2e2e (gris grafito)
 */

/* === Reset y estilos base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  scroll-padding-top: 8rem; /* Ajuste para el header fijo */
}

body {
  font-family: 'Arial', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #2e2e2e;
  background-color: #fff9d9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0.8rem;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.15);
}

a {
  text-decoration: none;
  color: #2b2e7f;
  transition: color 0.3s ease;
}

a:hover {
  color: #258570;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === Tipografía === */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 2rem;
  line-height: 1.2;
  font-weight: 700;
  color: #2b2e7f;
}

h1 {
  font-size: 4.2rem;
  text-shadow: 0.2rem 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-size: 3.6rem;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  text-shadow: 0.1rem 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
}

h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 0.4rem;
  background-color: #258570;
  border-radius: 0.2rem;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 247, 192, 0.3);
}

h3 {
  font-size: 2.4rem;
  color: #258570;
  text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.1);
}

p {
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

/* === Botones === */
.btn {
  display: inline-block;
  padding: 1.5rem 3.5rem;
  border-radius: 5rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
}

.btn-primary {
  background-color: #ff5f57;
  color: #fff;
  box-shadow: 0 0.4rem 0.8rem rgba(255, 95, 87, 0.3);
}

.btn-primary:hover {
  background-color: #e54a42;
  color: #fff;
  transform: translateY(-0.2rem);
  box-shadow: 0 0.6rem 1.2rem rgba(255, 95, 87, 0.4);
}

.btn-secondary {
  background-color: #fff;
  color: #2b2e7f;
  border: 0.2rem solid #2b2e7f;
}

.btn-secondary:hover {
  background-color: #2b2e7f;
  color: #fff;
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 0.8rem rgba(43, 46, 127, 0.3);
}

.btn-nav {
  background-color: #258570;
  color: #2b2e7f;
  padding: 1rem 2.5rem;
}

.btn-nav:hover {
  background-color: #00e0b0;
  color: #2b2e7f;
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 0.8rem rgba(0, 247, 192, 0.3);
}

.btn-cookie {
  background-color: #2b2e7f;
  color: #fff;
  padding: 0.8rem 2rem;
}

.btn-cookie:hover {
  background-color: #1f2260;
  transform: translateY(-0.1rem);
}

/* === Header === */
.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0.2rem 1.5rem rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(0.5rem);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.logo {
  width: 18rem;
}

.logo-img {
  height: 5rem;
  width: auto;
  box-shadow: none;
}

.logo-img:hover {
  transform: scale(1.05);
  box-shadow: none;
}

/* === Navegación === */
.main-nav {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  width: 3rem;
  height: 2rem;
  position: relative;
}

.menu-line {
  display: block;
  width: 100%;
  height: 0.3rem;
  background-color: #2b2e7f;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.menu-line:nth-child(1) {
  top: 0;
}

.menu-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-line:nth-child(3) {
  bottom: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu li {
  margin-left: 3rem;
}

.nav-menu a {
  font-weight: 700;
  position: relative;
}

.nav-menu a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 0.2rem;
  background-color: #258570;
  transition: width 0.3s ease;
}

.nav-menu a:not(.btn):hover::after {
  width: 100%;
}

/* === Hero Section === */
.hero {
  background-image: linear-gradient(rgba(43, 46, 127, 0.8), rgba(43, 46, 127, 0.8)), url('../img/3IxitX.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 18rem 0 12rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 247, 192, 0.2) 0%, rgba(43, 46, 127, 0.2) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #fff;
  font-size: 5rem;
  margin-bottom: 2.5rem;
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 2.2rem;
  max-width: 70rem;
  margin: 0 auto 4.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* === About Section === */
.about {
  padding: 10rem 0;
  background-color: #fff;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h3 {
  color: #258570;
  margin-top: 3.5rem;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
  position: relative;
  transition: transform 0.3s ease;
}

.about-image:hover {
  transform: translateY(-1rem);
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(43, 46, 127, 0.5), transparent);
}

/* === Services Section === */
.services {
  padding: 10rem 0;
  background-color: #fff9d9;
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.service-card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 0;
  text-align: center;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-1rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.service-image {
  width: 100%;
  height: 20rem;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-icon {
  margin: -4rem auto 2rem;
  width: 8rem;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 247, 192, 0.9);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(10deg);
  background-color: #00f7c0;
}

.service-icon img {
  width: 4rem;
  height: 4rem;
}

.service-card h3 {
  margin-bottom: 1.5rem;
  padding: 0 3rem;
}

.service-card p {
  margin-bottom: 2rem;
  padding: 0 3rem;
}

.service-card .btn {
  margin: 0 3rem 3rem;
}

/* === Benefits Section === */
.benefits {
  padding: 10rem 0;
  background-color: #fff;
  position: relative;
}

.benefits::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.benefit-item {
  text-align: center;
  padding: 3rem;
  background-color: rgba(255, 249, 217, 0.5);
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefit-item:hover {
  transform: translateY(-1rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  width: 8rem;
  height: 8rem;
  background-color: rgba(0, 247, 192, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
  background-color: rgba(0, 247, 192, 0.2);
  transform: scale(1.1);
}

.benefit-icon img {
  width: 4rem;
  height: 4rem;
  transition: transform 0.3s ease;
}

.benefit-item:hover .benefit-icon img {
  transform: rotate(10deg);
}

.benefit-item h3 {
  margin-top: 0;
  color: #2b2e7f;
  margin-bottom: 1.5rem;
}

/* === Testimonials Section === */
.testimonials {
  padding: 8rem 0;
  background-color: #fff9d9;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.testimonial-card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-style: italic;
  position: relative;
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 4rem;
  color: #258570;
  position: absolute;
  line-height: 1;
}

.testimonial-text::before {
  top: -1rem;
  left: -1rem;
}

.testimonial-text::after {
  bottom: -3rem;
  right: -1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.testimonial-author img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 0.5rem;
}

.author-info p {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 0;
}

/* === Why Us Section === */
.why-us {
  padding: 8rem 0;
  background-color: #fff;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.why-us-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.why-us-number {
  background-color: #258570;
  color: #2b2e7f;
  font-size: 2.4rem;
  font-weight: 700;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.why-us-item h3 {
  margin-bottom: 1rem;
}

/* === Contact Form Section === */
.contact-form {
  padding: 8rem 0;
}

.contact-form h2 {
  color: #fff;
}

.contact-form h2::after {
  background-color: #258570;
}

.contact-form-container {
  max-width: 60rem;
  margin: 0 auto;
  background-color: #fff;
  padding: 4rem;
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #2b2e7f;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1.2rem;
  border: 0.1rem solid #ddd;
  border-radius: 0.5rem;
  background-color: #f9f9f9;
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-group.checkbox input {
  width: auto;
}

.form-group.checkbox label {
  margin-bottom: 0;
}

/* === Contact Section === */
.contact {
  padding: 8rem 0;
  background-color: #fff9d9;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.contact-icon {
  width: 5rem;
  height: 5rem;
  background-color: rgba(0, 247, 192, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon img {
  width: 2.5rem;
  height: 2.5rem;
}

.contact-text h3 {
  margin-bottom: 0.5rem;
}

.contact-map {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

/* === Footer === */
.site-footer {
  background-color: #2b2e7f;
  color: #fff;
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo-img {
  height: 5rem;
  margin-bottom: 1.5rem;
}

.footer-links h3,
.footer-contact h3,
.footer-legal h3 {
  color: #258570;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-contact ul,
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a,
.footer-contact a,
.footer-legal a {
  color: #fff;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-legal a:hover {
  color: #258570;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 0.1rem solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0;
}

/* === Cookie Popup === */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding: 2rem 0;
  box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: bottom 0.5s ease;
}

.cookie-popup.active {
  bottom: 0;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.cookie-content p {
  margin-bottom: 0;
  margin-right: 2rem;
}

/* === Media Queries === */
@media screen and (max-width: 1024px) {
  html {
    font-size: 56.25%;
  }
  
  .services-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .menu-toggle:checked + .menu-icon .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
  }

  .menu-toggle:checked + .menu-icon .menu-line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .menu-icon .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
  }
  .why-us-item{
    flex-direction: column;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease;
  }

  .menu-toggle:checked ~ .nav-menu {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .about-content,
  .contact-content,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content p {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .services-grid,
  .benefits-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 3rem;
  }

  .hero {
    padding: 12rem 0 8rem;
  }

  .contact-form-container {
    padding: 2.5rem;
  }

  .testimonial-author {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === Animaciones === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero p,
.hero .btn {
  animation: fadeIn 1s ease-out forwards;
}

.hero p {
  animation-delay: 0.3s;
}

.hero .btn {
  animation-delay: 0.6s;
  opacity: 0;
}

.service-card,
.benefit-item,
.testimonial-card,
.why-us-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.testimonial-card:hover {
  transform: translateY(-1rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.logo-img {
  transition: transform 0.5s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* Estilos específicos para la página gracias.php */
.thanks-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15rem 2rem 12rem;
}

.thanks-content {
  margin: 0 auto;
  max-width: 60rem;
}

.thanks-icon {
  font-size: 8rem;
  color: #258570;
  margin-bottom: 3rem;
}

.thanks-content h1 {
  margin-bottom: 2rem;
}

.thanks-content p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
}

/* === Page Header (for internal pages) === */
.page-header {
  background-image: linear-gradient(rgba(43, 46, 127, 0.8), rgba(43, 46, 127, 0.8)), url('../img/3IxitX.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 15rem 0 8rem;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 247, 192, 0.2) 0%, rgba(43, 46, 127, 0.2) 100%);
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
}

.page-header p {
  font-size: 2rem;
  max-width: 70rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

/* === Policy Pages === */
.policy-page {
  padding: 12rem 0 8rem;
  background-color: #fff;
}

.policy-content {
  max-width: 90rem;
  margin: 0 auto;
  padding: 3rem;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
}

.policy-content h2 {
  font-size: 2.8rem;
  text-align: left;
  margin-top: 4rem;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content h2::after {
  left: 0;
  transform: none;
  width: 6rem;
}

.policy-content h3 {
  font-size: 2.2rem;
  color: #2b2e7f;
  margin-top: 3rem;
}

.policy-content ul {
  margin-left: 2rem;
  margin-bottom: 2rem;
  list-style-type: disc;
}

.policy-content ul li {
  margin-bottom: 1rem;
}

/* === Service Detail === */
.service-detail {
  padding: 8rem 0;
  background-color: #fff;
}

.service-detail.alt-bg {
  background-color: #fff9d9;
}

.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.service-content.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.service-content.reverse .service-text {
  direction: ltr;
}

.service-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
}

.service-text h2 {
  text-align: left;
}

.service-text h2::after {
  left: 0;
  transform: none;
}

.service-features,
.service-benefits {
  margin-bottom: 3rem;
  list-style-type: none;
}

.service-features li,
.service-benefits li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}

.service-features li::before,
.service-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #258570;
  font-weight: bold;
  font-size: 2rem;
}

/* === CTA Sections === */
.cta-section {
  padding: 8rem 0;
  background-color: #2b2e7f;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 247, 192, 0.1) 0%, rgba(255, 95, 87, 0.1) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: #fff;
  margin-bottom: 2rem;
}

.cta-content h2::after {
  background-color: #258570;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
  max-width: 70rem;
  margin: 0 auto 3rem;
}

/* === Form Page === */
.form-page {
  padding: 10rem 0;
  background-color: #fff;
  position: relative;
}

.form-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
  z-index: 1;
}

.form-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.form-container {
  background-color: #fff;
  padding: 4rem;
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 247, 192, 0.1);
}

.form-container:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.12);
}

.form-container h2 {
  text-align: left;
  margin-bottom: 3rem;
}

.form-container h2::after {
  left: 0;
  transform: none;
  width: 6rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-form .form-group:nth-child(5),
.contact-form .form-group:nth-child(6),
.contact-form .form-group:nth-child(7),
.contact-form .form-group:nth-child(8),
.contact-form button {
  grid-column: span 2;
}

.error-message {
  background-color: rgba(255, 95, 87, 0.1);
  border-left: 0.4rem solid #ff5f57;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: 0.8rem;
  grid-column: span 2;
}

.error-message p {
  color: #e54a42;
  margin-bottom: 0;
  font-size: 1.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #2b2e7f;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.4rem 1.8rem;
  border: 0.2rem solid #e0e0e0;
  border-radius: 1rem;
  background-color: #fff;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  color: #2e2e2e;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00f7c0;
  box-shadow: 0 0 0 0.3rem rgba(0, 247, 192, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232b2e7f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 1.6rem;
  padding-right: 4rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 15rem;
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-top: 1rem;
}

.form-group.checkbox input {
  width: 2rem;
  height: 2rem;
  margin-top: 0.2rem;
  accent-color: #00f7c0;
  cursor: pointer;
}

.form-group.checkbox label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.5;
  cursor: pointer;
}

.form-group.checkbox a {
  color: #00f7c0;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.form-group.checkbox a:hover {
  color: #2b2e7f;
}

.contact-form button {
  margin-top: 2rem;
  padding: 1.6rem 3rem;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.contact-form button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.contact-form button:hover::before {
  width: 300%;
  height: 300%;
}

.form-info {
  background: linear-gradient(135deg, #2b2e7f 0%, #1a1c4d 100%);
  padding: 4rem;
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.form-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.form-info h2 {
  color: #fff;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.form-info h2::after {
  background-color: #00f7c0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.info-icon {
  width: 5.5rem;
  height: 5.5rem;
  background-color: rgba(0, 247, 192, 0.2);
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.info-item:hover .info-icon {
  background-color: rgba(0, 247, 192, 0.3);
  transform: translateY(-0.5rem);
}

.info-icon img {
  width: 2.8rem;
  height: 2.8rem;
  filter: brightness(0) invert(1);
  box-shadow: none;
}

.info-text h3 {
  margin-bottom: 0.8rem;
  color: #00f7c0;
  font-size: 2rem;
}

.info-text p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.6rem;
}

.direct-contact {
  margin-top: 4.5rem;
  padding-top: 3.5rem;
  border-top: 0.1rem solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.direct-contact h3 {
  color: #00f7c0;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.direct-contact ul {
  margin-left: 0;
  list-style: none;
}

.direct-contact li {
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.direct-contact li::before {
  content: "•";
  color: #00f7c0;
  font-size: 2rem;
}

/* Media queries for form responsiveness */
@media screen and (max-width: 992px) {
  .form-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .form-info {
    order: -1;
  }
}

@media screen and (max-width: 768px) {
  .contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .contact-form .form-group:nth-child(1),
  .contact-form .form-group:nth-child(2),
  .contact-form .form-group:nth-child(3),
  .contact-form .form-group:nth-child(4) {
    grid-column: span 1;
  }
  
  .form-container,
  .form-info {
    padding: 3rem;
  }
}

/* === About Main Section === */
.about-main {
  padding: 10rem 0;
  background-color: #fff;
}

/* === Mission Section === */
.mission-section {
  padding: 10rem 0;
  background-color: #fff9d9;
  position: relative;
}

.mission-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.mission-text h2 {
  text-align: left;
}

.mission-text h2::after {
  left: 0;
  transform: none;
}

.values-list {
  list-style-type: none;
  margin-top: 2rem;
}

.values-list li {
  padding: 1rem 0;
  display: flex;
  align-items: baseline;
  position: relative;
  padding-left: 3rem;
}

.values-list li::before {
  content: '•';
  color: #258570;
  font-size: 3rem;
  position: absolute;
  left: 0;
  top: 0.2rem;
}

.values-list li span {
  font-weight: 700;
  color: #2b2e7f;
  margin-right: 0.5rem;
}

.mission-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
  position: relative;
  transition: transform 0.3s ease;
}

.mission-image:hover {
  transform: translateY(-1rem);
}

.mission-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(43, 46, 127, 0.5), transparent);
}

/* === Team Section === */
.team-section {
  padding: 10rem 0;
  background-color: #fff;
  position: relative;
}

.team-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
}

.section-intro {
  max-width: 70rem;
  margin: 0 auto 5rem;
  text-align: center;
  font-size: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem 3rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-1rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
}

.member-image {
  height: 30rem;
  overflow: hidden;
  position: relative;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
  transform: scale(1.1);
}

.member-info {
  padding: 2.5rem;
  background-color: #fff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.member-info h3 {
  margin-bottom: 0.5rem;
  color: #2b2e7f;
}

.member-position {
  color: #258570;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.member-description {
  margin-bottom: 0;
  font-size: 1.6rem;
  line-height: 1.5;
}

/* === Stats Section === */
.stats-section {
  padding: 10rem 0;
  background-color: #fff9d9;
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-top: 5rem;
}

.stat-item {
  text-align: center;
  background-color: #fff;
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-1rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #258570;
  text-shadow: 0.2rem 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
}

.stat-item p {
  font-size: 1.8rem;
  margin-bottom: 0;
  color: #2b2e7f;
  font-weight: 600;
}

@media screen and (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .mission-content {
    grid-template-columns: 1fr;
  }
  
  .mission-text {
    order: 1;
  }
  
  .mission-image {
    order: 2;
    max-width: 60rem;
    margin: 0 auto;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 60rem;
    margin: 0 auto;
  }
}

@media screen and (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* === Contact Map === */
.contact-map {
  height: 45rem;
}

.map-wrapper {
  height: 100%;
  width: 100%;
}

.map-wrapper iframe {
  height: 100%;
  width: 100%;
  border: none;
  filter: saturate(0.8);
}

/* === Form FAQ === */
.form-faq {
  padding: 8rem 0;
  background-color: #fff9d9;
  position: relative;
}

.form-faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
}

.faq-list {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.faq-item {
  background-color: #fff;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
}

.faq-item h3 {
  color: #2b2e7f;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 3rem;
}

.faq-item h3::before {
  content: '?';
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #258570;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
}

.faq-item p {
  margin-bottom: 0;
}

/* === Why Contact Us === */
.why-contact-us {
  padding: 8rem 0;
  background-color: #fff;
  position: relative;
}

.why-contact-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
}

.why-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-text h2 {
  text-align: left;
}

.why-text h2::after {
  left: 0;
  transform: none;
}

.why-list {
  margin-top: 3rem;
  list-style-type: none;
}

.why-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.why-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #258570;
  font-weight: bold;
  font-size: 2.2rem;
}

.why-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 768px) {
  .why-content {
    grid-template-columns: 1fr;
  }
  
  .why-image {
    max-width: 60rem;
    margin: 0 auto;
  }
}

/* === Secciones para One-Page === */
section {
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
}


section:not(:first-of-type)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
  z-index: 1;
}

/* Indicador de sección activa en el menú */
.nav-menu a.active {
  color: #258570;
}

.nav-menu a.active::after {
  width: 100%;
} 