* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Desplazamiento suave para enlaces internos */
    scroll-padding-top: 90px;
    /* Asegura que el header sticky quede al principio de la sección sin tapar el contenido */
}

body {
    font-family: "Times New Roman", Georgia, serif;
    background-color: #ffffe7;
    overflow-x: hidden;
    width: 100%;
}

/* Header Sticky a pantalla completa en la parte superior */
header {
    display: flex;
    justify-content: space-between;
    background-color: #a2d1e2;
    align-items: center;
    width: 100%;
    margin: 0;
    min-height: 80px;
    padding: 10px 40px;
    position: sticky;
    z-index: 10000;
    top: 0;
    left: 0;
    box-shadow: 0 2px 15px rgba(18, 48, 71, 0.1);
    transition: all 0.3s ease;
    border-radius: 100px;
}

.logo {
    display: flex;
    height: 60px;
    width: auto;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 65px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0px 0px 1px #00a8e8);
    transition: filter 0.3s ease;
}

@keyframes luzRecorriendo {
    0% {
        filter: drop-shadow(2px 0px 2px #00a8e8) drop-shadow(-1px -1px 1px rgba(0, 168, 232, 0.5));
    }

    25% {
        filter: drop-shadow(0px 2px 2px #00a8e8) drop-shadow(1px -1px 1px rgba(0, 168, 232, 0.5));
    }

    50% {
        filter: drop-shadow(-2px 0px 2px #00a8e8) drop-shadow(1px 1px 1px rgba(0, 168, 232, 0.5));
    }

    75% {
        filter: drop-shadow(0px -2px 2px #00a8e8) drop-shadow(-1px 1px 1px rgba(0, 168, 232, 0.5));
    }

    100% {
        filter: drop-shadow(2px 0px 2px #00a8e8) drop-shadow(-1px -1px 1px rgba(0, 168, 232, 0.5));
    }
}

.logo:hover img {
    animation: luzRecorriendo 1.2s linear infinite;
}

/* Botón hamburguesa para mobile (oculto en pantallas normales) */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #123047;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    line-height: 1;
}

nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #171B1D;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 20px;
    transition: color 0.2s, background-color 0.2s;
}

nav a:hover {
    color: #123047;
}

#navMenu a > i {
    display: none;
}

.whatsapp-button {
    font-family: "Times New Roman", Times, serif;
    background-color: #a2d1e2;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.5s, transform 0.2s;
}

.whatsapp-button:hover {
    background-color: #b0e2f5;
    transform: scale(1.05);
}

.part1 {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(30px, 4vw, 80px);
    padding: 40px 6%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

#Whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background-color: #42c031;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#Whatsapp:hover {
    transform: scale(1.08);
    background-color: #36a328;
}

.texto {
    flex: 1 1 450px;
    min-width: 320px;
    max-width: 600px;
}

.ubicacion {
    font-size: 13px;
    letter-spacing: 1.5px;
    color: #159FD0;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(34px, 4.2vw, 68px);
    line-height: 1.05;
    font-weight: bold;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
    color: #171B1D;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.linea-h1 {
    display: inline-block;
    white-space: nowrap;
}

.descripcion {
    color: #3c4449;
    font-size: 16px;
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 28px;
}

.proyectos {
    color: #171B1D;
    text-decoration: none;
    font-size: 18px;
    border-bottom: 1px solid #159FD0;
    padding-bottom: 5px;
    display: inline-block;
}

.imagen {
    flex: 1 1 450px;
    min-width: 320px;
    max-width: 650px;
}

.imagen img {
    width: 100%;
    min-width: 280px;
    height: auto;
    max-height: 540px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.linea-divisoria {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    padding: 12px 30px;
    border-top: 1px solid #159FD0;
    border-bottom: 1px solid #159FD0;
    background-color: #fff;
    color: #222;
    font-size: 14px;
    font-weight: bold;
}

.etiqueta-linea {
    font-size: 9px;
    font-weight: normal;
    color: #71808a;
    letter-spacing: 1px;
    white-space: nowrap;
}

/*Logo para ir arriba de vuelta*/
#flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #123047;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* Animación suave */
}

/*Clase para controlar la visibilidad con JavaScript*/
.oculto {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    /*Efecto de que sube al aparecer*/
}

.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#flotante:hover {
    background-color: #164364;
    /*color mas oscuro*/
    transition: all 0.15s ease-in-out;
    /*Animación simple para que no sea tan brusco el cambio*/
    transform: scale(1.05);
    /*Agranda el logo*/
}

.sobre-mi {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 60px 5%;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.tarjeta-foto {
    flex: 1 1 35%;
    max-width: 400px;
}

.tarjeta-foto img {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;

    border: 3px solid #fffdf0;
    border-radius: 6px;

    box-shadow: 6px 7px 0px #123047;

    transition: transform 0.3s ease, box-shadow 0.6s ease;
}

.pie-foto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
}

.pie-foto h2 {
    font-size: 18px;
    color: #123047;
}

.contenido {
    flex: 1.3;
    max-width: 650px;
    min-width: 280px;
}

.etiqueta {
    color: #159FD0;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 17px;
}

.contenido h1 {
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    color: #171B1D;
}

.introduccion {
    color: #72746d;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.detalles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    border-top: 1px solid #dedbd2;
    padding-top: 15px;
}

.detalle span {
    display: block;
    color: #159FD0;
    font-size: 11px;
    letter-spacing: 0.7px;
    margin-bottom: 6px;
    font-weight: bold;
}

.detalle p {
    color: #72746d;
    font-size: 13px;
    line-height: 1.6;
}

.tomas-aereas {
    background-color: #12334a;
    color: #e9edf0;
    padding: 65px 6%;
}

.encabezado-tomas {
    max-width: 650px;
    margin-bottom: 25px;
}

.encabezado-tomas h1 {
    font-size: 36px;
    line-height: 1.05;
    margin: 0 0 14px;
    font-weight: bold;
    color:#fdfdfd
}

.encabezado-tomas p {
    max-width: 550px;
    font-size: 13px;
    line-height: 1.7;
    color: #c2d0d9;
    margin: 0;
}

.contenido-tomas {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 16px;
    align-items: start;
}

 /* Contenedor del video */
.video-container {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

/* Video */
.video-container video {
  width: 100%;
  display: block;
  border-radius: 8px;
}

/* Barra de controles */
.custom-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 15px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

/* Botones */
.control-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 5px 10px;
  transition: color 0.2s, transform 0.2s;
}

/* Efecto hover */
.control-btn:hover {
  color: #00adb5;
  transform: scale(1.1);
}

/* Efecto al hacer clic */
.control-btn:active {
  transform: scale(0.95);
}

/* Ocultar botón de pausa inicialmente */
#btnPause {
  display: none;
}
.columna-plano {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.imagen-plano img {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    border-radius: 5px;
}

.texto-plano {
    border: 1px solid rgba(190, 215, 230, 0.08);
    padding: 13px 12px;
}

.texto-plano .etiqueta {
    margin-bottom: 9px;
    font-size: 8px;
}

.texto-plano h2 {
    font-size: 18px;
    line-height: 1.2;
    margin: 0 0 10px;
}

.texto-plano p {
    font-size: 13px;
    line-height: 1.65;
    color: #c2d0d9;
    margin: 0;
}

/*calcu*/
.container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 35px 30px;
    gap: 65px;
    align-items: center;
    box-sizing: border-box;
}

