/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
   :root {
    --primary-color: #FF5A00;
    --primary-hover: #E04F00;
    --text-dark: #000000;
    --text-muted: #555555;
    --text-light: #777777;
    --bg-light: #F9F9F9;
    --border-color: #E2E2E2;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: #FFFFFF;
    /* Efecto del fondo cuadriculado sutil del diseño original */
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   2. COMPONENTES REUTILIZABLES (BOTONES / BADGES)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 2px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: var(--text-dark);
    border: 1px solid #000000;
}

.btn-secondary:hover {
    background-color: #F5F5F5;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%; /* Default móvil full width */
}
.btn-third {
    background-color:#3179b0;
    color:#fff;
    border: 1px solid #000000;
}
.btn-third:hover {
    background-color: #F5F5F5;
    color:#000
}

@media (min-width: 768px) {
    .btn-large {
        width: auto;
    }
}

/* ==========================================================================
   3. MENÚ DE NAVEGACIÓN (HEADER)
   ========================================================================== */
.header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.2rem;
}
.logo img {
    max-width: 150px;
    display:flex;
}
.logo-box {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Menú Mobile & Animaciones Toggle */
.menu-toggle {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* Animación sutil de la hamburguesa */
.menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
}
.menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #FFFFFF;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    padding: 80px 2rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Animación sutil */
    z-index: 1001;
}

.menu-toggle:checked ~ .nav-menu {
    right: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.whatsapp-link {
    font-weight: 500;
    margin-right: 1rem;
    transition: color 0.2s;
}

.whatsapp-link:hover {
    color: #25D366;
}

.nav-right-desktop {
    display: none;
}

.nav-right-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

/* Responsive Desktop para Nav */
@media (min-width: 1024px) {
    .hamburger { display: none; }
    
    .nav-menu {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        padding: 0;
        box-shadow: none;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
    
    .nav-right-mobile { display: none; }
    .nav-right-desktop {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   4. SECCIÓN HERO (CONTENIDO PRINCIPAL)
   ========================================================================== */
.hero {
    padding: 2rem 1rem;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
        padding: 4rem 0;
    }
}

/* Elementos del bloque izquierdo */
.badge-container {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    background-color: #FFFFFF;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 8px;
}

.badge-separator {
    margin: 0 10px;
    color: var(--primary-color);
}

.hero-title {
    font-size: 2.3rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}

@media (min-width: 576px) {
    .hero-actions {
        flex-direction: row;
    }
}

.hero-actions .btn-secondary i {
    margin-right: 8px;
}

/* Grid de Especificaciones Técnicas (Métricas) */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

@media (min-width: 768px) {
    .specs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.spec-number .unit {
    font-size: 1.2rem;
    font-weight: 700;
    vertical-align: super;
    margin-left: 2px;
}

.spec-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   5. MEDIA / IMAGEN Y COORDENADAS (BLOQUE DERECHO)
   ========================================================================== */
.hero-media {
    width: 100%;
}

.image-wrapper {
    position: relative;
    background: #3179B0;
    background: linear-gradient(180deg,rgba(49, 121, 176, 1) 0%, rgba(115, 194, 255, 1) 100%);
    padding:50px 0px;
}

@media (min-width: 1024px) {
    .image-wrapper {
        padding-bottom: 80px;
    }
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.coordinates-box {
    background-color: #000000;
    color: #FFFFFF;
    padding: 1.2rem;
    font-family: monospace; /* Tipografía técnica */
    width: 100%;
}

@media (min-width: 768px) {
    .coordinates-box {
        position: absolute;
        bottom: -40px;
        left: -30px; /* Ligeramente desfasado hacia la izquierda en pantallas grandes */
        max-width: 420px;
    }
}

.coords-title {
    font-size: 0.65rem;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.coords-numbers {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.coords-address {
    font-size: 0.7rem;
    color: #CCCCCC;
    text-transform: uppercase;
}
/* ==========================================================================
   6. MODAL Y FORMULARIO DE CONTACTO
   ========================================================================== */
   .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Clase activa manejada por JS */
.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: #FFFFFF;
    width: 90%;
    max-width: 480px;
    padding: 2.5rem 2rem;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.modal-overlay.is-open .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Campos de Formulario */
.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* ==========================================================================
   7. NOTIFICACIÓN FLOTANTE (TOAST DE ÉXITO)
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #10B981; /* Verde esmeralda para éxito */
    color: #FFFFFF;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    max-width: 350px;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-icon {
    font-size: 1.8rem;
}

.toast-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.toast-text p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.3;
}

/* ==========================================================================
   8. MODAL DE DETALLES EXTENDIDOS (FICHA TÉCNICA)
   ========================================================================== */
   .modal-container.modal-large {
    max-width: 950px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto; /* Permite scroll en pantallas muy pequeñas */
    padding: 3rem 2rem;
}

.location-tag {
    font-size: 0.75rem;
    background-color: #FFF0E6;
    color: var(--primary-color);
    padding: 4px 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.address-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.5rem 0 1.5rem 0;
}

.details-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

/* Distribución a 2 columnas en escritorios */
@media (min-width: 768px) {
    .details-layout {
        grid-template-columns: 1.2fr 1fr;
    }
}

.extended-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.ext-spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
}
.ext-spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.features-list h3, .details-gallery h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.features-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.features-list li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.features-list li i {
    color: #10B981; /* Icono de check verde */
    margin-right: 6px;
}

.details-cta-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.details-cta-box p {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Galería de Fotos */
.gallery-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item:first-child {
        grid-column: span 2; /* Primera imagen más grande destacada */
    }
}

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    background-color: #000;
}

.zoomable-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.2s;
}

.gallery-item:hover .zoomable-img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ==========================================================================
   9. VISOR DE IMAGEN PANTALLA COMPLETA (LIGHTBOX)
   ========================================================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.lightbox-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 2px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-overlay.is-open .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-caption {
    color: #CCCCCC;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
    font-family: var(--font-sans);
}