:root {
    --premium-bg: #f8f9fa;
    --premium-accent: #232d3b;
    --font-heading: 'Montserrat', sans-serif;
    --font-serif: 'Abhaya Libre', serif;
}

/* Base Resets */
* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: auto !important;
}

/* Hide scrollbar for all browsers */
*::-webkit-scrollbar {
    display: none !important;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--premium-bg);
    color: #1a1a1a;
    font-family: var(--font-heading);
    overflow-x: hidden;
    overflow-y: auto !important;
    /* Force scrollable */
    width: 100%;
    position: relative;
    touch-action: pan-y !important;
    /* Explicitly allow vertical panning */
    -webkit-overflow-scrolling: touch !important;
}

.wrapper {
    width: 100%;
    position: relative;
}

/* Header & Scroll Transition - DELETED */
header,
#header-desktop,
#header-mobile,
.header-wrapper,
.header-container {
    display: none !important;
}

[data-header-desktop] .page,
[data-header-mobile] .page {
    padding-top: 0 !important;
}



/* Hero Section */
#hero {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.hero-architectural-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* Ensure rails */
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.hero-background-image {
    position: fixed;
    /* Pinned to the background as requested */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.hero-background-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    /* The window in your file is already centered */
    transform: none !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* No overlay gradient */
.hero-background-image::after {
    content: none !important;
}

/* Integrated Hero Logo */
.hero-logo-integrated {
    height: 128px;
    /* 50% larger than 85px */
    width: auto;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.1));
}

.hero-content-grid {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Equal split */
    align-items: center;
}

.hero-text-side {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 26%;
    /* Aumentado otro 30% */
    padding-right: 5%;
    width: 100%;
    max-width: none;
    /* Eliminamos el límite para que llegue a la mitad */
}

.hero-heading-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.h1 {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem) !important;
    line-height: 1.05 !important;
    font-family: var(--font-serif) !important;
    /* Restored original font */
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem !important;
    color: #ffffff !important;
    max-width: 90%;
    /* Expandimos el subtítulo para que use el espacio */
    margin: 0 0 2.5rem 0 !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    opacity: 0.95;
}

.btn-hero-outline {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid #ffffff;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: #ffffff;
    color: #1a1a1a !important;
}

@media (max-width: 991px) {
    .hero-content-grid {
        grid-template-columns: 1fr;
        padding-top: 150px;
        /* Aumentado de 80px para bajar el texto y logo */
    }

    .hero-text-side {
        align-items: flex-start;
        /* Alineado a la izquierda */
        text-align: left;
        /* Texto a la izquierda */
        padding-left: 21%;
        /* Aumentado otro 30% */
        padding-right: 20%;
        background: transparent;
        width: 100%;
        transform: none;
        /* Asegurar que no hay desplazamientos residuales */
    }

    .h1 {
        font-size: 1.6rem !important;
        /* Slightly smaller to fit better */
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        max-width: 220px;
    }

    .hero-bracket {
        display: block;
        /* Keep it on mobile */
    }

    .hero-top-nav {
        padding: 30px 5%;
    }
}

/* Solo para versión Celular (Phones) - Mitad del margen actual */
@media (max-width: 767px) {
    .hero-text-side {
        padding-left: 10.5% !important;
    }
}

/* NUCLEAR RESET FOR BUTTONS - HERO STYLE */
.btn,
.btn:link,
.btn:visited {
    display: inline-block;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 12px 28px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 0;
    /* Cuadrados como en referencia */

    /* ESTILO OUTLINE POR DEFECTO PARA HERO */
    background: transparent !important;
    color: #2c3e50 !important;
    /* Darker architectural color for visibility */
    border: 1px solid #2c3e50 !important;
    outline: none !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    /* Bolder for visibility */
}

/* Eliminar efectos de librerías externas en pseudo-elementos */
.btn::before,
.btn::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

.btn:focus,
.btn:active,
.btn:hover,
.btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1) !important;
    /* Hover sutil */
    border: 1px solid #fff !important;
}

