/* ==========================================================================
   DR. CASILLERO - DESIGN SYSTEM & STYLES (2026 REBOOT)
   ========================================================================== */

:root {
    /* Color Palette - Medical/Sleek Dr. Theme */
    --accent: #FF9900;
    /* Warning/Action Orange */
    --accent-hover: #e68a00;
    --accent-glow: rgba(255, 153, 0, 0.15);
    --bg-dark: #121212;
    /* Deep Workspace */
    --bg-deep: #0a0a0a;
    /* Pitch Black */
    --bg-card: #1e1e1e;
    /* Elevated Surface */
    --text-main: #f5f5f7;
    /* Off-White High Contrast */
    --text-muted: #a1a1a6;
    /* Silver Muted Text */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(255, 153, 0, 0.3);

    /* Layout & Spaces */
    --container-max: 1280px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-accent: 0 10px 30px -10px rgba(255, 153, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.bebas {
    font-family: 'Bebas Neue', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent);
}

.hidden {
    display: none !important;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== UTILITIES ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-deep);
}

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

.btn-outline {
    background-color: transparent;
    border-color: var(--border-subtle);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-dark {
    background: #000;
    color: #fff;
}

.btn-dark:hover {
    background: #111;
}

.btn-dark-outline {
    border: 2px solid #000;
    color: #000;
}

.btn-dark-outline:hover {
    background: #000;
    color: #fff;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-item {
    margin-right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-bar-item i {
    color: var(--accent);
}

.top-bar-social {
    display: flex;
    gap: 16px;
}

.top-bar-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 200, 50, 0.06);
    border: 1px solid rgba(255, 200, 50, 0.15);
    border-radius: 8px;
    color: rgba(255, 200, 50, 0.75);
    font-size: 0.85rem;
    transition: var(--transition);
}

.top-bar-social a:hover {
    color: var(--accent);
    background: var(--accent-glow);
    border-color: var(--border-accent);
}

/* ========== HEADER ========== */
.header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: flex;
    align-items: center;
    height: 72px;
}

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

.logo-img {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-6px) rotate(-3deg);
    }
}

.logo-float {
    animation: logoFloat 4s ease-in-out infinite;
}

.header.scrolled .logo-img {
    height: 40px;
}

.nav {
    display: flex;
    gap: 6px;
    margin-left: auto;
    /* Push everything to the right after the logo */
    margin-right: 10px;
    align-items: center;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.2px;
    padding: 6px 10px;
    background: none;
    border: none;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
    background: none;
    border-color: transparent;
}

.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.header-tool-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.header-tool-btn:hover {
    color: var(--accent);
    background: var(--accent-glow);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* ========== MOBILE HEADER TOOLS ========== */
.mobile-tools {
    display: none;
    align-items: center;
    z-index: 1001;
}

.mobile-tools--left {
    justify-content: flex-start;
}

.mobile-tools--right {
    justify-content: flex-end;
}

/* GRATIS button (mobile right) */
.mobile-cta-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 14px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--bg-deep);
    font-size: 1.1rem;
    font-weight: 900;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.mobile-cta-btn span {
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
}

.mobile-cta-btn:active {
    transform: scale(0.93);
    background: var(--accent-hover);
}

/* Keep old mobile-tool-btn for any remaining uses */
.mobile-tool-btn {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
}

/* Base state for mobile elements (hidden on desktop) */
.mobile-toggle,
.nav-tools-mobile,
.nav-quick-actions,
.mobile-action-bar {
    display: none !important;
}

/* ========== MOBILE ACTION BAR ========== */
.mobile-action-bar {
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 12px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: sticky;
    top: 70px;
    z-index: 999;
}

.mob-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: var(--transition);
    text-decoration: none;
}

.mob-act-btn--green {
    background: transparent;
    border: 2px solid #1a7a2a;
    color: #3ecf5a;
}

.mob-act-btn--green:hover,
.mob-act-btn--green:active {
    background: rgba(62, 207, 90, 0.12);
}

.mob-act-btn--orange {
    background: var(--accent);
    border: 2px solid var(--accent);
    color: var(--bg-deep);
}

