@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ================== RESET ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: "Roboto", sans-serif;
    scroll-behavior: smooth;
}

/* ================== HEADER GENERAL ================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease, flex-direction 0.3s ease;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Cuando se hace scroll: fondo blanco + layout horizontal */
.header.scrolled {
  background: #fff;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ========== LOGO ========== */
.logo {
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 80px;
  max-width: 260px;
  object-fit: contain;
  transition: height 0.3s ease, max-width 0.3s ease;
}

.header.scrolled .logo-img {
  height: 45px;
  max-width: 160px;
}

/* ========== NAVEGACIÓN DESKTOP ========== */
.nav-links {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.header.scrolled .nav-links {
  margin-top: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: #529928;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover {
  color: #529928;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ========== RESPONSIVE GENERAL ========== */
@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
  }

  .logo-img {
    height: 48px;
    max-width: 160px;
  }

  .header.scrolled .logo-img {
    height: 38px;
    max-width: 130px;
  }

  .nav-links {
    flex-direction: row;
    gap: 20px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 42px;
    max-width: 130px;
  }

  .header.scrolled .logo-img {
    height: 36px;
    max-width: 110px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* ================== HAMBURGUESA ================== */

/* Ocultar hamburguesa y menú en móviles por defecto */
.menu-toggle,
.menu-label {
  display: none;
}

/* Mostrar hamburguesa solo cuando se hace scroll en móviles */
@media (max-width: 768px) {
  .header:not(.scrolled) .menu-label {
    display: none;
  }

  .header.scrolled .menu-label {
    display: block;
    cursor: pointer;
    font-weight: bold;
    color: #000;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 6px;
    margin: 0;
  }

  .header.scrolled {
    flex-direction: row;
  }

  .header.scrolled .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    background: white;
    padding: 10px 0;
  }

  .menu-toggle:checked + .menu-label + .nav-links {
    display: flex;
  }
}



/* ================== HERO SLIDER ================== */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  max-width: 90%;
}

.slide-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.btn {
  padding: 12px 24px;
  background: #529928;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #3d7a1f;
}

/* ================== SLIDER ARROWS ================== */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
  .slide-content h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .logo-img {
    height: 48px;
    max-width: 160px;
  }

  .header.scrolled .logo-img {
    height: 38px;
    max-width: 130px;
  }
}

@media (max-width: 480px) {
  .slide-content h2 {
    font-size: 1.4rem;
  }

  .btn {
    font-size: 0.8rem;
  }
}


/* ================== SECCIÓN CON FONDO E IMAGEN ================== */

.seccion-formulario {
    position: relative;
    background-image: url('./Familia.1.png'); /* Cambia la imagen si es necesario */
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 30px;
}

/* Bloque izquierdo para el formulario */
.formulario-bloque {
    /* background: rgba(255, 255, 255, 0.95); */
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
}

/* Tipografía interna */
.formulario-bloque h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.formulario-bloque p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.titulo-formulario-overlay {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  z-index: 2;
  padding: 10px 20px;
  border-radius: 12px;
  /* backdrop-filter: blur(3px); */
  max-width: 90%;
}


.checkbox-label {
  font-size: 0.8rem;
  color: #333;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
  flex-wrap: nowrap;
}

.checkbox-label input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #539C29;
  margin-top: 4px;
  flex-shrink: 0;
}

.checkbox-label span {
  white-space: normal;      /* ✅ Permite saltos de línea */
  overflow: visible;        /* ✅ No recorta ni pone ... */
  text-overflow: unset;     /* ✅ Anula puntos suspensivos */
  display: inline;
}

.checkbox-label a {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.8rem;
  text-decoration: underline;
}