.col-left {
    flex: 1;
    min-width: 0;
    padding-top: 0;
}

.meta-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #159FD0;
    margin-bottom: 22px;
    font-weight: 500;
}

.col-left h1 {
    font-size: 46px;
    line-height: 1.04;
    margin: 0 0 22px;
    font-weight: 700;
    letter-spacing: -1px;
    color: black;
}

.col-left p {
    font-size: 14px;
    line-height: 1.7;
    color: #3c4449;
    margin-bottom: 28px;
    max-width: 440px;
}

.preview-box {
    position: relative;
    display: inline-block;
    margin: 48px 0 10px 15px;
    padding-right: 45px;
}

.dimension-label {
    position: absolute;
    font-size: 11px;
    color: #159FD0;
    font-weight: 500;
    white-space: nowrap;
}

.label-top {
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
}

.label-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.shape-container {
    width: 220px;
    height: 120px;
    border: 1px solid #159FD0;
    background-color: #c8caa9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.shape-container::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background-size: 24px 24px;
    background-image:
        linear-gradient(to right, rgba(129, 123, 90, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(129, 123, 90, 0.15) 1px, transparent 1px);
    z-index: 0;
    pointer-events: none;
}

.shape-text {
    font-size: 26px;
    font-weight: 700;
    color: #000000;
    z-index: 2;
    letter-spacing: -0.5px;
}

.col-right {
    flex: 1.2;
    min-width: 0;
    padding: 32px 30px 26px;
    background-color: rgba(255, 253, 240, 0.88);
    border: 1px solid rgba(129, 123, 90, 0.07);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(94, 60, 40, 0.09);
    box-sizing: border-box;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.card-header h2 {
    font-size: 25px;
    line-height: 1.25;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #123047;
}

.selector-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-select {
    flex: 1;
    min-width: 0;
    background: #159FD0;
    border: 1px solid #159FD0;
    padding: 14px 10px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    text-align: center;
    border-radius: 6px;
    position: relative;
    transition: background-color 0.25s, border-color 0.25s;
}

.btn-select:hover,
.btn-select:focus-visible {
    background-color: #123047;
    border-color: #123047;
}

.btn-select .tooltip {
    visibility: hidden;
    width: 230px;
    max-width: 75vw;
    background-color: #cecece;
    color: #3c4449;
    text-align: left;
    padding: 12px 14px;
    border-radius: 6px;
    position: absolute;
    z-index: 20;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
}

.btn-select .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #cecece transparent transparent;
}

.btn-select:hover .tooltip,
.btn-select:focus-visible .tooltip,
.btn-select:focus-within .tooltip {
    visibility: visible;
    opacity: 1;
}

.form-contenedor {
    width: 100%;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: #159FD0;
    margin-bottom: 8px;
    display: block;
}

.input-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.input-container {
    flex: 1;
    min-width: 0;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    min-width: 0;
    padding: 14px 35px 14px 12px;
    font-size: 15px;
    border: 1px solid #159FD0;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #fdfdfd;
    color: #3c4449;
    outline: none;
}

.input-wrapper input:focus {
    border-color: #159FD0;
}

.input-wrapper .unit {
    position: absolute;
    right: 12px;
    color: #3c4449;
    font-size: 13px;
}

.btn-submit {
    width: 100%;
    background-color: #159FD0;
    color: #fffdf0;
    border: none;
    padding: 15px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #123047;
}

.result-box {
    margin-top: 25px;
    background-color: #ebebeb;
    padding: 22px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

.result-meta {
    font-size: 10px;
    color: #3c4449;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.result-formula {
    font-size: 13px;
    color: #3c4449;
    margin-top: 6px;
    font-weight: 500;
}

.result-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #123047;
}

.control-row {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.btn-control {
    flex: 1;
    background: transparent;
    border: 1px solid #159FD0;
    padding: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #3c4449;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-control:hover {
    background-color: #ebebeb;
}

/* Botón Consultar Presupuesto */
.btn-presupuesto {
    flex: 1;
    background-color: #123047;
    border: 1px solid #123047;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-presupuesto:hover {
    background-color: #159FD0;
    border-color: #159FD0;
}

/* Modal y Fondo Oscuro */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fffdf0;
    border-radius: 12px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal-header h3 {
    margin: 0;
    color: #123047;
    font-size: 18px;
    font-weight: 700;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #3c4449;
    line-height: 1;
}

.modal-subtitulo {
    font-size: 13px;
    color: #3c4449;
    margin-bottom: 16px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #3c4449;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #159FD0;
    cursor: pointer;
}

.modal-content.modal-large {
    max-width: 580px;
}

/* Grilla en 2 columnas */
.modal-categorias-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.categoria-titulo {
    font-size: 14px;
    font-weight: 700;
    color: #123047;
    margin: 0 0 12px 0;
    padding-bottom: 4px;
    border-bottom: 2px solid #159FD0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #3c4449;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #159FD0;
    cursor: pointer;
}

/* Estilos para campos de datos del inmueble en el modal */
.modal-inputs-datos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    text-align: left;
}

@media (max-width: 520px) {
    .modal-inputs-datos {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.modal-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-input-label {
    font-size: 12px;
    font-weight: 600;
    color: #123047;
}

.modal-input-field {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid #c7d2dc;
    border-radius: 6px;
    background-color: #f8fafc;
    color: #123047;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.modal-input-field:focus {
    border-color: #159FD0;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(21, 159, 208, 0.15);
}

/* Botón WhatsApp */
.btn-whatsapp {
    width: 100%;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.25s ease, opacity 0.25s ease;
}

.btn-whatsapp:not(:disabled):hover {
    background-color: #1da851;
}

.btn-whatsapp:disabled {
    background-color: #b0bec5;
    color: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.85;
}

.footer-note {
    font-size: 13px;
    color: #3c4449;
    line-height: 1.6;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e4deca;
}

/* Control visual para el cambio de pantallas sin quedarse en blanco */
.ocultar-elemento {
    display: none !important;
}

.mostrar-elemento {
    display: block !important;
}

.selector-row.mostrar-elemento {
    display: flex !important;
}

/* Contenedor principal de dos columnas */
#consultas {
    width: 100%;
    padding: 70px 5%;
    max-width: 1280px;
    margin: 0 auto;
}

.faq-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 0 auto;
}

/* Columna izquierda (Título e información */
.faq-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faq-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    color: #111111;
    margin-bottom: 24px;
    font-weight: bold;
}