.mob-act-btn--orange:hover,
.mob-act-btn--orange:active {
    background: var(--accent-hover);
}

.mob-act-social {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.mob-act-social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 200, 50, 0.06);
    border: 1px solid rgba(255, 200, 50, 0.2);
    border-radius: 10px;
    color: rgba(255, 200, 50, 0.75);
    font-size: 0.9rem;
    transition: var(--transition);
}

.mob-act-social-icon:hover {
    color: var(--accent);
    background: var(--accent-glow);
    border-color: var(--border-accent);
}

/* Mobile icon button (calculator on right side) */
.mobile-icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 200, 50, 0.75);
    font-size: 1rem;
    transition: var(--transition);
}

.mobile-icon-btn:active {
    transform: scale(0.92);
    background: var(--accent-glow);
    color: var(--accent);
}

.header-tool-btn--chat {
    color: #25D366;
}

.header-tool-btn--chat:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.1);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ========== NAV CLOSE BUTTON (inside slide-out) ========== */
.nav-close {
    display: none;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: var(--text-main);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2100;
}

.nav-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--accent);
}

/* ========== NAV QUICK ACTIONS (inside slide-out) ========== */
.nav-quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
}

.nav-action-btn span {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.nav-action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.nav-action-btn--green {
    color: #25D366;
}

.nav-action-btn--green:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.08);
    color: #25D366;
}

/* ========== HERO SLIDER ========== */
.hero-slider {
    height: 100vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.slides-wrapper {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 6s ease;
}

.slide.active .slide-image img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
    padding: 0 8%;
}

.slide-giant-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    font-family: 'Bebas Neue', cursive;
    font-size: 25vw;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    line-height: 0.8;
}

.slide-inner {
    max-width: 700px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}

.slide.active .slide-inner {
    opacity: 1;
    transform: translateX(0);
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.slide-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 20px;
    color: #fff;
}

.slide-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.slide-buttons {
    display: flex;
    gap: 20px;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 8%;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.slider-progress {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.slider-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
}

.slider-nav-side {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 10;
}

.side-label {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-weight: 800;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.side-label.active {
    color: var(--accent);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    right: 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));
    position: relative;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--accent);
    animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateY(45px);
        opacity: 0;
    }
}

/* Flying anim */
.flying-packages {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.flying-pkg {
    position: absolute;
    opacity: 0.12;
    filter: invert(1);
    animation: flyPackages linear infinite;
}

.pkg-1 {
    width: 40px;
    top: 10%;
    left: 15%;
    animation-duration: 40s;
}

.pkg-2 {
    width: 30px;
    top: 30%;
    left: 80%;
    animation-duration: 35s;
    animation-delay: -5s;
}

.pkg-3 {
    width: 50px;
    top: 70%;
    left: 20%;
    animation-duration: 45s;
    animation-delay: -10s;
}

.pkg-4 {
    width: 25px;
    top: 50%;
    left: 40%;
    animation-duration: 30s;
}

.pkg-5 {
    width: 35px;
    top: 80%;
    left: 70%;
    animation-duration: 50s;
}

.pkg-6 {
    width: 45px;
    top: 20%;
    left: 60%;
    animation-duration: 38s;
}

.pkg-7 {
    width: 30px;
    top: 40%;
    left: 5%;
    animation-duration: 42s;
}

.pkg-8 {
    width: 20px;
    top: 90%;
    left: 30%;
    animation-duration: 32s;
}

@keyframes flyPackages {
    0% {
        transform: translate(0, 0) rotate(0);
    }

    100% {
        transform: translate(100px, -100px) rotate(360deg);
    }
}

/* ========== SECTIONS COMMON ========== */
.process,
.features,
.partners {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-deco {
    position: absolute;
    opacity: 0.03;
    filter: invert(1);
    pointer-events: none;
    z-index: 0;
}

.section-deco--right {
    right: -50px;
    top: 10%;
    width: 400px;
}

.section-deco--left {
    left: -50px;
    bottom: 10%;
    width: 350px;
}

.section-deco--center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    opacity: 0.02;
}

/* ========== PROCESS GRID ========== */
.process-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.process-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.process-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.05);
}

