/* ============================================================
   Constructora Patrimonial Chiloï¿½ ï¿½ styles.css
   Estilo: Industrial Claro, Moderno, Profesional
   Color primario: #F97316 (Naranja constructivo)
   Tipografï¿½a: Plus Jakarta Sans + Inter
   ============================================================ */

/* --- CUSTOM PROPERTIES --- */
:root {
    /* Brand colors */
    --orange-500: #F97316;
    --orange-400: #FB923C;
    --orange-600: #EA6C10;
    --orange-light: #FEF3E8;
    --orange-border: #FDBA74;

    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-warm: #F8F5F0;
    --bg-warm-2: #F0EBE3;
    --bg-dark: #1C1410;
    --bg-dark-2: #2A1F16;

    /* Text */
    --text-primary: #1A1208;
    --text-secondary: #4A3F30;
    --text-tertiary: #7A6D5E;
    --text-light: #B5A898;

    /* Borders */
    --border: #E8E0D5;
    --border-dark: #C8BBA8;

    /* Spacing base */
    --container-max: 1240px;
    --container-pad: clamp(1.25rem, 4vw, 2.5rem);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .06);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, .14), 0 8px 24px rgba(0, 0, 0, .08);
    --shadow-orange: 0 8px 32px rgba(249, 115, 22, .25);

    /* Navbar height */
    --navbar-h: 80px;
}


/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--navbar-h, 110px); -webkit-font-smoothing: antialiased; }
html, body { overflow-x: hidden; width: 100%; max-width: 100vw; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* --- CONTAINER --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.15;
    font-weight: 700;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 600;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- SECTION LABELS --- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange-500);
    margin-bottom: 0.75rem;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--orange-500);
    border-radius: 2px;
}

/* --- SECTION HEADER --- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
}

/* --- ACCENT TEXT --- */
.text-accent {
    color: var(--orange-500);
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange-500);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: 8px;
    border: 2px solid var(--orange-500);
    transition: all var(--transition-smooth);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--orange-600);
    border-color: var(--orange-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: 8px;
    border: 2px solid var(--border-dark);
    transition: all var(--transition-smooth);
    white-space: nowrap;
}

.btn-secondary:hover {
    border-color: var(--orange-500);
    color: var(--orange-500);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--orange-500);
    border-bottom: 2px solid var(--orange-border);
    padding-bottom: 2px;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    border-color: var(--orange-500);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all var(--transition-smooth);
    white-space: nowrap;
}

.btn-outline-white:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}


/* --- SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ------------------------------------------------------
   NAVBAR
------------------------------------------------------ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
    background: #F8F9FA;
    transition: all var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(248, 249, 250, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .07);
    padding: 10px 0;
}

.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
}

.logo-img:hover {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 1.2vw, 1.25rem);
    justify-content: center;
    flex-wrap: nowrap;
}

.nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--orange-500);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
    transform-origin: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.has-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-white);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    border: 1px solid var(--border);
    margin-top: 5px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    color: var(--orange-500);
    background: var(--orange-light);
    padding-left: 20px;
}

/* Base styles for CTA and Hamburger */
.nav-cta {
    display: inline-flex;
}

/* Hamburger — hidden on desktop, shown inside @media (max-width: 768px) */
.mobile-menu-btn {
    display: none;
}

/* Mobile menu overlay — hidden on desktop, shown via transform inside media queries */
.mobile-menu {
    display: none;
    transform: translateY(100%);
}