.faq-description {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
    max-width: 320px;
}

/* Columna derecha (Lista de preguntas) */
.faq-list {
    flex: 1.3;
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
}

.faq-item:first-child {
    border-top: 1px solid #e5e5e5;
}

/* Botón de la pregunta */
.faq-question {
    width: 100%;
    font-family: "Times New Roman", Times, serif;
    background: none;
    border: none;
    outline: none;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 500;
    color: #222222;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #000000;
}

/* Ícono +/- */
.faq-icon {
    font-size: 1.2rem;
    font-weight: 300;
    color: #72a8b3;
    margin-left: 15px;
    user-select: none;
}

/* Contenido de la respuesta desplegable */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}

.faq-answer p {
    padding-bottom: 22px;
    font-size: 0.9rem;
    color: #777777;
    line-height: 1.6;
}

/* Clase activa para abrir la respuesta */
.faq-item.active .faq-answer {
    max-height: 350px;
    transition: max-height 0.35s ease-in;
}

footer {
    background-color: #a2d1e2;
    text-align: center;
    padding: 24px 20px;
    margin-top: 60px;
    color: #171B1D;
    font-weight: bold;
    font-size: 14px;
}

/* =========================================================
   SISTEMA RESPONSIVE INTEGRAL Y PROTECCIÓN CONTRA ZOOM
   ========================================================= */