.process-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-dark);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: var(--accent);
    border: 1px solid var(--border-subtle);
}

.process-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.process-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.process-arrow {
    color: var(--border-subtle);
    font-size: 1.5rem;
}

/* ========== FEATURES (Why Us + Quotizer) ========== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.features-list {
    margin-top: 40px;
}

.features-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.features-list li i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 5px;
}

.features-list li h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.features-list li div strong {
    display: block;
    font-size: 1.1rem;
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.features-list li div span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Cotizador Card */
.quote-card {
    background: var(--bg-card);
    border-radius: 30px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.quote-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: rgba(0, 0, 0, 0.2);
}

.quote-tab {
    padding: 20px 10px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-family: 'Bebas Neue', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quote-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(255, 153, 0, 0.05);
}

.quote-tab i {
    font-size: 1.2rem;
}

.quote-tab-content {
    display: none;
    padding: 35px;
}

.quote-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-header {
    margin-bottom: 25px;
}

.quote-header h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.quote-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.trm-bar {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 25px;
}

.quote-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quote-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quote-field label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote-field input,
.quote-field select {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.quote-field input:focus,
.quote-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.quote-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.quote-row.triple {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Dimensions & Unit Toggles */
.dimensions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.unit-toggle {
    display: flex;
    background: var(--bg-dark);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.unit-btn {
    padding: 5px 12px;
    font-size: 0.6rem;
    font-weight: 800;
    border-radius: 5px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.unit-btn.active {
    background: var(--accent);
    color: var(--bg-deep);
}

.unit-toggle-inline {
    display: inline-flex;
    background: var(--bg-dark);
    padding: 2px;
    border-radius: 6px;
    margin-left: 8px;
    border: 1px solid var(--border-subtle);
    vertical-align: middle;
}

/* Quote Result Section */
.quote-result {
    background: var(--accent-glow);
    border-radius: 20px;
    border: 1px solid var(--border-accent);
    padding: 25px;
    text-align: center;
    margin-top: 5px;
}

.quote-result-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.quote-result-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    font-family: 'Bebas Neue', cursive;
    margin-bottom: 15px;
}

.quote-result-time {
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tracking-placeholder {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

.tracking-placeholder i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.2;
}

.mt-12 {
    margin-top: 12px;
}

/* ========== BENEFITS GRID ========== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.benefit-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 25px;
    border: 1px solid var(--border-subtle);
}

.benefit-content h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.benefit-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========== PARTNERS ========== */
.partners {
    background: var(--bg-deep);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.partner-logo {
    height: 120px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: var(--transition);
}

.partner-logo:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.partner-logo i {
    font-size: 2.5rem;
    color: var(--text-muted);
}

.partner-logo span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* ========== STORE FILTERS ========== */
.store-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.store-filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.store-filter-btn:hover,
.store-filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-deep);
    box-shadow: var(--shadow-accent);
}

/* Make partner-logo work as a <a> link */
a.partner-logo {
    cursor: pointer;
    text-decoration: none;
}

a.partner-logo:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

a.partner-logo i,
a.partner-logo span {
    transition: var(--transition);
}

a.partner-logo:hover i {
    color: var(--accent);
}

a.partner-logo:hover span {
    color: var(--text-main);
}

.partner-logo.hidden {
    display: none;
}

.partners-grid {
    grid-template-columns: repeat(5, 1fr);
}

/* ========== QUIÉNES SOMOS ========== */
.quienes-somos {
    padding: 100px 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.quienes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 20px;
}

.quienes-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.quienes-lead {
    font-size: 1.15rem !important;
    color: var(--text-main) !important;
    line-height: 1.6 !important;
    margin-bottom: 20px;
}

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

.quienes-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quienes-services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
}

.quienes-cta-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.quienes-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* AFF World Card */
.quienes-aff-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.aff-logo-area {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 40px 35px 30px;
    text-align: center;
}

.aff-logo-text {
    font-family: 'Bebas Neue', cursive;
    font-size: 4rem;
    color: var(--accent);
    line-height: 1;
    letter-spacing: 4px;
}

.aff-logo-text span {
    display: block;
    font-size: 1.4rem;
    letter-spacing: 14px;
    color: var(--text-muted);
    margin-top: -5px;
}

.aff-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.aff-offices {
    padding: 25px 35px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aff-office {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.aff-office i {
    color: var(--accent);
    width: 16px;
}

.aff-contact-form {
    padding: 30px 35px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.aff-contact-form h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.quote-field textarea {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: var(--transition);
}

.quote-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ========== CTA SECTION (YELLOW) ========== */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-yellow {
    background-color: #FFDE00;
    /* Vibrant Construction Yellow */
}

.cta-yellow .section-title,
.cta-yellow h2 {
    color: #000;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.cta-yellow h2 span {
    background: #000;
    color: #FFDE00;
    padding: 0 10px;
    display: inline-block;
}

.cta-yellow p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 40px;
}

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

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

/* Pattern Backgrounds for CTA */
.cta-pattern {
    position: absolute;
    width: 150px;
    opacity: 0.08;
    pointer-events: none;
}

.cta-pattern img {
    width: 100%;
    height: auto;
}

.cta-pattern--1 {
    top: 10%;
    left: 5%;
    transform: rotate(15deg);
}

.cta-pattern--2 {
    bottom: 10%;
    left: 15%;
    transform: rotate(-10deg);
    width: 120px;
}

.cta-pattern--3 {
    top: 50%;
    right: 10%;
    transform: rotate(20deg);
    width: 180px;
}

.cta-pattern--4 {
    top: 15%;
    right: 30%;
    transform: rotate(-25deg);
    width: 100px;
}

.cta-pattern--5 {
    bottom: 20%;
    right: 5%;
    transform: rotate(5deg);
    width: 140px;
}

.cta-pattern--6 {
    top: -20px;
    left: 40%;
    transform: rotate(45deg);
    width: 160px;
}

/* ========== FOOTER ========== */
.footer {
    background: #000;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 25px;
}

.footer-logo-img {
    height: 55px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
}

.footer-social a:hover {
    color: var(--accent);
    background: var(--accent-glow);
    border-color: var(--border-accent);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-main);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--accent);
    font-size: 1rem;
    width: 20px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========== ANIMATIONS ========== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .features-quote {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Intermediate desktop widths — keep everything on one line */
@media (max-width: 1280px) {
    .nav {
        gap: 2px;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 5px 7px;
    }

    .header-cta {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 0.78rem;
        gap: 6px;
    }
}

@media (max-width: 1024px) {
    .header .container {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0 15px;
        height: 70px;
        width: 100%;
    }

    /* Logo: take up all space but center content — other flex items push it */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
    }

    /* Nav and header-tools removed from flex flow */
    .header-tools {
        display: none !important;
    }

    /* Hamburger: only real flex item, margin-left:auto snaps it to far right */
    .mobile-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        margin-left: auto;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
    }

    .nav {
        display: flex;
        position: fixed;
        top: 0;
        left: -100%;
        right: auto;
        width: 300px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 80px 30px 40px;
        z-index: 2000;
        transition: left 0.4s cubic-bezier(1, 0, 0, 1);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .nav.open {
        left: 0;
    }

    .nav-quick-actions {
        display: flex !important;
    }

    .nav-close {
        display: flex !important;
    }

    .nav-tools-mobile {
        display: block !important;
        margin-top: auto;
        padding-top: 30px;
        border-top: 1px solid var(--border-subtle);
    }

    .nav-tools-label {
        font-size: 0.7rem;
        font-weight: 800;
        color: var(--text-muted);
        text-transform: uppercase;
        display: block;
        margin-bottom: 20px;
    }

    .nav-social-row {
        display: flex;
        gap: 12px;
    }

    .nav-social-icon {
        width: 44px;
        height: 44px;
        background: rgba(255, 200, 50, 0.06);
        border: 1px solid rgba(255, 200, 50, 0.15);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 200, 50, 0.7);
        font-size: 1.2rem;
        transition: var(--transition);
    }

    .nav-social-icon:hover {
        border-color: var(--accent);
        color: var(--accent);
        background: var(--accent-glow);
    }

    .nav-link {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .header-tools {
        display: none;
    }

    /* Show mobile action bar */
    .mobile-action-bar {
        display: flex !important;
    }

    /* Hide top bar social on mobile (action bar replaces it) */
    .top-bar {
        display: none;
    }

    .slides-wrapper {
        height: 100%;
    }

    .slide-giant-text {
        display: none;
    }

    .slide-content {
        padding: 0 40px;
    }

    .slide-btn {
        padding: 15px 30px;
    }

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

    .process-arrow {
        display: none;
    }

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

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

@media (max-width: 768px) {
    .top-bar {
        padding: 7px 0;
    }

    .top-bar-left {
        display: none;
    }

    .top-bar-inner {
        justify-content: center;
    }

    .top-bar-social {
        gap: 10px;
    }

    .top-bar-social a {
        color: rgba(255, 200, 50, 0.75);
        background: rgba(255, 200, 50, 0.06);
        border-color: rgba(255, 200, 50, 0.15);
        width: 34px;
        height: 34px;
    }

    .header {
        height: 70px;
    }

    /* Features grid: single column, no overflow */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-quote,
    .quote-card {
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }

    .quote-tab-content {
        padding: 20px 16px;
    }

    .quote-tab {
        padding: 14px 6px;
        font-size: 0.75rem;
    }

    .logo-img {
        height: 42px;
    }

    .slide-title {
        font-size: 2.8rem;
    }

    .slide-desc {
        font-size: 1rem;
    }

    .slide-buttons {
        flex-direction: column;
    }

    /* Cotizador rows: single column on mobile */
    .quote-row,
    .quote-row.triple {
        grid-template-columns: 1fr;
    }

    .quote-tab-content {
        padding: 20px 14px;
    }

    .quote-tab {
        padding: 14px 4px;
        font-size: 0.7rem;
    }

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

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

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

    .quienes-stats {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

@media (max-width: 400px) {
    .header .container {
        grid-template-columns: 80px 1fr 80px;
    }

    .mobile-tool-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .quote-tab {
        font-size: 0.8rem;
        padding: 15px 5px;
    }

    .quote-tab i {
        font-size: 1rem;
    }

    .quote-tab-content {
        padding: 25px 15px;
    }
}

/* ==========================================================================
   COTIZADOR MULTI-STEP WIDGET
   ========================================================================== */

/* Steps */
.quote-step {
    display: none;
    animation: fadeStepIn 0.4s ease;
}

.quote-step.active-step {
    display: block;
}

@keyframes fadeStepIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Warning box (special shipment) */
.quote-warning-box {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.quote-warning-box h4 {
    color: #ff6b6b;
    margin: 0 0 6px;
    font-size: 0.9rem;
}

.quote-warning-box p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Suggestion box (shipping tip) */
.quote-suggestion-box {
    background: rgba(33, 150, 243, 0.1);
    border: 1px dashed #2196F3;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.quote-suggestion-box p {
    color: #90caf9;
    font-size: 0.88rem;
    margin: 0;
    font-style: italic;
}

/* Result breakdown rows */
.quote-result-breakdown {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
}

.quote-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.quote-result-row:last-child {
    border-bottom: none;
}

.quote-result-row.quote-result-total {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border-accent);
    border-bottom: none;
}

.quote-result-note {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 10px;
    margin-top: -4px;
}

.quote-trm-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
}

/* Result actions */
.quote-result-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-link-subtle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
    padding: 8px;
    transition: color 0.2s;
}

.btn-link-subtle:hover {
    color: var(--accent);
}

/* Confirmation step */
.quote-confirmation {
    text-align: center;
    padding: 10px 0;
}

.quote-confirm-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 12px;
}

.quote-confirmation h3 {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.quote-locker-data {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px;
    text-align: left;
    margin: 16px auto;
    max-width: 400px;
}

.quote-locker-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.85rem;
}

.quote-locker-row:last-child {
    border-bottom: none;
}

.quote-locker-row span {
    color: var(--text-muted);
}

.quote-locker-row strong {
    color: var(--text-main);
    font-family: monospace;
}

.quote-locker-row.highlight strong {
    color: var(--accent);
}

/* Cotizador modals */
.quote-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.quote-modal-box {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 14px;
    padding: 30px 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 153, 0, 0.2);
}

.quote-modal-box h4 {
    color: var(--accent);
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.quote-modal-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ==========================================================================
   PAGE HERO (for inner pages: blog, quienes-somos)
   ========================================================================== */
.page-hero {
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-subtle);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(255, 153, 0, 0.08) 0%, transparent 60%);
}

.page-hero-inner {
    position: relative;
    z-index: 2;
}

.blog-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 12px;
}

