:root {
    --primary: #FEEC28;
    /* Amarillo Catriel */
    --secondary: #111111;
    /* Negro profundo */
    --accent: #FEEC28;
    --mustard: #FEEC28;
    --gray: #f4f4f4;
    --dark-bg: #111111;
    --dark-section: #1a1a1a;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --text-dark: #111111;
    --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* --- Components --- */

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 2px solid var(--white);
    transition: var(--transition-fast);
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--secondary);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.btn-outline-white {
    border: 1px solid var(--white);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.btn-outline:hover,
.btn-outline-white:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
}

.section-tag {
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
}

.yellow-tag {
    color: var(--primary) !important;
}

.display-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

/* --- Background Utilities --- */
.bg-white {
    background-color: var(--white) !important;
    color: var(--text-dark) !important;
}

.bg-white .display-title,
.bg-white h3,
.bg-white .valor-card h3 {
    color: var(--text-dark) !important;
}

.bg-white .text-muted,
.bg-white p {
    color: #444 !important;
}

.bg-mustard {
    background-color: var(--mustard) !important;
    color: var(--text-dark) !important;
}

.bg-mustard .display-title,
.bg-mustard h3 {
    color: var(--text-dark) !important;
}

.bg-mustard .section-tag {
    color: var(--primary) !important;
}

.bg-mustard .display-title,
.bg-mustard h3,
.bg-mustard .check-list li {
    color: var(--white) !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bg-gray {
    background-color: var(--gray) !important;
    color: var(--text-dark) !important;
}

.bg-gray .display-title,
.bg-gray h3 {
    color: var(--text-dark) !important;
}

/* --- Navigation --- */

.nav-bar {
    position: fixed;
    top: 20px;
    left: 40px;
    right: 40px;
    margin: 0 auto;
    width: auto;
    max-width: 1200px;
    z-index: 1000;
    padding: 0.8rem 0;
    border-radius: 16px;
    transition: var(--transition-fast);
}

.nav-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    transition: var(--transition-fast);
}

.nav-bar.nav-scrolled::before {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

    .close-menu {
        display: none;
    }

    .menu-toggle {
        display: none;
        background: transparent;
        border: none;
        color: var(--white);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }

.nav-bar.nav-dark .menu-toggle {
    color: var(--secondary);
}


.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    height: 60px;
    overflow: hidden;
    text-decoration: none;
}

.logo-img-icon {
    height: 60px;
    width: 60px;
    object-fit: cover;
    object-position: left;
    margin-right: -5px;
    /* Adjust spacing between icon and text */
}

.logo-img-text {
    height: 60px;
    width: 280px;
    /* Mas ancho para que entre "CATRIEL" completo */
    object-fit: cover;
    object-position: -62px 0;
    /* Ajuste para que no se corte y se vea el slogan */
    transition: filter 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.sidebar-socials {
    display: none;
}

/* Dynamic Navbar State */
.nav-bar.nav-dark.nav-scrolled::before {
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-bar.nav-dark .nav-links a {
    color: #000000 !important;
}

.nav-bar.nav-dark .logo-img-text {
    filter: invert(1) brightness(0);
}

/* Sidebar: always white regardless of nav-dark */
.nav-bar.nav-active .nav-links a,
.nav-bar.nav-active .nav-links a:visited {
    color: var(--white) !important;
}

.nav-bar.nav-active .close-menu {
    color: var(--white) !important;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Scrolled logic removed per user request */

/* --- Hero --- */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero_wood_wide.png') center center / cover no-repeat;
    z-index: 0;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    height: 100%;
    pointer-events: none;
}

.hero-grid-overlay .grid-col {
    height: 100vh;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-grid-overlay .grid-col:first-child {
    border-left: none;
}

.hero-grid-overlay .col-1 { grid-column: span 1 / span 1; }
.hero-grid-overlay .col-3 { grid-column: span 3 / span 3; }
.hero-grid-overlay .col-4 { grid-column: span 4 / span 4; }

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    padding-top: 5rem;
}

.hero-text {
    text-align: left;
}

.hero-form-wrapper {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-form-wrapper h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.hero-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.hero-form input,
.hero-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid transparent;
    padding: 1.1rem 1.2rem;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border-radius: 8px;
    outline: none;
    transition: var(--transition-fast);
}

.hero-form input::placeholder,
.hero-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-form input:focus,
.hero-form textarea:focus {
    border-color: rgba(254, 236, 40, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(254, 236, 40, 0.1);
}

.hero-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    border-radius: 8px;
    margin-top: 0.5rem;
    padding: 1.1rem 2.5rem;
}

.hero-title {
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
    text-shadow: none;
}

@media (min-width: 768px) { .hero-title { font-size: 4rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 5rem; } }

.hero-subtitle {
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 90%;
}

@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }

@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 5rem;
    }
    .hero-text {
        text-align: center;
    }
    .hero-title, .hero-subtitle {
        text-align: center;
        max-width: 100%;
    }
}
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 1.25rem 0;
    text-decoration: none;
}