/* Tablets y pantallas intermedias o con zoom aplicado */
@media (max-width: 992px) {
    header {
        padding: 12px 20px;
        min-height: 70px;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 14px;
        padding: 6px 10px;
    }

    .part1 {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 40px 5%;
        min-height: auto;
    }

    .texto {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .imagen {
        width: 100%;
        max-width: 500px;
    }

    .sobre-mi {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 50px 5%;
        min-height: auto;
    }

    .tarjeta-foto {
        max-width: 320px;
        margin: 0 auto;
    }

    .contenido {
        max-width: 100%;
    }

    .contenido-tomas {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .container {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }

    .col-left {
        text-align: center;
    }

    .preview-box {
        margin: 30px auto 10px;
    }

    .col-right {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .faq-container {
        flex-direction: column;
        gap: 30px;
    }

    .faq-description {
        max-width: 100%;
    }
}

/* Teléfonos y zoom alto */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }

    header {
        width: 100%;
        margin: 0;
        padding: 10px 16px;
        border-radius: 0;
        position: sticky;
        top: 0;
    }

    .logo {
        height: 50px;
    }

    .logo img {
        max-height: 50px;
    }

    .nav-toggle {
        display: block;
    }

    nav {
        display: grid;
        position: absolute;
        top: 100%;
        left: auto;
        right: 12px;
        width: min(280px, calc(100vw - 32px));
        background-color: #a2d1e2;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 20px;
        padding: 0 20px;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 0;
        box-shadow: 0 10px 25px rgba(18, 48, 71, 0.18);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: max-height 0.5s ease, padding 0.5s ease, gap 0.5s ease,
            opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
    }

    nav.activo {
        max-height: 320px;
        padding: 12px 20px;
        gap: 4px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition: max-height 0.5s ease, padding 0.5s ease, gap 0.5s ease,
            opacity 0.5s ease, transform 0.5s ease, visibility 0s;
    }

    nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        text-align: left;
        padding: 8px 10px;
        background: transparent;
        border: none;
        border-radius: 8px;
        font-size: 15px;
    }

    nav a > i {
        display: inline-block;
        width: 18px;
        text-align: center;
        color: #426d7c;
        transition: color 0.2s ease;
    }

    nav .whatsapp-button {
        grid-column: 1 / -1;
        justify-self: center;
        justify-content: center;
        width: auto;
        padding: 8px 16px;
        border: 1px solid rgba(0, 0, 0, 0.2);
    }

    nav a:hover {
        background: transparent;
        color: #123047;
    }

    nav a.nav-link-activo {
        color: #123047;
        font-weight: 700;
    }

    nav a.nav-link-activo::before {
        content: "";
        position: absolute;
        left: 0;
        width: 3px;
        height: 18px;
        border-radius: 3px;
        background-color: #123047;
    }

    nav a.nav-link-activo > i {
        color: #123047;
    }

    nav .whatsapp-button:hover {
        background-color: #92c4d6;
    }

    nav .whatsapp-button:hover {
        transform: none;
    }

    .linea-divisoria {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 10px;
        padding: 16px;
        font-size: 12px;
    }

    .input-row {
        flex-direction: column;
        gap: 12px;
    }

    .selector-row {
        flex-direction: column;
        gap: 10px;
    }

    .result-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .control-row {
        flex-direction: column;
        gap: 8px;
    }

    .col-right {
        padding: 20px 16px;
    }

    #consultas {
        padding: 40px 5%;
    }

    .faq-title {
        font-size: 2.2rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 16px 0;
    }

    #Whatsapp,
    #flotante {
        width: 44px;
        height: 44px;
        font-size: 18px;
        bottom: 15px;
    }

    #Whatsapp {
        left: 15px;
    }

    #flotante {
        right: 15px;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    nav,
    nav.activo {
        transition: none;
        transform: none;
    }
}