/* ==========================================================================
   BLOG GRID & ARTICLE STYLES
   ========================================================================== */

/* Blog listing grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    padding: 60px 0;
}

/* Blog card */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.blog-card-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
}

.blog-card-title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin: 0;
}

.blog-card-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: var(--accent);
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.blog-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-tag {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}

/* Blog article body */
.blog-article {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 0;
}

.blog-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin-bottom: 36px;
}

.blog-article h2 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.blog-article p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.blog-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.blog-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 8px 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.blog-list li i {
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
}

.blog-list-ordered {
    padding-left: 24px;
    margin: 0 0 20px;
}

.blog-list-ordered li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Blog steps */
.blog-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.blog-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 18px;
}

.blog-step-num {
    background: var(--accent);
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blog-step strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}

.blog-step p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

/* Blog highlight boxes */
.blog-highlight-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.blog-highlight-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px;
}

.blog-highlight-item i {
    font-size: 1.4rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.blog-highlight-item strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.blog-highlight-item p {
    color: var(--text-muted);
    font-size: 0.83rem;
    margin: 0;
}

/* Blog table */
.blog-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.blog-table thead th {
    background: rgba(255, 153, 0, 0.12);
    color: var(--accent);
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-accent);
}

.blog-table tbody td {
    padding: 10px 14px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.blog-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Blog CTA box */
.blog-cta-box {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.1), rgba(255, 153, 0, 0.05));
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
    margin: 40px 0 28px;
}