@media (max-width: 1024px) {
    /* Show hamburger, hide desktop nav, and position correctly */
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    .nav-links, .nav-cta { display: none !important; }
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 11px 7px;
        z-index: 10001;
        position: relative;
    }
    .mobile-menu-btn span {
        display: block;
        width: 30px;
        height: 2.5px;
        background: var(--text-primary, #1a1a1a);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }
    .mobile-menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .mobile-menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .mobile-menu-btn.open span { background: #fff; }

    /* Enable the menu overlay (hidden off-screen via transform) */
    .mobile-menu {
        display: block;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        background: #111;
        z-index: 10000;
        overflow: hidden;
        transform: translateY(100%);
        transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    .mobile-menu.open {
        transform: translateY(0);
        pointer-events: auto;
    }
}



/* ------------------------------------------------------
   HERO SECTION (Fullscreen Centered)
------------------------------------------------------ */
.hero {
    min-height: 100vh;
    padding-top: var(--navbar-h);
    background-image: url('images/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    /* Dark overlay for text legibility */
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 4rem;
    padding-bottom: 5rem;
    width: 100%;
}

.hero-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-text-wrapper {
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    margin-bottom: 1.25rem;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 640px;
    margin-bottom: 2.25rem;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Base text color utilities for Hero */
.text-center {
    text-align: center;
}

.text-white {
    color: #fff;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.9);
}

.justify-center {
    justify-content: center;
}

/* --- SECCIï¿½N POR QUï¿½ ELEGIRNOS --- */
.porque-section {
    position: relative;
    padding: 100px 0;
    background-image: url('images/interiorpag.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Fix Bug iOS Safari */
    color: var(--white);
    overflow: hidden;
}

@media (min-width: 1025px) {
    .porque-section {
        background-attachment: fixed;
    }
}

/* Overlay is applied via explicit div in HTML, not pseudo-element */


/* Asegurar que el contenido estï¿½ por encima del overlay */
.porque-section .container {
    position: relative;
    z-index: 2;
}

.porque-section .section-title {
    color: var(--white);
    margin-bottom: 3rem;
}

.porque-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.porque-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.porque-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* GLASS DARK variant ï¿½ used when background image is visible */
.porque-glass {
    background: rgba(0, 0, 0, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.porque-glass:hover {
    background: rgba(0, 0, 0, 0.78) !important;
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5) !important;
}

.porque-glass h3,
.porque-glass .porque-body h3 {
    color: #FFFFFF !important;
}

.porque-glass p,
.porque-glass .porque-body p {
    color: #E5E5E5 !important;
}

.porque-glass .porque-accent-line {
    background: rgba(249, 115, 22, 0.6) !important;
}

/* Icon wrap */
.porque-icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(249, 115, 22, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.porque-glass .porque-icon-wrap {
    background: rgba(249, 115, 22, 0.2);
}

.porque-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.porque-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.porque-accent-line {
    height: 3px;
    width: 40px;
    background: var(--orange-500);
    border-radius: 2px;
    margin-top: 1.5rem;
    opacity: 0.7;
}

/* Cierre / Quote */
.porque-cierre {
    text-align: center;
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.porque-cierre-dark {
    background: rgba(0, 0, 0, 0.62);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
    max-width: 780px;
    text-align: center;
}

.porque-quote {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary);
    max-width: 680px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.porque-quote-dark {
    color: #FFFFFF !important;
    justify-content: center;
    text-align: center;
}

/* Section header dark variant for dark section backgrounds */
.porque-section .section-header h2,
.porque-section .section-header h2 .text-accent {
    color: #FFFFFF;
}

.porque-section .section-header .section-label {
    color: #F97316;
}

.porque-section .section-header p {
    color: rgba(255, 255, 255, 0.85);
}



/* ------------------------------------------------------
   PROPUESTA SECTION
------------------------------------------------------ */
.propuesta-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.propuesta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.propuesta-text h2 {
    margin-bottom: 1.25rem;
}

.propuesta-text p {
    margin-bottom: 1rem;
}

.propuesta-text .btn-outline {
    margin-top: 1rem;
}

/* Pilares */
.pilares-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.pilar {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.25rem;
    background: var(--bg-warm);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all var(--transition-smooth);
}

.pilar:hover {
    border-color: var(--orange-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pilar-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--orange-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pilar h4 {
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.pilar p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-tertiary);
}


/* ------------------------------------------------------
   SERVICIOS ï¿½ FLIP CARDS
------------------------------------------------------ */
.servicios-section {
    padding: 6rem 0;
    background: var(--bg-warm);
}

/* 2x2 static services grid */
.services-grid-static {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}



.service-card-static {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.service-card-static:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange-border);
}

.service-img-wrapper {
    height: 320px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-img-wrapper .service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card-static:hover .service-image {
    transform: scale(1.05);
}

.service-content-static {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.service-icon-static {
    width: 44px;
    height: 44px;
    background: var(--orange-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-500);
    flex-shrink: 0;
}

.service-content-static h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.35;
}

.service-content-static p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.service-content-static .btn-outline {
    align-self: flex-start;
    margin-top: 0.5rem;
}



/* ------------------------------------------------------
   PROYECTOS ï¿½ GALERï¿½A
------------------------------------------------------ */
.proyectos-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.galeria-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.galeria-preview-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 480px;
    box-shadow: var(--shadow-lg);
}

.galeria-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.galeria-preview-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
    transition: background 0.4s ease;
}

.galeria-preview-card:hover .galeria-preview-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

.galeria-preview-content h3 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.galeria-preview-card:hover .galeria-preview-content h3 {
    transform: translateY(0);
}

.galeria-preview-content .btn-primary {
    opacity: 0.9;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.galeria-preview-card:hover .galeria-preview-content .btn-primary {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}


/* ------------------------------------------------------
   PROCESO
------------------------------------------------------ */
.proceso-section {
    padding: 6rem 0;
    background: var(--bg-warm);
}

/* Contenedor principal */
.proceso-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* Cada fila de pasos */
.proceso-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

/* Fila inferior centrada con los dos pasos */
.proceso-row-bottom {
    justify-content: center;
}

/* --- Cada paso --- */
.proceso-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    max-width: 320px;
    padding: 0 1rem;
    margin-left: auto;
    margin-right: auto;
}

/* Fila 2: cada paso es mï¿½s ancho porque son 2 en vez de 3 */
.proceso-row-bottom .proceso-step {
    max-width: 380px;
}

/* --- Cï¿½rculo del paso --- */
.step-number {
    width: 56px;
    height: 56px;
    background: var(--orange-500);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-orange);
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

/* Cï¿½rculo outline para paso 00 */
.step-number.step-optional {
    background: transparent !important;
    border: 2px dashed #F97316;
    color: #F97316;
    box-shadow: none;
}

/* Etiqueta (Opcional) */
.step-optional-label {
    font-size: 0.85em;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 0.3rem;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.step-content p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0 auto;
}

/* --- Conectores horizontales --- */
.step-h-connector {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Bajar el conector al centro del cï¿½rculo (56px/2 = 28px) */
    margin-top: 28px;
    width: clamp(40px, 6%, 80px);
}

/* La lï¿½nea, usando flex:1 para que ocupe el espacio disponible menos la flecha */
.step-h-connector::before {
    content: '';
    display: block;
    height: 2px;
    flex: 1;
}

/* Dashed: 00?01 */
.step-h-connector--dashed::before {
    background: repeating-linear-gradient(
        90deg,
        rgba(249,115,22,0.5) 0px,
        rgba(249,115,22,0.5) 6px,
        transparent 6px,
        transparent 10px
    );
}

/* Solid: 01?02 y 03?04 */
.step-h-connector--solid::before {
    background: #F97316;
}

/* Flecha SVG al final del conector */
.step-arrow-svg {
    flex-shrink: 0;
    display: block;
}


/* --- MOBILE: columna vertical --- */








/* ------------------------------------------------------
   NOSOTROS
------------------------------------------------------ */
.nosotros-section {
    padding: 6rem 0;
    background: var(--bg-white);
    overflow: hidden;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.nosotros-visual {
    position: relative;
    overflow: hidden;
}

.nosotros-img {
    width: 100%;
    max-width: 100%;
    display: block;
    height: 520px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow-xl);
}

/* Orange accent corners */
.nosotros-visual::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 60px;
    height: 60px;
    border-top: 4px solid var(--orange-500);
    border-left: 4px solid var(--orange-500);
    z-index: 2;
    border-radius: 3px;
}

.nosotros-visual::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 60px;
    height: 60px;
    border-bottom: 4px solid var(--orange-500);
    border-right: 4px solid var(--orange-500);
    z-index: 2;
    border-radius: 3px;
}

.nosotros-quote-box {
    position: absolute;
    bottom: 20px;
    left: -20px;
    max-width: 280px;
    background: var(--bg-white);
    border-left: 4px solid var(--orange-500);
    padding: 1.25rem 1.5rem;
    border-radius: 0 10px 10px 0;
    box-shadow: var(--shadow-lg);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    z-index: 3;
}

.nosotros-content h2 {
    margin-bottom: 1.25rem;
}

.nosotros-content p {
    margin-bottom: 1rem;
}

.nosotros-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.nosotros-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 10px;
    border-left: 4px solid var(--orange-500);
}

.nosotros-badge strong {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: block;
}

.nosotros-badge span {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}


/* ------------------------------------------------------
   TESTIMONIOS
------------------------------------------------------ */
.testimonios-section {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.testimonios-section .section-header {
    color: #fff;
}

.testimonios-section .section-header h2 {
    color: #fff;
}

.testimonios-section .section-header p {
    color: rgba(255, 255, 255, .6);
}

.testimonios-section .section-label {
    color: var(--orange-400);
}

.testimonios-section .section-label::before {
    background: var(--orange-400);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonio-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    transition: all var(--transition-smooth);
}

.testimonio-card:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(249, 115, 22, .3);
    transform: translateY(-4px);
}

.testimonio-stars {
    font-size: 1rem;
    color: var(--orange-400);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonio-card p {
    color: rgba(255, 255, 255, .8);
    font-size: 0.92rem;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonio-autor {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1.25rem;
}

.autor-avatar {
    width: 42px;
    height: 42px;
    background: var(--orange-500);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonio-autor strong {
    color: #fff;
    font-size: 0.9rem;
    display: block;
}

.testimonio-autor span {
    color: rgba(255, 255, 255, .5);
    font-size: 0.78rem;
}


/* ------------------------------------------------------
   CONTACTO
------------------------------------------------------ */
.contacto-section {
    padding: 6rem 0;
    background: var(--bg-warm);
}

.contacto-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.contacto-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.contacto-header h2 {
    margin-bottom: 1rem;
}

.contacto-header p {
    max-width: 560px;
    margin: 0 auto;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: start;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contacto-icon {
    width: 40px;
    height: 40px;
    background: var(--orange-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-item strong {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.contacto-item a,
.contacto-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contacto-item a:hover {
    color: var(--orange-500);
}

.contacto-callout {
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contacto-callout strong {
    color: var(--orange-600);
}

/* Contact Form */
.contacto-form {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-warm);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    transition: all var(--transition-fast);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--orange-500);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .12);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, .1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    background: #ecfdf5;
    border: 2px solid #10b981;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    font-weight: 600;
    color: #065f46;
    font-size: 0.95rem;
}


/* ------------------------------------------------------
   FOOTER
------------------------------------------------------ */
.footer {
    background: var(--bg-dark);
    padding: 4rem 0 2rem;
    border-top: 3px solid var(--orange-500);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, .55);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-top: 1rem;
}

.footer-tagline {
    font-style: italic;
    color: var(--orange-400) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    margin-top: 0.5rem !important;
}

.footer-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .6);
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.social-link:hover {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: #fff;
    transform: translateY(-2px);
}

.footer-links h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.87rem;
    color: rgba(255, 255, 255, .5);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--orange-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, .35);
}




/* ------------------------------------------------------
   RESPONSIVE BREAKPOINTS
------------------------------------------------------ */

/* Tablet - = 1024px */


/* Phablet - = 768px */


/* Mobile - = 480px */
@media (max-width: 480px) {
    /* removed old proceso-steps mobile layout */

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn-primary,
    .hero-ctas .btn-secondary,
    .hero-ctas .btn-outline-white,
    .btn-lg {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .stat {
        max-width: 100%;
    }

    .stat-divider {
        display: none;
    }

    .service-card-flip {
        height: 300px;
    }

    .services-grid {
        gap: 1rem;
    }

    .porque-grid {
        grid-template-columns: 1fr;
    }

    .contacto-form {
        padding: 1.5rem;
    }

    .nosotros-badges {
        gap: 0.5rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }
}

/* Indicador tï¿½ctil para flip cards en mï¿½vil/tablet */
@media (hover: none) {
    .service-card-front::after {
        content: 'Toca para ver mï¿½s';
        position: absolute;
        bottom: 12px;
        right: 12px;
        background: rgba(249, 115, 22, 0.92);
        color: #fff;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 0.72rem;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 20px;
        letter-spacing: 0.02em;
        pointer-events: none;
    }

    .btn-primary,
    .btn-secondary {
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu-btn {
        -webkit-tap-highlight-color: transparent;
    }
}


/* ------------------------------------------------------
   Pï¿½GINA: GALERï¿½A FOTOGRï¿½FICA Y SUBPAGINAS
------------------------------------------------------ */

/* Header de Pï¿½gina Interna */
.page-header {
    margin-top: var(--navbar-h);
    padding: 6rem 0 5rem;
    background: var(--bg-dark);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Un ligero patrï¿½n si se desea, similar a Ubel */
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
}

.page-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    width: 100%;
}

.page-header-content .section-label,
.page-header-content .breadcrumbs {
    width: 100%;
    justify-content: center;
    margin: 0 auto;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    word-spacing: 0.05em;
    text-align: center;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
}

.breadcrumb-link {
    color: var(--orange-400);
    transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
    color: var(--orange-500);
    text-decoration: underline;
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.7);
}

/* Secciones de Galerï¿½a */
.galeria-page-section { padding: 5rem 0; background: var(--bg-white); min-height: 100vh; }

.pb-8 {
    padding-bottom: 8rem;
}

.galeria-page-section .section-header {
    text-align: left;
    margin: 0 auto 3rem 0;
    max-width: 100%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

/* Masonry Grid (CSS CSS Columns) */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}



@media (max-width: 640px) {
    .masonry-grid {
        column-count: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.masonry-item:hover img {
    transform: scale(1.03);
}

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(249, 115, 22, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.masonry-item:hover .masonry-overlay {
    background: rgba(249, 115, 22, 0.4);
    opacity: 1;
}

.zoom-icon {
    font-size: 2rem;
    color: #fff;
    transform: scale(0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.masonry-item:hover .zoom-icon {
    transform: scale(1);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--orange-500);
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    height: 80vh;
}

/* ------------------------------------------------------
   SERVICIOS DETAIL PAGE
------------------------------------------------------ */
.servicio-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.servicio-detail-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.servicio-detail-text h2 {
    margin-bottom: 1.5rem;
}

.servicio-detail-text p {
    margin-bottom: 1.25rem;
}

.servicio-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.servicio-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.servicio-detail-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    width: 100%;
    padding-top: 66.666%; /* Proporción 3:2 perfecta, a prueba de errores móviles */
}

.servicio-detail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .servicio-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .servicio-detail-grid.grid-reverse .servicio-detail-text {
        order: 2;
    }

    .servicio-detail-grid.grid-reverse .servicio-detail-img-wrap {
        order: 1;
    }
}

.lightbox-content img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 2%;
}

.lightbox-next {
    right: 2%;
}

.lightbox-caption {
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.02em;
}



/* ------------------------------------------------------
   SUBPAGE HERO HEADERS
------------------------------------------------------ */
.page-header {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.page-header-content {
    padding: calc(var(--navbar-h) + 5rem) 1.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.65);
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #F97316;
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1rem;
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}



/* ------------------------------------------------------
   FAQ PAGE ACCORDIONS
------------------------------------------------------ */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--orange-border);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    user-select: none;
    outline: none;
}

.faq-question::-webkit-details-marker {
    display: none;
    /* Hide default triangle in WebKit */
}

/* Custom indicator +/- */
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-family: monospace;
    color: var(--orange-500);
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

details[open] .faq-question::after {
    content: '-';
    /* Using a minus sign that aligns well */
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* ------------------------------------------------------
   NAVBAR DROPDOWNS
------------------------------------------------------ */
.nav-item-dropdown {
    position: relative;
}

.nav-link.has-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

@media (hover: hover) {
    .nav-item-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--bg-warm);
    color: var(--orange-500);
}

/* Old mobile dropdown removed — handled by layered menu system */


/* ------------------------------------------------------
   ARTï¿½CULOS BLOG PAGE
------------------------------------------------------ */
.articulos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

.articulo-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

@media (max-width: 768px) {
    .articulo-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .articulo-content {
        padding: 1.5rem !important;
    }
    .articulo-img-wrap {
        min-height: 240px;
    }
}

.articulo-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--orange-border);
}

/* ------------------------------------------------------
   Vï¿½ASE TAMBIï¿½N ï¿½ INDEX
------------------------------------------------------ */
.vease-section {
    padding: 7rem 0;
    background: var(--bg-warm);
    position: relative;
    overflow: hidden;
}

.vease-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-500), var(--orange-400), var(--orange-500));
}