/* ================== RESPONSIVE SECCIÓN FORMULARIO ================== */
@media (max-width: 768px) {
    .seccion-formulario {
        padding: 40px 20px;
        justify-content: center;
    }

    .formulario-bloque {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
  .titulo-formulario-overlay {
    font-size: 1.5rem;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .checkbox-label {
    flex-wrap: wrap;
  }

  .checkbox-label span {
    white-space: normal;
  }
}



/* ========================== SECCIÓN COVER PROYECTOS (EN ZIG-ZAG) ========================== */

.titulo-cover {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  color: #57A72E;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.titulo-cover::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #529928;
  margin: 12px auto 0;
  border-radius: 2px;
}

.seccion-proyectos-cover {
  padding-top: 80px; /* o 100px si la sección anterior es muy visual */
  padding-bottom: 40px;
  background-color: #f1fff3; /* Opcional, mejora contraste */
}


/* Contenedor general de las tarjetas */
.contenedor-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 40px 20px;
  font-family: 'Poppins', sans-serif;
}

/* Tarjeta individual */
.card-cover {
  position: relative;
  width: 360px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #529928;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Imagen de fondo del proyecto */
.imagen-cover {
  width: 100%;
  height: 440px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Cinta de estado en la parte superior */
.imagen-cover::before {
  content: "EN CONSTRUCCIÓN";
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #529928;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  z-index: 2;
}

.imagen-cover.proceso::before {
  content: "EN PROCESO";
}

/* Contenido textual superpuesto */
.contenido-cover {
  position: absolute;
  bottom: 60px;
  left: 12px;
  right: 12px;
  color: #fff;
  z-index: 2;
  font-size: 14px;
}

/* Categoría (distrito) con ícono */
.contenido-cover .categoria {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}

.contenido-cover .categoria::before {
  content: "\f3c5"; /* fa-location-dot */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 6px;
}

/* Nombre del proyecto */
.contenido-cover h3 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 4px;
  text-transform: uppercase;
}

/* Espacio reservado para el bloque inferior de precio */
.card-cover::after {
  content: "";
  display: block;
  height: 70px;
}

/* Caja inferior con precio */
.precio-box {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #529928;
  padding: 10px 16px;
  border-top-left-radius: 10px;
  text-align: right;
}

.precio-box p {
  margin: 0;
  font-size: 13px;
  color: #fff;
}

.precio-box strong {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

  /* Botón blanco en zona inferior de la tarjeta */
.btn-ver-mas {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 3;
}

.btn-ver-mas:hover {
  background-color: #f2f2f2;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}


/* ======== CONTENEDOR PRINCIPAL CON FONDO E IMAGEN ======== */
.seccion-testimonios {
  position: relative;
  background: url('./piscina.1.png') no-repeat center center / cover;
  color: #ffffff;
  padding: 80px 40px;
  border-bottom-left-radius: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Fondo con superposición azul semitransparente */
.seccion-testimonios::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgb(78, 78, 78, 0.45); /* negro oscuro con opacidad */
  z-index: 1;
}

/* Contenido de la izquierda (texto + botón) */
.titulo-testimonios {
  flex: 1;
  font-size: 2.5rem;
  font-weight: 700;
  z-index: 2;
  max-width: 480px;
}

.titulo-testimonios + p {
  z-index: 2;
  font-size: 1rem;
  max-width: 480px;
  margin-top: 10px;
}


/* ======== GRID DE TARJETAS DE SERVICIOS ======== */
.grid-testimonios {
  flex: 1;
  display: grid;
  gap: 20px;
  z-index: 2;
  max-width: 600px;
  grid-template-columns: repeat(2, 1fr);
}

/* Tarjeta individual */
.testimonio-bg {
  background: linear-gradient(160deg, rgba(252, 249, 249, 0.6), rgba(255, 255, 255, 0.3));
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 32px 24px;
  color: #000; /* Color oscuro para contraste sobre fondo claro */
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-width: 300px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
}


/* Título del servicio */
.contenido-testimonio h4,
.testimonio-bg h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 12px 0 6px;
}

/* Descripción del servicio */
.texto {
  font-size: 0.95rem;
  color: #4c4c4c;
  margin: 0;
}

.foto-cliente {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid #fff;
}

/* Nombre del cliente */
.nombre {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 8px;
}

/* Rol o cargo debajo del nombre */
.rol-cliente {
  font-size: 0.9rem;
  color: #000;
  font-weight: 500;
  margin-bottom: 16px;
}

/* Testimonio */
.texto {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  position: relative;
}

/* Comillas al final */
.texto::after {
  content: "”";
  font-family: Georgia, serif;
  font-size: 1.5rem;
  position: relative;
  top: 4px;
  left: 4px;
  color: #999;
}


/* Responsive */
@media (max-width: 768px) {
  .seccion-testimonios {
    flex-direction: column;
    padding: 60px 20px;
    border-radius: 0;
  }

  .grid-testimonios {
    grid-template-columns: 1fr;
  }

  .titulo-testimonios {
    font-size: 2rem;
  }
}


/* ================== SECCIÓN ENTRADA DOBLE ================== */
.seccion-entrada-doble {
    /* background: #daf4d6; */
    padding: 100px 40px;
}

.contenedor-entrada {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Estilo base para cada bloque */
.bloque-doble {
    flex: 1 1 400px;
    min-height: 620px; /* ← antes 300px, ahora más largo */
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.bloque-doble:hover {
    transform: translateY(-6px);
}

/* Fondo individual por tipo */
.empresa {
    background-image: url('./Nosotros_Empresa.png'); /* Cambiar por tu imagen */
}

.podcast {
    background-image: url('./Podcast.png'); /* Cambiar por tu imagen */
}

/* Capa oscura */
.bloque-doble::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Contenido */
.bloque-doble .contenido {
    position: relative;
    z-index: 2;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    width: 100%;
}

.bloque-doble h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.bloque-doble p {
    font-size: 1rem;
    line-height: 1.5;
    color: #eee;
    margin-bottom: 20px;
}

.boton-falso {
    display: inline-block;
    background: #529928;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.bloque-doble:hover .boton-falso {
    background: #3a751d;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .contenedor-entrada {
        flex-direction: column;
        gap: 30px;
    }
}

/* ================== SECCIÓN REDES SOCIALES ================== */
.seccion-redes {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: left;
  overflow: hidden;
  padding: 0 40px;
}

.overlay-redes {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.contenedor-redes {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

/* Cuadro blanco a la derecha */
.bloque-redes {
  background: #529928;
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-width: 480px;
  width: 100%;
}

.bloque-redes h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.bloque-redes p {
  color: #000;
  margin-bottom: 20px;
}

/* Botones sociales */
.iconos-redes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--verde);
  color: white;
  font-size: 1.3rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.icono:hover {
  transform: scale(1.15);
  background: #3d7a1f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Responsive ajuste si es necesario */
@media (max-width: 480px) {
  .icono {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}


/* ========================== FOOTER ========================== */
.footer {
    background-color: #529928;
    color: #eee;
    padding: 60px 40px 30px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    width: 140px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 0.9rem;
    color: #f4f4f4;
    margin-bottom: 5px;
}

/* Títulos de columna */
.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f4f4f4;
}

/* Texto general */
.footer-section p,
.footer-section li {
    font-size: 0.9rem;
    color: #f4f4f4;
    margin-bottom: 8px;
}

/* Enlaces legales */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li a {
    text-decoration: none;
    color: #f4f4f4;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #000;
}

/* Redes sociales */
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #529928;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
    background: #000;
    color: #fff;
}

/* Pie de página final */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #f4f4f4;
}

.footer-bottom a {
    color: #f4f4f4;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #000;
}

/* ========================== RESPONSIVE ========================== */
@media (max-width: 480px) {
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-logo img {
        width: 120px;
    }

    .footer-container {
        gap: 20px;
    }

    .footer-section,
    .footer-logo {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

/* ================== MEDIA QUERIES BASE ================== */
@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }
}

/* ================== COMPONENTES RESPONSIVOS ================== */

/* HERO SLIDER */
@media (max-width: 768px) {
  .slide-content h2 {
    font-size: 2rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .slide-content h2 {
    font-size: 1.5rem;
  }
  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* CARDS PROYECTOS */
@media (max-width: 992px) {
  .card-cover {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 480px) {
  .imagen-cover {
    height: 300px;
  }
  .contenido-cover h3 {
    font-size: 1.1rem;
  }
  .contenido-cover .categoria {
    font-size: 0.85rem;
  }
  .precio-box {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

/* TESTIMONIOS */
@media (max-width: 992px) {
  .grid-testimonios {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .titulo-testimonios {
    font-size: 2rem;
  }
  .testimonio-bg {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .foto-cliente {
    width: 90px;
    height: 90px;
  }
  .nombre,
  .rol-cliente,
  .texto {
    font-size: 0.85rem;
  }
}

/* BLOQUE DOBLE */
@media (max-width: 768px) {
  .bloque-doble h3 {
    font-size: 1.5rem;
  }
  .bloque-doble p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .boton-falso {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* SECCIÓN REDES */
@media (max-width: 768px) {
  .bloque-redes h2 {
    font-size: 1.5rem;
  }
  .bloque-redes p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .bloque-redes {
    padding: 24px 16px;
  }
}

/* FOOTER */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-bottom {
    font-size: 0.75rem;
  }
}



/*  FORMULARIO FLOTANTE DERECHA  */

.formulario-derecha {
  width: 30%;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.formulario-flotante {
  background: #56A22C;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.formulario-flotante form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Estilo para cada bloque de entrada */
.input-block {
  display: flex;
  flex-direction: column;
}

.input-block label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.input-block input,
.input-block select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-block input:focus,
.input-block select:focus {
  border-color: #529928;
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(82, 153, 40, 0.2);
}

/* Botón enviar */
.submit-btn {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #3e801e;
}

/* Mensaje de confirmación */
.confirmation-message {
  background: #e6f4ea;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: #2e7d32;
  display: none;
}

.confirmation-message h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.confirmation-message p {
  font-size: 1rem;
  margin: 0;
}

/* ========================== RESPONSIVE FORMULARIO ========================== */
@media (max-width: 1024px) {
  .formulario-derecha {
    width: 100%;
    position: relative;
    top: unset;
    margin-top: 40px;
  }

  .formulario-flotante {
    padding: 24px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .formulario-flotante {
    padding: 20px;
  }

  .input-block input,
  .input-block select {
    font-size: 0.95rem;
    padding: 10px 12px;
  }

  .submit-btn {
    font-size: 0.95rem;
    padding: 12px;
  }
}




.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-visible {
  opacity: 1;
  transform: none;
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-visible.reveal-right {
  opacity: 1;
  transform: none;
}