.blog-cta-box h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

.blog-cta-box p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Blog navigation (prev/next) */
.blog-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

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

    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-highlight-box {
        grid-template-columns: 1fr;
    }

    .blog-nav {
        flex-direction: column;
    }

    .blog-nav .btn {
        text-align: center;
    }

    .blog-table {
        font-size: 0.78rem;
    }

    .blog-table thead th,
    .blog-table tbody td {
        padding: 8px 10px;
    }
}

/* ==========================================================================
   CONTACTO PAGE
   ========================================================================== */

/* Two-column layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

/* Info column */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 22px 20px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.contact-info-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
    width: 36px;
    text-align: center;
}

.contact-info-card h3 {
    color: var(--text-main);
    font-size: 1rem;
    margin: 0 0 4px;
}

.contact-info-card p {
    color: var(--text-muted);
    font-size: 0.87rem;
    margin: 0;
    line-height: 1.5;
}

.contact-info-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 6px;
}

.contact-info-link:hover {
    text-decoration: underline;
}

.contact-address {
    display: block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.82rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-top: 8px;
    font-family: monospace;
}

/* Social buttons in contact page */
.contact-social-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.contact-social-btn {
    width: 42px;
    height: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.contact-social-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}


.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 36px 32px;
}

.contact-form-title {
    color: var(--text-main);
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.contact-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.contact-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.contact-field label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: var(--accent);
}

.contact-field textarea {
    resize: vertical;
    line-height: 1.6;
}

.contact-legal {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

/* FAQ grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 20px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-accent);
}

.faq-item h4 {
    color: var(--text-main);
    font-size: 0.9rem;
    margin: 0 0 8px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

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

    .contact-form-card {
        padding: 24px 20px;
    }
}

@media (max-width: 600px) {
    .contact-field-group {
        grid-template-columns: 1fr;
    }

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