.vease-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

@media (max-width: 900px) {
    .vease-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

.vease-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
    cursor: pointer;
}

.vease-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--orange-border);
}

.vease-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.vease-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.vease-card:hover .vease-card-img img {
    transform: scale(1.07);
}

.vease-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
    transition: opacity 0.3s ease;
}

.vease-card:hover .vease-card-img-overlay {
    opacity: 0.85;
}

.vease-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--orange-500);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
}

.vease-card-body {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.vease-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    transition: color 0.2s ease;
}

.vease-card:hover .vease-card-body h3 {
    color: var(--orange-600);
}

.vease-card-body p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

.vease-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--orange-500);
    margin-top: 0.5rem;
    border-bottom: 2px solid var(--orange-border);
    padding-bottom: 2px;
    width: fit-content;
    transition: border-color 0.2s ease, gap 0.2s ease;
}

.vease-card:hover .vease-card-cta {
    border-color: var(--orange-500);
    gap: 10px;
}

.articulo-img-wrap {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.articulo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.articulo-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--orange-500);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 20px;
}

.articulo-content {
    padding: 2.5rem 2.5rem 2.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.articulo-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 0.875rem;
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

/* --- POR QUï¿½ ELEGIRNOS - CIERRE --- */
.porque-cierre {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 48px;
    margin: 3rem auto 0;
    max-width: 760px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.porque-cierre .btn-primary {
    margin-top: 18px;
}

.porque-cierre-dark {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

.porque-quote {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 500;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 0px;
    max-width: 650px;
}

.articulo-date,
.articulo-read {
    display: flex;
    align-items: center;
    gap: 4px;
}

.articulo-title {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.articulo-excerpt {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.5rem;
}



/* ------------------------------------------------------
   NUESTRA GARANTï¿½A
------------------------------------------------------ */
.garantia-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.garantia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .garantia-grid {
        grid-template-columns: 1fr;
    }
}

.garantia-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 3.5rem 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    text-align: center;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.garantia-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange-border);
}

.garantia-icon {
    width: 72px;
    height: 72px;
    background: var(--orange-light);
    color: var(--orange-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.garantia-icon svg {
    width: 36px;
    height: 36px;
}

.garantia-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.garantia-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
/* -- WhatsApp flotante -- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    background-color: #25D366;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}

.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: #fff;
    color: #111;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}



/* -- Form success message -- */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    color: #166534;
    min-height: 220px;
}

/* --------------------------------------
   CALCULADORA PERSONALIZADA
-------------------------------------- */

.calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.calc-panel-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.calc-value-badge {
    background: var(--bg-warm, #f4f4f4);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 70px;
    text-align: center;
}

/* Radio buttons */
.calc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.calc-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
    position: relative;
}

.calc-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.calc-radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border, #ccc);
    display: inline-block;
    flex-shrink: 0;
    transition: border-color 0.2s;
    position: relative;
}

.calc-radio-option input[type="radio"]:checked + .calc-radio-custom {
    border-color: var(--orange-500, #F97316);
    background: var(--orange-500, #F97316);
    box-shadow: inset 0 0 0 3px white;
}

/* Slider */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    outline: none;
    margin: 0.4rem 0;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--orange-500, #F97316);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.calc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--orange-500, #F97316);
    cursor: pointer;
    border: 2px solid white;
}

.calc-slider-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: -0.2rem;
}

/* Editable input junto a la etiqueta del slider */
.calc-input-editable-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-warm, #f4f4f4);
    min-width: 72px;
}

