/* ===== ESTILOS GENERALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #FFFFFF;
    color: #2D2D2D;
    line-height: 1.5;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

/* ===== HEADER COMPLETO - 3 NIVELES ===== */
.main-header {
    width: 100%;
    transition: all 0.3s ease;
}

/* NIVEL 1 - GRIS CLARO */
.level-1 {
    background: #F5F5F5;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #4A4A4A;
    border-bottom: 1px solid #E0E0E0;
    flex-wrap: wrap;
    gap: 10px;
}

.level-1-contact {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.level-1-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.level-1-location {
    font-weight: 500;
}

/* NIVEL 2 - UNA SOLA LÍNEA */
.level-2 {
    background: #FFFFFF;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E9ECEF;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-area img {
    height: 100px;
    width: auto;
    display: block;
}

.tagline-phone-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.tagline {
    color: #2E7D32;
    font-weight: 700;
    font-size: 20px;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.phone-secondary {
    font-size: 22px;
    font-weight: 800;
    color: #1B3168;
    white-space: nowrap;
    border-left: 2px solid #E9ECEF;
    padding-left: 15px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.btn-whatsapp {
    background: #25D366;
    border: 2px solid #25D366;
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: scale(1.02);
}

.btn-outline {
    background: white;
    border: 2px solid #2E7D32;
    color: #2E7D32;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    background: #2E7D32;
    color: white;
}

/* NIVEL 3 - AZUL #50A4E9 */
.level-3 {
    background: #50A4E9;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3A8CD9;
    flex-wrap: wrap;
}

.main-menu {
    display: flex;
    gap: clamp(15px, 3vw, 30px);
    padding: 12px 0;
    flex-wrap: wrap;
}

.main-menu a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: clamp(13px, 1.5vw, 15px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    white-space: nowrap;
}

.main-menu a:hover {
    color: #2E7D32;
}

/* ===== VERSIÓN STICKY - CAMBIO INSTANTÁNEO ===== */
.sticky-version {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sticky-version .level-1,
.sticky-version .level-2 {
    display: none;
}

.sticky-version .level-3 {
    background: #1B3168;
    border-bottom: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 8px 5%;
}

.sticky-version .main-menu a {
    color: white;
}

.sticky-version .main-menu a:hover {
    color: #2E7D32;
}

/* ===== BOTONES PRINCIPALES ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 16px;
    text-align: center;
}

.btn-primary {
    background: #2E7D32;
    color: white;
}

.btn-primary:hover {
    background: #1E5F22;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #1B3168;
    color: white;
}

.btn-secondary:hover {
    background: #0F1F42;
    transform: translateY(-1px);
}

.btn-azul-mpadi {
    background: #1B3168;
    color: white;
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 16px;
    text-align: center;
    border: none;
}

.btn-azul-mpadi:hover {
    background: #2E7D32;
    transform: translateY(-1px);
    cursor: pointer;
}

.btn-outline-green {
    background: transparent;
    border: 2px solid #2E7D32;
    color: #2E7D32;
    border-radius: 50px;
}

.btn-outline-green:hover {
    background: #2E7D32;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 80px 0;
}

h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 20px;
    color: #2D2D2D;
}

.subhead {
    color: #6C757D;
    font-size: 18px;
    max-width: 700px;
    margin-bottom: 50px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #E9ECEF;
    transition: transform 0.2s;
}

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

.badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #D4EDDA;
    color: #155724;
}

.badge-danger {
    background: #F8D7DA;
    color: #721C24;
}

.badge-warning {
    background: #FFF3CD;
    color: #856404;
}

.badge-construccion {
    background: #E5EFF9;
    color: #1E4A6F;
}

/* ===== HERO CON CARRUSEL AUTOMÁTICO ===== */
.hero {
    background: #F8F9FA;
    padding: 80px 5%;
}

.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    color: #2E7D32;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 14px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #2E7D32;
}

.hero p {
    font-size: 18px;
    color: #6C757D;
    margin-bottom: 30px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 25px;
    color: #6C757D;
    font-size: 15px;
    flex-wrap: wrap;
}

.hero-carrusel {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    height: 400px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.carrusel-imagen {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.hero-carrusel:hover .carrusel-imagen {
    transform: scale(1.05);
}

.carrusel-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(27, 49, 104, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero-carrusel:hover .carrusel-overlay {
    opacity: 1;
    transform: translateY(0);
}

.carrusel-icon {
    font-size: 20px;
}

.carrusel-indicador {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===== TARJETAS PROYECTOS CON EFECTO ZOOM ===== */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.proyecto-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #E9ECEF;
    transition: all 0.2s;
    position: relative;
    overflow: visible !important;
}

.proyecto-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.03);
    border-color: #C0D0C0;
}

.proyecto-img {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.proyecto-card:hover .proyecto-img {
    transform: scale(1.05);
}

.proyecto-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.proyecto-ubicacion {
    color: #6C757D;
    font-size: 15px;
    margin-bottom: 16px;
}

.proyecto-caract {
    display: flex;
    gap: 20px;
    color: #4F5B66;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #E9ECEF;
    border-bottom: 1px solid #E9ECEF;
}

.proyecto-precio {
    font-size: 30px;
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 20px;
}

.proyecto-estado-extra {
    font-size: 14px;
    color: #6C757D;
    margin-bottom: 15px;
    font-weight: 500;
}

/* ===== SELLO ROJO ===== */
.sello-vendido {
    position: absolute;
    top: 45px;
    right: -30px;
    background: #C62828;
    color: white;
    padding: 10px 0;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    z-index: 1000;
    letter-spacing: 1.5px;
    border: 3px solid rgba(255,255,255,0.9);
    white-space: nowrap;
    width: 260px;
    text-align: center;
    pointer-events: none;
    line-height: 1.5;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .sello-vendido {
        font-size: 13px;
        width: 200px;
        padding: 8px 0;
        right: -25px;
        top: 35px;
    }
}

/* ===== ESTILOS PARA LA SECCIÓN CÓMO FUNCIONA ===== */
.numeros-mpadi {
    background: #1B3168;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 18px;
}

.video-link {
    color: #1B3168;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.video-link:hover {
    color: #2E7D32;
    text-decoration: underline;
}

.conoce-mas-link {
    color: #1B3168;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.conoce-mas-link:hover {
    color: #2E7D32;
    transform: translateX(5px);
}

/* ===== CARRUSELES DE AVANCE DE OBRA ===== */
.avance-card {
    background: #F8F9FA;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.avance-card:hover {
    transform: translateY(-5px);
}

.carrusel-avance {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.avance-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.carrusel-controles {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carrusel-avance:hover .carrusel-controles {
    opacity: 1;
}

.carrusel-prev, .carrusel-next {
    background: rgba(27, 49, 104, 0.8);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
    z-index: 10;
}

.carrusel-prev:hover, .carrusel-next:hover {
    background: #2E7D32;
}

.avance-info {
    padding: 20px;
}

.avance-label {
    font-weight: 600;
    color: #1B3168;
    margin-bottom: 5px;
}

.avance-value {
    color: #6C757D;
}

.avance-indicador {
    font-size: 12px;
    color: #1B3168;
    font-weight: 600;
    margin-top: 5px;
    text-align: right;
}

/* ===== TARJETAS DE VIDEO ===== */
.video-card {
    background: #F8F9FA;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    width: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(27, 49, 104, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s;
}

.video-card:hover .video-play-icon {
    background: #2E7D32;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 12px;
}

.video-label {
    font-weight: 600;
    color: #1B3168;
    margin-bottom: 3px;
    font-size: 14px;
}

.video-desc {
    color: #6C757D;
    font-size: 12px;
}

/* ===== MODAL DE VIDEO ===== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 5000;
    justify-content: center;
    align-items: center;
}

.video-modal-contenido {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: black;
    border-radius: 12px;
    overflow: hidden;
}

.video-modal-cerrar {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.video-modal-cerrar:hover {
    color: #2E7D32;
}

.video-modal video {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== NUEVOS ESTILOS PARA ¿A CUÁNTO ESTÁS? ===== */
.plan-card {
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.plan-card:hover {
    border-color: #1B3168;
    transform: scale(1.02);
}

.plan-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.plan-title {
    font-weight: 600;
    font-size: 20px;
    color: #1B3168;
    margin-bottom: 5px;
}

.plan-desc {
    color: #6C757D;
}

.viewer-badge {
    background: #FFE5E5;
    color: #DC3545;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

/* ===== TABLA DISPONIBILIDAD ===== */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #E9ECEF;
    background: white;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

th {
    background: #F5F9F5;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: #2D2D2D;
    border-bottom: 1px solid #E9ECEF;
    font-size: 14px;
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid #E9ECEF;
    color: #4F5B66;
}

tr:last-child td {
    border-bottom: none;
}

/* ===== PESTAÑAS DE DESARROLLO ===== */
.tab-desarrollo {
    transition: all 0.3s ease;
    font-size: 16px;
    margin-right: 5px;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px 50px 0 0;
    background: #F8F9FA;
    color: #2D2D2D;
}

.tab-desarrollo:hover {
    background: #E9ECEF !important;
    color: #1B3168 !important;
}

.tab-desarrollo.active {
    background: #1B3168 !important;
    color: white !important;
}

#filtros-piso span, #filtros-piso-calc span {
    background: #E9ECEF;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#filtros-piso span:hover, #filtros-piso-calc span:hover {
    background: #1B3168;
    color: white;
}

/* ===== MODAL PARA DETALLES DE DEPARTAMENTO ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-cerrar {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #6C757D;
    transition: color 0.2s;
}

.modal-cerrar:hover {
    color: #1B3168;
}

.modal-titulo {
    font-size: 24px;
    font-weight: 700;
    color: #1B3168;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E9ECEF;
}

.modal-detalle {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #E9ECEF;
}

.modal-detalle-label {
    font-weight: 600;
    color: #2D2D2D;
}

.modal-detalle-valor {
    color: #2E7D32;
    font-weight: 600;
}

.modal-precio {
    font-size: 32px;
    font-weight: 700;
    color: #2E7D32;
    text-align: center;
    margin: 25px 0;
    padding: 15px;
    background: #F1F8F0;
    border-radius: 12px;
}

.modal-botones {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-boton {
    flex: 1;
    padding: 14px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.modal-boton-whatsapp {
    background: #25D366;
    color: white;
}

.modal-boton-whatsapp:hover {
    background: #128C7E;
}

.modal-boton-contacto {
    background: #1B3168;
    color: white;
}

.modal-boton-contacto:hover {
    background: #2E7D32;
}

/* ===== MODAL DE GALERÍA ===== */
.galeria-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.galeria-contenedor {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.galeria-imagen {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease;
}

.galeria-cerrar {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.galeria-cerrar:hover {
    color: #2E7D32;
}

.galeria-anterior, .galeria-siguiente {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.galeria-anterior:hover, .galeria-siguiente:hover {
    background: #2E7D32;
}

.galeria-anterior {
    left: 20px;
}

.galeria-siguiente {
    right: 20px;
}

.galeria-indicador {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0,0,0,0.5);
    padding: 5px 20px;
    border-radius: 50px;
}

/* ===== MODAL DE CONTACTO ===== */
.contacto-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 6000;
    justify-content: center;
    align-items: center;
}

.contacto-modal-contenido {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.contacto-modal-cerrar {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #6C757D;
    transition: color 0.2s;
}

.contacto-modal-cerrar:hover {
    color: #1B3168;
}

.contacto-modal-titulo {
    font-size: 24px;
    color: #1B3168;
    margin-bottom: 20px;
    text-align: center;
}

.contacto-modal-campo {
    margin-bottom: 20px;
}

.contacto-modal-campo label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2D2D2D;
}

.contacto-modal-campo input,
.contacto-modal-campo textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    font-size: 16px;
}

.contacto-modal-campo textarea {
    height: 100px;
    resize: vertical;
}

.contacto-modal-boton {
    background: #2E7D32;
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.contacto-modal-boton:hover {
    background: #1B3168;
}

/* ===== BOTONES FLOTANTES ===== */
/* Botón VOLVER ARRIBA (abajo) */
.back-to-top {
    position: fixed;
    bottom: 30px !important;
    right: 30px;
    background: #1B3168;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    bottom: 30px !important;
}

.back-to-top:hover {
    background: #2E7D32;
    transform: scale(1.1);
}

/* ===== FOOTER CON LOGO GIGANTE ===== */
footer {
    background: #2F363D;
    color: white;
    padding: 70px 5% 30px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    height: 200px !important;
    width: auto;
    display: block;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-text {
    color: #ADB5BD;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons span {
    background: #3E4A52;
    padding: 8px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.social-icons span:hover {
    background: #2E7D32;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    color: #ADB5BD;
}

.footer-links a {
    color: #ADB5BD;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.newsletter {
    display: flex;
    margin-top: 15px;
    flex-wrap: wrap;
}

.newsletter input {
    padding: 12px;
    border: none;
    flex: 1;
    min-width: 200px;
    border-radius: 50px 0 0 50px;
    outline: none;
}

.newsletter button {
    background: #2E7D32;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter button:hover {
    background: #1B3168;
}

.copyright {
    text-align: center;
    color: #8A9A9F;
    font-size: 14px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #3E4A52;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== WIZARD CALCULATOR ===== */
.calculadora-wizard {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    border: 1px solid #E9ECEF;
    max-width: 1000px;
    margin: 0 auto;
}

.wizard-paso {
    display: none;
}

.wizard-paso.active {
    display: block;
    animation: fadeIn 0.5s;
}

.wizard-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1B3168;
}

.wizard-paso-numero {
    background: #1B3168;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.wizard-paso-titulo {
    font-size: 24px;
    font-weight: 600;
    color: #1B3168;
}

.wizard-btn {
    background: #2E7D32;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    transition: all 0.2s;
}

.wizard-btn:hover {
    background: #1B3168;
    transform: scale(1.02);
}

/* Tarjetas de ubicación en la calculadora */
.calc-ubicacion-card {
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.calc-ubicacion-card:hover {
    border-color: #1B3168;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.calc-ubicacion-card.seleccionada {
    border-color: #1B3168;
    background: #F0F5FF;
}

.calc-ubicacion-icono {
    font-size: 48px;
    margin-bottom: 10px;
}

.calc-ubicacion-nombre {
    font-weight: 700;
    font-size: 20px;
    color: #1B3168;
    margin-bottom: 5px;
}

.calc-ubicacion-msi {
    color: #2E7D32;
    font-weight: 600;
}

.enganche-opciones {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.enganche-boton {
    border: 2px solid #E9ECEF;
    border-radius: 50px;
    padding: 15px 5px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.enganche-boton:hover {
    border-color: #1B3168;
    background: #F0F5FF;
}

.enganche-boton.seleccionado {
    background: #1B3168;
    color: white;
    border-color: #1B3168;
}

.resultado-final {
    background: white;
    border-radius: 16px;
    padding: 40px;
    border: 2px solid #2E7D32;
}

.resultado-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.resultado-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #F8F9FA;
    border-radius: 8px;
}

.resultado-mensualidades {
    background: #1B3168;
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
}

.resultado-mensualidades div:first-child {
    font-size: 20px;
    opacity: 0.9;
}

.resultado-mensualidades div:nth-child(2) {
    font-size: 48px;
    font-weight: 700;
    margin: 10px 0;
}

/* ===== GANCHO FINAL LLAMATIVO - EQUILIBRADO Y CON BUEN USO DEL ESPACIO ===== */
.gancho-final {
    background: linear-gradient(135deg, #1B3168, #2E7D32);
    color: white;
    padding: 45px 35px;
    border-radius: 20px;
    cursor: pointer;
    margin: 30px auto;
    animation: pulse 2s infinite;
    max-width: 95%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    min-height: 280px;
}

.gancho-icono {
    font-size: 64px;
    display: inline-block;
    flex-shrink: 0;
}

.gancho-titulo {
    font-size: 28px !important;
    font-weight: 800 !important;
    text-align: center;
    line-height: 1.3;
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0;
}

.gancho-desc {
    font-size: 18px;
    opacity: 0.95;
    text-align: center;
}

.gancho-boton {
    background: white;
    color: #1B3168;
    padding: 14px 32px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 800;
    font-size: 18px;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gancho-boton:hover {
    transform: scale(1.05);
    background: #f5f5f5;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ANIMACIONES */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #E9ECEF;
    border-top: 5px solid #1B3168;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-wrapper {
        flex-direction: column;
    }
    .hero-carrusel {
        width: 100%;
        max-width: 600px;
    }
    .grid-3, .proyectos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .level-2 {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .logo-area img {
        height: 80px;
    }
    
    .tagline-phone-container {
        flex-direction: column;
        gap: 5px;
    }
    
    .tagline {
        font-size: 18px;
    }
    
    .phone-secondary {
        font-size: 20px;
        border-left: none;
        padding-left: 0;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .main-menu {
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .grid-3, .proyectos-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter input {
        border-radius: 50px;
        margin-bottom: 10px;
    }
    
    .newsletter button {
        border-radius: 50px;
        width: 100%;
    }
    
    .level-1 {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .level-1-contact {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Responsive para botones flotantes */
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 20px !important;
        right: 20px;
    }
    
    .back-to-top.visible {
        bottom: 20px !important;
    }
    
    .footer-logo img {
        height: 150px !important;
    }

    /* Responsive para wizard */
    .enganche-opciones,
    .resultado-grid {
        grid-template-columns: 1fr;
    }
    
    .wizard-paso-titulo {
        font-size: 20px;
    }
    
    .calculadora-wizard {
        padding: 20px;
    }

    /* Responsive para el gancho final */
    .gancho-final {
        padding: 30px 20px;
        margin: 20px auto;
        max-width: 95%;
        gap: 20px;
        min-height: auto;
    }
    
    .gancho-icono {
        font-size: 52px;
    }
    
    .gancho-titulo {
        font-size: 22px !important;
    }
    
    .gancho-desc {
        font-size: 16px;
    }
    
    .gancho-boton {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .gancho-icono {
        font-size: 48px;
    }
    
    .gancho-titulo {
        font-size: 20px !important;
    }
    
    .gancho-boton {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* GANCHO FINAL - TÍTULO MÁS GRANDE (respaldo) */
.gancho-titulo {
    font-size: 32px !important;
    font-weight: 800 !important;
    margin-bottom: 20px;
}

/* ===== BOTÓN AURA CON IMAGEN MADI - TAMAÑO GRANDE ===== */
#aura-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 9998;
    font-family: 'Inter', sans-serif;
}

#aura-boton {
    background: linear-gradient(135deg, #1B3168 0%, #2E7D32 100%);
    width: 95px;
    height: 95px;
    border-radius: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

#aura-boton:hover {
    width: auto;
    padding: 0 30px 0 25px;
    gap: 10px;
    border-radius: 50px;
}

/* Imagen MADI dentro del botón - MÁS GRANDE pero dentro del botón */
.madi-img-boton {
    width: 85px;
    height: 85px;
    background-image: url('../images/madi.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#aura-boton:hover .madi-img-boton {
    width: 70px;
    height: 70px;
}

.aura-texto {
    display: none;
    font-weight: 700;
    font-size: 20px;
    color: white;
    letter-spacing: 1px;
    white-space: nowrap;
}

#aura-boton:hover .aura-texto {
    display: inline;
}

#aura-ventana {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid #E9ECEF;
    display: none;
    z-index: 9999;
}

#aura-ventana iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Animación de pulso */
@keyframes auraPulse {
    0% { transform: scale(1); box-shadow: 0 6px 18px rgba(27,49,104,0.3); }
    50% { transform: scale(1.08); box-shadow: 0 12px 28px rgba(27,49,104,0.5); }
    100% { transform: scale(1); box-shadow: 0 6px 18px rgba(27,49,104,0.3); }
}

.pulse-animation {
    animation: auraPulse 2s infinite ease-in-out;
}

@media (max-width: 768px) {
    #aura-widget {
        bottom: 85px;
        right: 20px;
    }
    #aura-boton {
        width: 75px;
        height: 75px;
    }
    .madi-img-boton {
        width: 55px;
        height: 55px;
    }
    #aura-ventana {
        width: 320px;
        height: 480px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    #aura-boton {
        width: 65px;
        height: 65px;
    }
    .madi-img-boton {
        width: 48px;
        height: 48px;
    }
    #aura-ventana {
        width: 290px;
        height: 440px;
        right: -5px;
    }
}


/* ===== SELLO PRÓXIMAMENTE ===== */
.sello-proximamente {
    position: absolute;
    top: 45px;
    right: -30px;
    background: linear-gradient(135deg, #F39200, #E07B00);
    color: white;
    padding: 10px 0;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    z-index: 1000;
    letter-spacing: 1.5px;
    border: 3px solid rgba(255,255,255,0.9);
    white-space: nowrap;
    width: 260px;
    text-align: center;
    pointer-events: none;
    line-height: 1.5;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .sello-proximamente {
        font-size: 13px;
        width: 200px;
        padding: 8px 0;
        right: -25px;
        top: 35px;
    }
}

@media (max-width: 480px) {
    .sello-proximamente {
        font-size: 11px;
        width: 150px;
        padding: 5px 0;
        right: -25px;
        top: 25px;
    }
}