.contact-section {
    width: 100%;
    background: #123047;
    color: #f4f1e9;
    padding: 65px 5% 25px;
    box-sizing: border-box;
}

/* CONTENIDO PRINCIPAL */

.contact-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding-bottom: 58px;
}

/* COLUMNA IZQUIERDA */

.contact-left {
    flex: 1;
}

.section-number {
    display: block;
    font-size: 9px;
    letter-spacing: 1px;
    color: #91a6b4;
}

.contact-left h2 {
    font-size: 36px;
    line-height: 1.08;
    font-weight: 600;
    margin: 20px 0 15px;
    color: #f4f1e9;
}

.contact-left p {
    font-size: 12px;
    line-height: 1.7;
    color: #a9bac5;
    margin-bottom: 17px;
}

/* BOTÓN UBICACIÓN */

.location-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #617989;
    border-radius: 2px;
    color: #f4f1e9;
    text-decoration: none;
    font-size: 15px;
    transition: .3s;
}

.location-button:hover {
    background: #f4f1e9;
    color: #123047;
}

/* COLUMNA DERECHA */

.contact-right {
    width: 32%;
    transform: translateX(-50px);
}
.contact-right h3 {
    font-size: 20px;
    margin: 0 0 10px;
    color: #f4f1e9;
}

.contact-right p {
    font-size: 15px;
    line-height: 1.7;
    color: #a9bac5;
}

/* REDES SOCIALES */

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 30px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.12);
    color: #f4f1e9;
    text-decoration: none;
    font-size: 13px;
    transition: .3s;
}

.social-links a:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-2px);
}

/* TEXTO INFORMATIVO */

.contact-note {
    display: block;
    margin-top: 15px;
    font-size: 8px;
    letter-spacing: .7px;
    color: #8299a8;
}

/* PARTE INFERIOR DEL FOOTER */

.contact-footer {
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 25px;
}

.contact-footer span {
    font-size: 8px;
    letter-spacing: 1px;
    color: #91a6b4;
}