.calc-input-editable {
    border: none;
    outline: none;
    background: transparent;
    padding: 4px 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    width: 56px;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.calc-input-editable::-webkit-inner-spin-button,
.calc-input-editable::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input-editable-unit {
    padding: 4px 8px 4px 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Input UF */
.calc-input-uf-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.calc-input-uf {
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 0.95rem;
    width: 100%;
    background: transparent;
    color: var(--text-primary);
}

.calc-uf-suffix {
    padding: 10px 14px;
    background: var(--bg-warm, #f4f4f4);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-left: 1px solid var(--border, #e0e0e0);
    white-space: nowrap;
}

/* Panel resultado */
.calc-panel-right {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
}

.calc-result-top {
    padding: 2rem;
}

.calc-result-label {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.3rem;
}

.calc-result-total {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.4rem;
    line-height: 1.1;
}

.calc-result-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 1.5rem;
}

.calc-result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.calc-breakdown-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px;
}

.calc-breakdown-hint {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.calc-breakdown-value {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

/* CTA dentro del panel */
.calc-result-cta {
    background: #222;
    padding: 1.8rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.calc-cta-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.6rem;
}

.calc-cta-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin: 0 0 1.2rem;
    line-height: 1.5;
}

.calc-cta-btn {
    display: block;
    width: 100%;
    background: var(--orange-500, #F97316);
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s;
}

.calc-cta-btn:hover {
    background: #e05e05;
}

.calc-disclaimer {
    padding: 1rem 2rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 860px) {
    .calc-wrapper {
        grid-template-columns: 1fr;
    }
    .calc-panel-right {
        order: -1;
    }
    .calc-result-total {
        font-size: 2rem;
    }
}



/* ++++++++++++++++++++++++++++++++++++++
   PROTECCIï¿½N DE IMï¿½GENES
++++++++++++++++++++++++++++++++++++++ */

img {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
	pointer-events: none;
}

.img-protected {
	position: relative;
	display: inline-block;
	overflow: hidden;
}

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

.img-protected::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	cursor: default;
}

/* -- Disponibilidad limitada -- */
.disponibilidad-badge { margin-bottom: 2rem; }

.disponibilidad-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
}

.disponibilidad-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange-500, #F97316);
    flex-shrink: 0;
    margin-top: 5px;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    animation: pulse-dot 2s ease-in-out infinite;
    will-change: transform;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.4); opacity: 0.7; }
}