.hero-btn .btn-text {
    border-radius: 9999px;
    background-color: #e1fcad;
    padding: 0.75rem 1.5rem;
    color: black;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

.hero-btn .btn-icon-wrapper {
    position: relative;
    display: flex;
    height: max-content;
    align-items: center;
    overflow: hidden;
    border-radius: 9999px;
    background-color: #e1fcad;
    padding: 1.15rem;
    color: black;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

.hero-btn:hover .btn-text,
.hero-btn:hover .btn-icon-wrapper {
    background-color: #122023;
    color: #e1fcad;
}

.btn-icon-wrapper svg {
    position: absolute;
    height: 1.25rem;
    width: 1.25rem;
    transition: all 0.5s ease-in-out;
    top: 50%;
    margin-top: -0.625rem;
}

.btn-icon-wrapper .icon-1 {
    left: 50%;
    transform: translateX(-50%);
}

.btn-icon-wrapper .icon-2 {
    left: 50%;
    transform: translateX(-40px);
}

.hero-btn:hover .icon-1 {
    transform: translateX(40px);
}

.hero-btn:hover .icon-2 {
    transform: translateX(-50%);
}

.hero-socials {
    position: fixed;
    top: 75%;
    /* Movido más abajo */
    left: 2rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
    align-items: center;
    /* Centrados entre sí */
}

.hero-socials a {
    text-decoration: none;
    transition: var(--transition-fast);
}

.hero-socials .whatsapp-btn {
    background-color: #25d366;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.hero-socials .whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.social-btn {
    color: #cc9900;
    font-size: 1.6rem;
    margin-left: 0;
    /* Centrados ahora */
}

.social-btn:hover {
    color: var(--primary);
}

/* --- Valores --- */

.valores-section {
    padding: 120px 0;
    background: var(--dark-bg);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
}

.valor-card {
    border-top: 2px solid var(--primary);
    /* Línea amarilla arriba */
    padding-top: 2.5rem;
}

.valor-icon {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.valor-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

.valor-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* --- Split Section --- */

.split-section {
    display: flex;
    height: 85vh;
}

.split-img {
    flex: 1.2;
    background-size: cover;
    background-position: center;
}

.split-content {
    flex: 1;
    background: var(--dark-section);
    display: flex;
    align-items: center;
    padding: 0 6rem;
    position: relative;
    /* border-left removed */
}

.check-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.check-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.check-list li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* --- Gallery --- */
.gallery-section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: left;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.service-item {
    position: relative;
    overflow: hidden;
    flex: 0 0 calc(33.333% - 1rem);
    height: 350px;
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-item:hover img {
    transform: scale(1.05);
}

.service-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
}

.service-info h4 {
    font-size: 1.8rem;
    margin: 0;
}

.project-info h4 {
    font-size: 1.5rem;
}

/* --- Empresa Dark --- */

.empresa-dark-section {
    padding: 140px 0;
    background: var(--dark-bg);
    /* Fondo oscuro igual a Soluciones/Valores */
}

.empresa-dark-section .section-tag {
    color: var(--primary);
}

.empresa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.empresa-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.empresa-img img {
    width: 100%;
    border-radius: 4px;
}

/* --- Presupuesto --- */

.presupuesto-section {
    padding: 140px 0;
    background: var(--dark-bg);
}

.presupuesto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.minimal-form input,
.minimal-form select,
.minimal-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.minimal-form option {
    color: var(--text-dark);
    background: var(--white);
}

.minimal-form input::placeholder,
.minimal-form textarea::placeholder {
    color: #888;
}

.minimal-form input:focus,
.minimal-form textarea:focus {
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width {
    width: 100%;
}

/* --- Footer --- */

.main-footer {
    padding: 100px 0 60px;
    background: var(--secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
}

.copyright {
    font-size: 0.75rem !important;
}

/* --- Animations --- */

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: var(--transition-slow);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: var(--transition-slow);
}

.reveal-active {
    opacity: 1 !important;
    transform: translate(0) !important;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

@keyframes panBackground {
    0% {
        transform: translateX(-4%);
    }

    100% {
        transform: translateX(4%);
    }
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .display-title {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 5rem;
    }

    .container {
        padding: 0 2rem;
    }

    .split-section {
        flex-direction: column;
        height: auto;
    }

    .split-content {
        padding: 4rem 2rem;
    }

    .split-img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-bar {
        left: 20px;
        right: 20px;
        margin: 0 auto;
        transform: none;
        width: auto;
        padding: 0.5rem 0;
    }

    .nav-wrapper {
        padding: 0 1.5rem;
        position: relative;
        justify-content: flex-start;
        min-height: 50px;
    }

    .logo-wrapper {
        transform: scale(0.75);
        transform-origin: left center;
        margin: 0;
        width: 250px;
        overflow: visible;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        transition: opacity 0.3s;
    }

    .nav-bar.nav-active .menu-toggle {
        opacity: 0;
        pointer-events: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 25px;
        background: transparent;
        border: none;
        color: var(--white);
        font-size: 2.5rem;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .close-menu:hover {
        transform: scale(1.1);
        color: var(--primary);
    }

    .nav-bar.nav-active .nav-links {
        right: 0;
    }

    .nav-links a {
        color: var(--white) !important;
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .sidebar-socials {
        display: flex;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .sidebar-socials a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border: 2px solid var(--white);
        border-radius: 50%;
        color: var(--white) !important;
        font-size: 1.3rem;
        transition: 0.3s ease;
        letter-spacing: 0;
    }

    .sidebar-socials a:hover {
        background: var(--white);
        color: var(--secondary) !important;
        transform: scale(1.1);
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.4rem;
    }

    .valores-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        flex: 0 0 100%;
    }

    .empresa-grid,
    .sucursales-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-socials {
        display: none;
    }

    .display-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 450px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .display-title {
        font-size: 2.2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* Sucursales Section */
.sucursales-section {
    padding: 120px 0;
    background: #f4f4f4;
    /* Gris que se diferencia del blanco y negro */
}

.sucursales-section .section-title {
    color: #cc9900;
    /* Amarillo solicitado */
    font-size: 3rem;
    /* Igual a las demás frases principales (.display-title) */
    margin-bottom: 4rem;
    text-align: left;
    /* Alineación izquierda solicitada */
}

.sucursales-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.sucursal-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-medium);
    text-align: left;
}

.sucursal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.sucursal-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    /* Volver a color oscuro */
    position: relative;
    padding-bottom: 0.8rem;
}

.sucursal-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.sucursal-card p {
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
}

@media (max-width: 992px) {
    .sucursales-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Chatbot Assistant --- */

#chatbot-container {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

#chat-button {
    background: var(--primary);
    color: var(--secondary);
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(204, 153, 0, 0.4);
    transition: var(--transition-fast);
    font-weight: 700;
}

#chat-button:hover {
    transform: scale(1.05);
    background: #e6b000;
}

#chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chat-window.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header, #chat-header {
    background: var(--primary);
    color: var(--secondary);
    padding: 12px 18px 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-mini-logo {
    width: 35px;
    height: 35px;
    border-radius: 20%;
    background: white;
    padding: 4px;
}

.header-info h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Inter', sans-serif;
}

#close-chat {
    background: transparent;
    border: none;
    color: var(--secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    opacity: 0.75;
    align-self: flex-start;
}

#close-chat:hover {
    transform: rotate(90deg);
    opacity: 1;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.bot-message {
    align-self: flex-start;
    background: #f0f0f0;
    color: #333;
    border-bottom-left-radius: 5px;
}

.user-message {
    align-self: flex-end;
    background: var(--primary);
    color: var(--secondary);
    border-bottom-right-radius: 5px;
    font-weight: 500;
}

#chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

#user-input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 12px 15px;
    border-radius: 30px;
    outline: none;
    font-size: 0.9rem;
}

#send-btn {
    background: var(--secondary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

#send-btn:hover {
    background: var(--primary);
    color: var(--secondary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 18px;
    background: #f0f0f0;
    border-radius: 15px;
    border-bottom-left-radius: 5px;
    width: fit-content;
    align-self: flex-start;
    margin-bottom: 15px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px);
    }
}


@keyframes highlight-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(254, 236, 40, 0.7);
    }

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 20px rgba(254, 236, 40, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(254, 236, 40, 0);
    }
}

.pulse-highlight {
    animation: highlight-pulse 0.8s infinite ease-in-out;
    background: #ffffff !important;
    /* Brilla en blanco para resaltar */
    color: var(--secondary) !important;
}

@media (max-width: 480px) {
    #chat-window {
        width: calc(100vw - 40px);
        height: 480px;
        bottom: 90px;
        right: 20px;
        border-radius: 20px;
        transform-origin: bottom right;
    }
}

/* --- Banner Promocional --- */
.banner-section {
    width: 100%;
    padding: 0 0 6rem 0; /* Espacio por debajo para que no pegue con los servicios. Valores ya tiene padding abajo. */
}

.full-width-banner {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); /* Sombra elegante */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.full-width-banner:hover {
    transform: translateY(-5px); /* Efecto hover sutil */
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .hero {
        height: auto !important;
        min-height: 100vh !important;
        padding-top: 120px !important;
        padding-bottom: 60px !important;
    }
    
    .hero-container {
        padding-top: 2rem !important;
    }
}