/* Sobrescribir estilos específicos si existen */
.btn-primary,
.btn-secondary {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

.btn-primary:hover,
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    border-color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-grid-container {
        grid-template-columns: 1fr;
    }

    .hero-image-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.6;
        /* Hacemos la imagen fondo en móvil */
        z-index: 0;
    }

    .hero-content {
        background: transparent;
        padding: 100px 5%;
        justify-content: center;
        width: 100%;
    }
}



/* Button Layout */
.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 16px 32px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 4px;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.btn:focus,
.btn:active,
.btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Hero Buttons - Extra Specificity */
.hero-btns .btn {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.hero-btns .btn:focus,
.hero-btns .btn:active,
.hero-btns .btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.btn-primary {
    background: var(--premium-accent) !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-primary:hover {
    background: #1a222c !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.btn-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:focus-visible {
    outline: none !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

/* Products Section - Vertical Alternating */
#productos-y-servicios {
    background: #ffffff;
    padding: 140px 15% !important;
    /* Increased horizontal margin significantly */
    position: relative;
    z-index: 10;
    overflow: hidden;
}

#productos-y-servicios .container {
    max-width: 1400px;
    margin: 0 auto;
}

.title-container {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
    margin-bottom: 15px !important;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.title-container p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 150px;
    /* More vertical space between products */
}

/* Alternating Card Layout */
.product {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    /* Image is slightly smaller than text */
    gap: 40px;
    align-items: center;
}

.product:nth-child(even) {
    direction: rtl;
}

.product:nth-child(even)>* {
    direction: ltr;
}

@media (max-width: 991px) {
    .product {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product:nth-child(even) {
        direction: ltr;
    }

    .product-image-container {
        height: 280px;
    }

    .product .flow {
        padding: 20px 0 !important;
        text-align: center;
    }
}

.product-image-container {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    position: relative;
    background: transparent !important;
    /* Removed #f5f5f5 */
    border: none !important;
    padding: 0 !important;
}

/* Hover effect removed at user request */

.product-image {
    width: 100% !important;
    height: 120% !important;
    object-fit: cover !important;
    position: absolute;
    top: -10%;
    left: 0;
    transition: none !important;
    border: none !important;
}

/* Remove decorative blue lines from style.min.css override */
.product-list .product::after {
    content: none !important;
    display: none !important;
}

/* Hover scale removed at user request */

/* CTA Catálogo - New Section Styles */
.catalog-cta-section {
    padding: 80px 5%;
    background: #ffffff;
    text-align: center;
}

.catalog-cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #eee;
}

.catalog-cta-section .btn {
    margin-top: 20px;
    background: var(--premium-accent) !important;
    color: #fff !important;
}

.product .flow {
    padding: 20px 0 20px 40px;
    /* Adjusted padding */
}

.product h3 {
    font-family: var(--font-serif);
    font-size: 2rem !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    color: #1a1a1a !important;
    letter-spacing: -0.02em !important;
}

.product p {
    color: #666 !important;
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

/* About Section - Premium Landing Page */
#nosotros {
    background: #f8f9fa;
    padding: 120px 5%;
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* Prevent entrance animation spill */
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text .title {
    margin-bottom: 30px;
}

.lead {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--premium-accent);
    margin-bottom: 30px;
    line-height: 1.6;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #ddd;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-family: var(--font-serif);
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    color: var(--premium-accent) !important;
    margin: 0 0 10px 0 !important;
    line-height: 1 !important;
}

/* Footer Map - Square Proportion */
.footer-map {
    width: 100%;
    max-width: 450px;
    margin: 40px auto 60px;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #eee;
    height: 450px !important;
    /* Force height if aspect-ratio fails */
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.stat-item p {
    font-size: 1rem !important;
    color: #666 !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Footer / Contact Section - Premium */
.footer {
    background: #ffffff !important;
    color: #1a1a1a !important;
    padding: 80px 5% 40px;
    border-top: 1px solid #eee;
    position: relative;
    z-index: 10;
}

/* Footer Layout Re-structure */
.footer-split-layout {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.footer-map-side {
    flex: 1;
    width: 100%;
}

.footer-map {
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    aspect-ratio: 16/9;
    /* Widescreen map */
    height: 100%;
    min-height: 350px;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Removed filter to show original map colors */
}

/* Right Side Contact Info */
.footer-contact-side {
    flex: 0 0 40%;
    /* 40% width for contact info */
    text-align: left;
}

.contact-heading {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.contact-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.icon-box {
    width: 24px;
    height: 24px;
    margin-top: 5px;
    flex-shrink: 0;
}

.icon-box .icon {
    width: 100%;
    height: 100%;
    fill: #000000;
    /* Crisp black icons */
}

.text-box h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem 0;
}

.text-box p,
.text-box a {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
    text-decoration: none;
}

/* Centered Footer Logo */
.footer-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.footer-logo-img {
    height: 60px;
    /* Subtle logo size */
    width: auto;
    opacity: 0.8;
}

@media (max-width: 991px) {
    .footer-split-layout {
        flex-direction: column;
        gap: 40px;
    }

    .footer-contact-side {
        width: 100%;
        padding-left: 20px;
    }

    .footer-map {
        aspect-ratio: 4/3;
    }
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #eee;
    width: 100%;
}

.footer-bottom p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

/* Floating Sticky Button - Premium Redesign */
/* Floating Sticky Button - Premium Redesign */
.btn-sticky-hero {
    position: fixed;
    bottom: 40px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    background: #000000 !important;
    color: #ffffff !important;
    padding: 18px 40px;
    text-decoration: none !important;
    font-family: var(--font-serif) !important;
    /* Matches hero title (Serif) */
    font-size: 1.1rem;
    font-weight: 700 !important;
    /* Exact weight of hero title */
    text-transform: none;
    /* No caps to match title style */
    letter-spacing: -0.01em;
    z-index: 1000;
    border-radius: 0;
    opacity: 0;
    /* Initial state, animating with GSAP */
    visibility: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    /* Deep, neutral black shadow */
    z-index: 999;
}

.whatsapp-icon {
    display: none !important;
    /* Remove icon totally */
}

.whatsapp-text {
    margin: 0 !important;
    padding: 0 !important;
}

.btn-sticky-hero:hover {
    background: #252525 !important;
    transform: translateY(-5px) !important;
    color: #ffffff !important;
}

#fixed-buttons {
    display: none !important;
}

.horizontal-wrapper {
    display: none;
}

#productos-y-servicios .my-4,
#productos-y-servicios .my-6 {
    margin: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {

    /* Mobile font scale for restored serif */
    .h1 {
        font-size: 2.2rem !important;
    }

    .hero-content {
        margin-left: 5%;
        max-width: 90%;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .product {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product:nth-child(even) {
        direction: ltr;
    }

    .product-image-container {
        height: 240px;
    }

    .product .flow {
        padding: 20px;
    }

    .title-container {
        margin-bottom: 50px;
    }

    #productos-y-servicios {
        padding: 80px 12% !important;
        /* Generous margins for mobile */
    }

    .product-list {
        gap: 100px;
        /* More space between products on mobile */
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-item h3 {
        font-size: 2.5rem !important;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-bottom: 100px;
    padding-bottom: 80px;
    border-bottom: 1px solid #eee;
}

.cta-section .title {
    color: #1a1a1a !important;
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
}

.cta-section .lead {
    color: #666 !important;
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    background: var(--premium-accent) !important;
    color: #ffffff !important;
    border: 2px solid var(--premium-accent) !important;
    padding: 20px 40px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-cta:hover {
    background: #1a222c !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-outline-white {
    background: transparent !important;
    color: var(--premium-accent) !important;
    border: 2px solid var(--premium-accent) !important;
    padding: 20px 40px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-outline-white:hover {
    background: #f8f9fa !important;
    transform: translateY(-3px);
}

.icon-inline {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cta,
    .btn-outline-white {
        width: 100%;
        justify-content: center;
    }
}

/* WhatsApp Sticky Button */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff !important;
    padding: 12px 26px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1rem;
}

.whatsapp-sticky:hover {
    transform: scale(1.05) translateY(-5px);
    background: #20ba5a;
}

.whatsapp-icon {
    width: 22px;
    height: 22px;
    fill: #fff;
}

@media (max-width: 768px) {
    .whatsapp-sticky {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}