.disponibilidad-titulo {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--orange-500, #F97316);
    margin: 0 0 4px;
}

.disponibilidad-detalle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.disponibilidad-detalle strong {
    color: var(--text-primary);
}

/* -- Banner fijo mï¿½vil -- */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 16px;
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s ease;
}

.mobile-cta-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #25D366;
    color: #ffffff;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    flex: 1;
    transition: background 0.2s;
}

.mobile-cta-wa:hover { background: #1ebe5d; }

.mobile-cta-cotizar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-500, #F97316);
    color: #ffffff;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    flex: 2;
    transition: background 0.2s;
}

.mobile-cta-cotizar:hover { background: #e05e05; }



/* ------------------------------------------------------
   TESTIMONIOS (Google Reviews)
------------------------------------------------------ */
.testimonios-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
    color: #fff;
}

.testimonios-section .section-header {
    color: #fff;
    margin-bottom: 4rem;
}

.testimonios-section .section-header h2 {
    color: #fff;
}

.gr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.gr-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.gr-google-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gr-google-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

.gr-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gr-rating-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.gr-stars {
    color: #FBBC05;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.gr-rating-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.gr-btn-leave {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 1);
    color: #1A1208;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all var(--transition-smooth);
}

.gr-btn-leave:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.gr-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 991px) {
    .gr-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .gr-cards-grid {
        grid-template-columns: 1fr;
    }
    .gr-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.gr-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.gr-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.gr-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gr-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.gr-reviewer-info {
    display: flex;
    flex-direction: column;
}

.gr-reviewer-name {
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gr-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.gr-stars-card {
    font-size: 1rem;
    letter-spacing: 1px;
    margin: 0.25rem 0;
}

.gr-review-text {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
}

.gr-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.gr-project-tag {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.gr-cta-bottom {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    padding: 3rem 2rem;
    border-radius: 16px;
}

.gr-cta-bottom p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto;
}

/* ------------------------------------------------------
   CONTACTO
------------------------------------------------------ */
.contacto-section {
    padding: 100px 0;
    background-color: var(--bg-warm);
}

.contacto-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.contacto-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.contacto-header h2 {
    margin-bottom: 1rem;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: transparent;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contacto-icon {
    width: 48px;
    height: 48px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-icon svg {
    color: var(--orange-500);
}

.contacto-item strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.contacto-item a,
.contacto-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.contacto-item a:hover {
    color: var(--orange-500);
}

.contacto-callout {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px dashed var(--orange-border);
    border-radius: 12px;
}

.contacto-callout p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.disponibilidad-badge {
    background: rgba(249, 115, 22, 0.08); /* Fondo sutil naranja */
    border: 1px solid var(--orange-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.disponibilidad-dot {
    width: 12px;
    height: 12px;
    background: #22C55E;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
    animation: pulse-green 2s infinite cubic-bezier(0.66, 0, 0, 1);
    will-change: transform, opacity;
}

@keyframes pulse-green {
    0%   { transform: scale(0.95); opacity: 1; }
    70%  { transform: scale(1.5);  opacity: 0.3; }
    100% { transform: scale(0.95); opacity: 1; }
}

.disponibilidad-titulo {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.disponibilidad-detalle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.contacto-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    background: #FAFAFA;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--orange-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.contacto-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    grid-area: form;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    color: #15803D;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------
   Pï¿½GINA DE SOCIOS
-------------------------------------- */
.socios-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1.5rem; margin-bottom:1rem; }
.socio-card { background:var(--bg-secondary,#f9f9f9); border:1px solid var(--border-color,#e5e5e5); border-radius:14px; padding:1.8rem; display:flex; flex-direction:column; gap:0.8rem; transition:border-color 0.2s,transform 0.2s; }
.socio-card:hover { border-color:var(--orange-500,#F97316); transform:translateY(-2px); }
.socio-icon { width:52px; height:52px; background:rgba(249,115,22,0.08); border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.socio-card h3 { font-size:1rem; font-weight:700; color:var(--text-primary); margin:0; }
.socio-card p { font-size:0.88rem; color:var(--text-secondary); margin:0; line-height:1.6; }
.socios-pasos { display:flex; flex-direction:column; gap:1.2rem; }
.socio-paso { display:flex; align-items:flex-start; gap:1.2rem; }
.paso-numero { font-size:2rem; font-weight:800; color:var(--orange-500,#F97316); opacity:0.25; line-height:1; flex-shrink:0; width:48px; }
.paso-body h3 { font-size:1rem; font-weight:700; color:var(--text-primary); margin:0 0 4px; }
.paso-body p { font-size:0.88rem; color:var(--text-secondary); margin:0; line-height:1.6; }
.socios-contacto-grid { display:grid; grid-template-columns:1fr 340px; gap:2rem; align-items:start; }
.socios-form { display:flex; flex-direction:column; gap:1.2rem; }
.socios-wa-box { position:sticky; top:100px; }
.socios-wa-inner { background:var(--bg-secondary,#f9f9f9); border:1px solid var(--border-color,#e5e5e5); border-radius:14px; padding:2rem; text-align:center; display:flex; flex-direction:column; align-items:center; gap:0.8rem; }
.socios-wa-inner h3 { font-size:1rem; font-weight:700; color:var(--text-primary); margin:0; }
.socios-wa-inner p { font-size:0.88rem; color:var(--text-secondary); margin:0; line-height:1.6; }

@media (max-width:860px) {
    .socios-grid { grid-template-columns:1fr; }
    .socios-contacto-grid { grid-template-columns:1fr; }
    .socios-wa-box { position:static; }
}

/* ------------------------------------------------------
   MODAL DE ï¿½XITO
------------------------------------------------------ */
.success-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal-overlay.is-open .success-modal {
    transform: translateY(0) scale(1);
}

.success-modal-icon {
    width: 72px;
    height: 72px;
    background: #ecfdf5;
    border: 3px solid #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.success-modal h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.success-modal p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-modal-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange-500);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 8px;
    border: 2px solid var(--orange-500);
    cursor: pointer;
    transition: all 0.2s ease;
}

.success-modal-close:hover {
    background: var(--orange-600);
    border-color: var(--orange-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange);
}

.success-modal-accent {
    width: 40px;
    height: 3px;
    background: var(--orange-500);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}

/* ========================================================================== */
/* RESPONSIVE DESIGN (NUEVO) */
/* ========================================================================== */

@media (max-width: 1024px) {
    /* Tablet Adjustments */
    .container {
        padding: 0 1.5rem;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .garantia-grid, 
    .services-grid-static, 
    .porque-grid, 
    .galeria-preview-grid,
    .proceso-steps,
    .contacto-grid, 
    .socios-grid, 
    .socios-contacto-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Adjustments */
    
    /* Typography for Mobile */
    html {
        font-size: 15px;
    }
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .section-label {
        font-size: 0.85rem;
    }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }

    /* Natural Column Flow for Flex and Grid */
    .garantia-grid, 
    .services-grid-static, 
    .porque-grid, 
    .galeria-preview-grid,
    .proceso-row,
    .contacto-grid, 
    .socios-grid, 
    .socios-contacto-grid,
    .nosotros-grid,
    .calc-wrapper,
    .servicio-detail-grid,
    .articulos-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

        .nosotros-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
    }
    .nosotros-grid > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .nosotros-img {
        height: 280px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .nosotros-visual {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        margin-top: 0 !important;
    }
    .nosotros-visual::before,
    .nosotros-visual::after {
        display: none !important;
    }
    .nosotros-quote-box {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        max-width: 100% !important;
        border-radius: 8px !important;
        margin-top: 0.75rem !important;
        font-size: 0.82rem !important;
        padding: 0.875rem 1rem !important;
    }
    .nosotros-section {
        overflow: hidden !important;
        padding: 3rem 0 !important;
    }

    .article-content, 
    .blog-post-content, 
    article {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* (hamburger + menu overlay defined at @media max-width:1024px above) */

    /* ── Close (X) button inside overlay ─────────────── */
    .mob-close-btn {
        position: absolute;
        top: 1.2rem;
        right: 1.2rem;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 10;
        opacity: 0.7;
        transition: opacity 0.2s;
    }
    .mob-close-btn:hover { opacity: 1; }

    /* ── Layers (main + submenus) ─────────────────────── */
    .mob-layer {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 5rem 2rem 3rem;
        transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    }
    /* Default states: main visible, sublayers off-screen right */
    #layerMain           { transform: translateX(0); }
    #layerMain.slide-out { transform: translateX(-100%); }
    .mob-sublayer        { transform: translateX(100%); }
    .mob-sublayer.active { transform: translateX(0); }

    /* ── Nav list items ───────────────────────────────── */
    .mob-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
        text-align: center;
    }
    .mob-nav-list li {
        margin-bottom: 0.2rem;
    }
    .mob-nav-list a,
    .mob-submenu-trigger {
        display: block;
        width: 100%;
        padding: 0.9rem 1rem;
        color: #fff;
        text-decoration: none;
        font-size: 1.7rem;
        font-weight: 500;
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        letter-spacing: -0.01em;
        background: none;
        border: none;
        cursor: pointer;
        text-align: center;
        transition: color 0.2s;
    }
    .mob-nav-list a:hover,
    .mob-submenu-trigger:hover { color: var(--primary, #f97316); }

    .mob-sub-list a {
        font-size: 1.35rem;
        font-weight: 400;
        color: rgba(255,255,255,0.85);
    }
    .mob-sub-list a:hover { color: #fff; }

    /* Orange arrow on submenu triggers */
    .mob-arrow {
        color: var(--primary, #f97316);
        font-size: 1.6rem;
        font-weight: 700;
        margin-left: 0.4rem;
        vertical-align: middle;
    }

    /* ── Back button ──────────────────────────────────── */
    .mob-back-btn {
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        background: none;
        border: none;
        color: rgba(255,255,255,0.7);
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        cursor: pointer;
        padding: 0.5rem 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        transition: color 0.2s;
    }
    .mob-back-btn:hover { color: #fff; }

    /* Layout fixes for mobile sections */
    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    .hero-ctas a,
    .hero-ctas .btn-outline-white {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .proceso-step {
        margin-bottom: 2rem;
    }
    .step-h-connector {
        display: none;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    .cta-float {
        bottom: 80px;
        right: 20px;
    }
    /* Contacto fixes */
    .contacto-info {
        margin-bottom: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
/* ========================================================= */
/* FIXES PROBLEMA 4 y 5: TITULARES Y HERO-CTAS EN MOVIL */
/* ========================================================= */
@media (max-width: 1024px) {
    .page-header h1 {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem) !important;
        padding: 0 1.25rem !important;
        word-break: break-word !important;
        hyphens: auto !important;
    }
    .page-header p {
        padding: 0 1.25rem !important;
        font-size: 1rem !important;
    }
    .page-header-content {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    .article-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-ctas {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        align-items: center !important;
    }
    .hero-ctas a,
    .hero-ctas .btn-outline-white,
    .hero-ctas .btn-primary {
        width: 100% !important;
        max-width: 360px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

/* FIX CLS - Solo para móviles y tablets */
@media (max-width: 1024px) {
    .servicio-detail-img-wrap,
    .service-img-wrapper {
        min-height: 420px;
        background: #f8f5f0;
    }

    .galeria-preview-card img,
    .articulo-img-wrap img {
        min-height: 280px;
        background: #f8f5f0;
    }
}

/* FIX CLS: reservar espacio para tercera tarjeta de galería (restauracion3.webp)
   sin usar width/height HTML para no distorsionar el aspect ratio visual */
.galeria-preview-card:not(:has(.galeria-preview-img)) img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    display: block;
}