/* ═══════════════════════════════════════
   Calle Real - Main Stylesheet
   Fuentes: Playfair Display + DM Sans
   ═══════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colores de marca */
    --cr-cafe-900: #1A0F0A;
    --cr-cafe-800: #2D1810;
    --cr-cafe-700: #4A2C0A;
    --cr-cafe-600: #6B4423;
    --cr-cafe-header: #572f12;
    --cr-dorado-500: #D4A853;
    --cr-dorado-400: #E8C878;
    --cr-crema-200: #FBF7F0;
    --cr-crema-100: #FFFDF9;
    --cr-blanco: #FFFFFF;

    /* Tipografía */
    --cr-font-display: 'Playfair Display', Georgia, serif;
    --cr-font-body: 'DM Sans', system-ui, sans-serif;

    /* Espaciado */
    --cr-space-xs: 0.5rem;
    --cr-space-sm: 1rem;
    --cr-space-md: 2rem;
    --cr-space-lg: 4rem;
    --cr-space-xl: 6rem;

    /* Contenedor */
    --cr-container-max: 1200px;
    --cr-container-padding: 1.5rem;

    /* Sombras */
    --cr-shadow-sm: 0 2px 8px rgba(31, 17, 8, 0.06);
    --cr-shadow-md: 0 4px 20px rgba(31, 17, 8, 0.08);
    --cr-shadow-lg: 0 12px 40px rgba(31, 17, 8, 0.12);

    /* Transiciones */
    --cr-transition: 0.3s ease;
}

body {
    font-family: var(--cr-font-body);
    color: var(--cr-cafe-800);
    background: var(--cr-blanco);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

/* ─── Container ─── */
.cr-container {
    max-width: var(--cr-container-max);
    margin: 0 auto;
    padding-left: var(--cr-container-padding);
    padding-right: var(--cr-container-padding);
}

/* ═══════════════════════════════════════
   HEADER - Desktop + Mobile
   ═══════════════════════════════════════ */

.crh {
    --crh-bg: #572f12;
    --crh-text: #FFFDF9;
    --crh-accent: #D4A853;
    --crh-logo-h: 50px;
    font-family: var(--cr-font-body);
}

.crh *, .crh *::before, .crh *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── Desktop Header ─── */
.crh--desktop {
    display: none;
    width: 100%;
    background: var(--crh-bg);
}

.crh--desktop .crh__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px 60px;
    min-height: 80px;
    position: relative;
}

.crh__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.crh__logo img {
    display: block;
    height: var(--crh-logo-h);
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.crh__logo-text {
    font-family: var(--cr-font-display);
    font-size: 24px;
    font-style: italic;
    color: var(--crh-text);
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 8px;
}

.crh__logo-svg {
    display: flex;
    align-items: center;
}

.crh__logo-svg svg {
    height: 50px;
    width: auto;
}

/* Desktop Nav (centered) */
.crh__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
}

.crh__nav li {
    list-style: none;
}

.crh__link,
.crh__nav a {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--crh-text);
    text-decoration: none;
    transition: opacity 0.25s ease;
    display: inline-block;
}

.crh__link:hover,
.crh__nav a:hover {
    opacity: 0.7;
}

/* Desktop Actions */
.crh__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crh__cta {
    display: inline-flex;
    align-items: center;
    padding: 11px 26px;
    background: var(--crh-accent);
    color: #1A0F0A;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.crh__cta:hover {
    background: #E8C878;
    transform: translateY(-1px);
}

/* Search toggle */
.crh__search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--crh-text);
    cursor: pointer;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
}
.crh__search-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}
.crh__search-toggle.is-active {
    background: var(--crh-accent);
    border-color: var(--crh-accent);
    color: #1A0F0A;
}

/* Search dropdown */
.crh__search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 2rem;
    left: auto;
    width: 400px;
    max-width: calc(100vw - 4rem);
    background: #FFFDF9;
    padding: 16px;
    display: none;
    z-index: 999;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(45, 24, 16, 0.15), 0 2px 8px rgba(45, 24, 16, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.15);
}
.crh__search-dropdown.is-open {
    display: block;
    animation: crh-search-in 0.2s ease-out;
}
@keyframes crh-search-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.crh__search-dropdown .dgwt-wcas-search-wrapp {
    max-width: 100%;
    margin: 0;
}
.crh__search-dropdown .dgwt-wcas-search-input {
    border: 1.5px solid rgba(45, 24, 16, 0.12) !important;
    border-radius: 8px !important;
    padding: 10px 16px 10px 40px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    color: var(--cr-cafe-800) !important;
    background: #fff !important;
    transition: border-color 0.2s ease !important;
}
.crh__search-dropdown .dgwt-wcas-ico-magnifier,
.crh__search-dropdown .dgwt-wcas-ico-magnifier-handler {
    left: 12px !important;
    width: 18px !important;
    height: 18px !important;
    opacity: 0.4;
}
.crh__search-dropdown .dgwt-wcas-search-input:focus {
    border-color: var(--cr-dorado-500) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15) !important;
}
.crh__search-dropdown .dgwt-wcas-search-input::placeholder {
    color: rgba(45, 24, 16, 0.4) !important;
}
/* FiboSearch results styling */
.dgwt-wcas-suggestions-wrapp {
    border-radius: 8px !important;
    border: 1px solid rgba(45, 24, 16, 0.08) !important;
    box-shadow: 0 8px 24px rgba(45, 24, 16, 0.12) !important;
    font-family: 'DM Sans', sans-serif !important;
}
.dgwt-wcas-suggestion {
    padding: 10px 14px !important;
}
.dgwt-wcas-suggestion:hover,
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
    background: rgba(212, 168, 83, 0.08) !important;
}
.dgwt-wcas-st {
    color: var(--cr-cafe-800) !important;
    font-weight: 600 !important;
}
.dgwt-wcas-sp {
    color: var(--cr-dorado-500) !important;
    font-weight: 700 !important;
}

.crh__cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: var(--crh-text);
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.25s ease;
}

.crh__cart:hover {
    background: rgba(255, 255, 255, 0.1);
}

.crh__cart svg {
    width: 22px;
    height: 22px;
}

.crh__cart span {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--crh-accent);
    color: #1A0F0A;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50px;
}

/* ─── Mobile Top Bar ─── */
.crh--mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 60px;
    padding: 0 16px;
    background: var(--crh-bg);
}

.crh--mobile-top .crh__logo img {
    height: 40px;
}

.crh--mobile-top .crh__logo-text {
    font-size: 20px;
    padding: 6px 12px;
}

.crh--mobile-top .crh__cart {
    width: 44px;
    height: 44px;
}

.crh--mobile-top .crh__cart svg {
    width: 24px;
    height: 24px;
}

/* ─── Mobile Bottom Nav ─── */
.crh--mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: 68px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--crh-bg);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.crh__nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    max-width: 80px;
    color: rgba(255, 253, 249, 0.5);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.crh__nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.crh__nav-item span {
    font-size: 9px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.crh__nav-item:active {
    transform: scale(0.95);
}

.crh__nav-item.is-active {
    color: var(--crh-accent);
}

.crh__nav-item--cta {
    background: var(--crh-accent);
    color: #1A0F0A;
    border-radius: 14px;
    max-width: 85px;
}

.crh__nav-item--cta svg {
    stroke: #1A0F0A;
}

.crh__nav-item--cta:active {
    background: #E8C878;
}

/* ─── Header Responsive ─── */
@media (min-width: 768px) {
    .crh--mobile-top {
        padding: 0 24px;
        height: 70px;
    }
    .crh--mobile-top .crh__logo img {
        height: 48px;
    }
    .crh--mobile-nav {
        height: 74px;
        padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
    }
    .crh__nav-item {
        max-width: 100px;
        gap: 5px;
    }
    .crh__nav-item svg {
        width: 24px;
        height: 24px;
    }
    .crh__nav-item span {
        font-size: 10px;
    }
}

@media (min-width: 1024px) {
    .crh--desktop {
        display: block;
    }
    .crh--mobile-top,
    .crh--mobile-nav {
        display: none !important;
    }
}

@media (min-width: 1400px) {
    .crh--desktop .crh__inner {
        padding: 16px 100px;
    }
}

/* Body padding for mobile bottom nav */
@media (max-width: 1023px) {
    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    body {
        padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.footer-cr {
    --footer-bg: #2D1810;
    --footer-text: #FFFDF9;
    --footer-accent: #D4A853;
    --footer-border: rgba(255, 255, 255, 0.08);
    --font-display: var(--cr-font-display);
    --font-body: var(--cr-font-body);
    background: var(--footer-bg);
    font-family: var(--font-body);
    color: var(--footer-text);
}

.footer-cr *, .footer-cr *::before, .footer-cr *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.footer-cr__main {
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.footer-cr__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.footer-cr__logo:hover {
    opacity: 0.85;
}

.footer-cr__logo-img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.footer-cr__logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    font-style: italic;
    color: var(--footer-text);
    letter-spacing: 2px;
}

.footer-cr__tagline {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* Sucursales en footer */
.footer-cr__locations {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-cr__locations-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--footer-accent);
}

.footer-cr__locations-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
}

.footer-cr__location {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.footer-cr__location:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -12px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-cr__city {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
}

/* Redes sociales */
.footer-cr__social {
    display: flex;
    gap: 12px;
}

.footer-cr__social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-cr__social-link:hover {
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    color: var(--footer-bg);
    transform: translateY(-2px);
}

.footer-cr__social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Bottom bar */
.footer-cr__bottom {
    border-top: 1px solid var(--footer-border);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-cr__copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-cr__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

.footer-cr__link {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-cr__link:hover {
    color: var(--footer-accent);
}

/* Footer responsive */
@media (min-width: 600px) {
    .footer-cr__main {
        padding: 56px 40px;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
        gap: 40px;
    }
    .footer-cr__logo {
        align-items: flex-start;
    }
    .footer-cr__locations {
        align-items: flex-start;
    }
    .footer-cr__locations-list {
        justify-content: flex-start;
        max-width: 320px;
    }
    .footer-cr__bottom {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 40px;
    }
}

@media (min-width: 900px) {
    .footer-cr__main {
        padding: 64px 60px;
    }
    .footer-cr__logo-text {
        font-size: 28px;
    }
    .footer-cr__logo-img {
        height: 70px;
    }
    .footer-cr__location {
        font-size: 14px;
    }
    .footer-cr__locations-list {
        max-width: 400px;
    }
    .footer-cr__social-link {
        width: 48px;
        height: 48px;
    }
    .footer-cr__social-link svg {
        width: 22px;
        height: 22px;
    }
    .footer-cr__bottom {
        padding: 24px 60px;
    }
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */

.cr-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cr-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

.cr-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 24, 16, 0.7), rgba(45, 24, 16, 0.3));
    z-index: 1;
}

.cr-hero__content {
    position: relative;
    z-index: 2;
    color: var(--cr-crema-100);
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.cr-hero__title {
    font-family: var(--cr-font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-style: italic;
    margin-bottom: var(--cr-space-sm);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.cr-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--cr-space-md);
    opacity: 0.85;
}

.cr-hero__cta {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: var(--cr-dorado-500);
    color: var(--cr-cafe-900);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.cr-hero__cta:hover {
    background: var(--cr-dorado-400);
    transform: translateY(-2px);
}

/* Scroll indicator */
.cr-hero__scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 253, 249, 0.5);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.cr-hero__scroll-indicator span {
    display: block;
    width: 4px;
    height: 8px;
    background: var(--cr-crema-100);
    border-radius: 2px;
    margin-top: 6px;
    animation: cr-scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes cr-scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(12px); opacity: 0.3; }
}

/* ═══════════════════════════════════════
   CATEGORÍAS DE DULCES (Tabs + Grid)
   ═══════════════════════════════════════ */

.cd-section {
    --cd-bg: #FBF7F0;
    --cd-accent: #D4A853;
    --cd-text: #2D1810;
    --cd-text-light: #6B4423;
    --cd-white: #FFFFFF;
    --cd-border: rgba(45, 24, 16, 0.1);
    --cd-shadow: 0 4px 20px rgba(45, 24, 16, 0.08);
    --cd-radius: 16px;
    --cd-radius-sm: 12px;
    background: var(--cd-bg);
    padding: 48px 16px 80px;
    font-family: var(--cr-font-body);
}

.cd-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cd-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cd-accent);
    margin-bottom: 12px;
}

.cd-title {
    font-family: var(--cr-font-display);
    font-size: 32px;
    font-weight: 500;
    font-style: italic;
    color: var(--cd-text);
    line-height: 1.2;
    margin-bottom: 12px;
}

.cd-subtitle {
    font-size: 15px;
    color: var(--cd-text-light);
    line-height: 1.6;
}

/* Tabs nav */
.cd-tabs-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    max-width: 900px;
    margin: 0 auto 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cd-tabs-nav::-webkit-scrollbar {
    display: none;
}

.cd-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--cd-white);
    border: 1px solid var(--cd-border);
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    flex-shrink: 0;
    font-family: inherit;
}

.cd-tab-btn:hover {
    border-color: var(--cd-text);
}

.cd-tab-btn.is-active {
    background: var(--cd-text);
    border-color: var(--cd-text);
}

.cd-tab-btn.is-active .cd-tab-name {
    color: var(--cd-white);
}

.cd-tab-btn.is-active .cd-tab-count {
    color: rgba(255, 255, 255, 0.6);
}

.cd-tab-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.cd-tab-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cd-tab-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cd-tab-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--cd-text);
    transition: color 0.25s ease;
}

.cd-tab-count {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cd-text-light);
    transition: color 0.25s ease;
}

/* Panels */
.cd-panels {
    max-width: 1200px;
    margin: 0 auto;
}

.cd-panel {
    display: none;
}

.cd-panel.is-active {
    display: block;
    animation: cdFadeIn 0.4s ease;
}

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

/* Product grid */
.cd-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cd-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--cd-white);
    border-radius: var(--cd-radius);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--cd-shadow);
    transition: all 0.3s ease;
}

.cd-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(45, 24, 16, 0.18);
}

.cd-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cd-accent);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.cd-card:hover::after {
    transform: scaleX(1);
}

.cd-card-img {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f5ede0, #ede4d3);
    overflow: hidden;
}

.cd-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.cd-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cd-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--cd-text);
}

.cd-card-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--cd-accent);
}

/* Categorias responsive */
@media (min-width: 600px) {
    .cd-section { padding: 64px 24px 80px; }
    .cd-title { font-size: 40px; }
    .cd-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .cd-tabs-nav { justify-content: center; flex-wrap: wrap; }
}

@media (min-width: 900px) {
    .cd-section { padding: 80px 40px 100px; }
    .cd-title { font-size: 48px; }
    .cd-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* ═══════════════════════════════════════
   TRUST BADGES
   ═══════════════════════════════════════ */

.trust-section {
    position: relative;
    background: linear-gradient(135deg, #2D1810 0%, #3D2218 50%, #2D1810 100%);
    overflow: hidden;
    border-top: 1px solid rgba(200, 160, 80, 0.15);
    border-bottom: 1px solid rgba(200, 160, 80, 0.15);
}

.trust-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    place-items: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 8px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    position: relative;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
}

/* Icon container */
.trust-item__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 160, 80, 0.2);
    border-radius: 12px;
    background: rgba(200, 160, 80, 0.05);
    transition: all 0.4s;
}

.trust-item:hover .trust-item__icon {
    border-color: rgba(200, 160, 80, 0.4);
    background: rgba(200, 160, 80, 0.1);
}

.trust-item__icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--cr-dorado-500, #D4A853);
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.4s;
}

.trust-item:hover .trust-item__icon svg {
    stroke: #E0C070;
    transform: scale(1.08);
}

/* Text */
.trust-item__title {
    font-family: var(--cr-font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #F0E6D6;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    transition: color 0.3s;
}

.trust-item:hover .trust-item__title {
    color: #fff;
}

.trust-item__subtitle {
    font-size: 0.7rem;
    color: rgba(240, 230, 214, 0.5);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.01em;
    transition: color 0.3s;
}

.trust-item:hover .trust-item__subtitle {
    color: rgba(240, 230, 214, 0.7);
}

/* Hover tag — gold pill that appears */
.trust-item__tag {
    margin-top: 10px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #C8A050;
    padding: 3px 10px;
    border: 1px solid rgba(200, 160, 80, 0.25);
    border-radius: 20px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.4s;
}

.trust-item:hover .trust-item__tag {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile: hide tags */
@media (max-width: 500px) {
    .trust-item__tag { display: none; }
}

/* Tablet+ */
@media (min-width: 600px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        padding: 56px 16px;
    }
    .trust-item {
        padding: 24px 16px;
    }
    .trust-item__icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
        border-radius: 14px;
    }
    .trust-item__icon svg {
        width: 30px;
        height: 30px;
    }
    .trust-item__title {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }
    .trust-item__subtitle {
        font-size: 0.78rem;
    }

    /* Divider lines between items */
    .trust-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -8px;
        top: 20%;
        height: 60%;
        width: 1px;
        background: linear-gradient(
            to bottom,
            transparent,
            rgba(200, 160, 100, 0.2) 30%,
            rgba(200, 160, 100, 0.2) 70%,
            transparent
        );
    }
}

@media (min-width: 900px) {
    .trust-grid {
        padding: 64px 24px;
    }
}

/* ═══════════════════════════════════════
   NUESTRA HISTORIA (Home section)
   ═══════════════════════════════════════ */

.historia-section {
    background: var(--cr-crema-200);
    padding: 64px 20px 80px;
    position: relative;
    overflow: hidden;
}

.historia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
}

/* Image side */
.historia-media {
    position: relative;
}

.historia-media__frame {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(31, 17, 8, 0.15);
}

.historia-media__frame::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 18px;
    pointer-events: none;
}

.historia-media__frame img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.historia-media__badge {
    position: absolute;
    bottom: -16px;
    right: 24px;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--cr-dorado-500), var(--cr-dorado-400));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(212, 168, 83, 0.4);
    z-index: 2;
}

.historia-media__badge-text {
    font-family: var(--cr-font-display);
    font-size: 11px;
    font-weight: 500;
    color: var(--cr-cafe-800);
    text-align: center;
    line-height: 1.3;
}

.historia-media__badge-year {
    font-family: var(--cr-font-display);
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    color: var(--cr-cafe-800);
}

/* Content side */
.historia-content {
    position: relative;
}

.historia-content__hero-number {
    font-family: var(--cr-font-display);
    font-size: 180px;
    font-style: italic;
    font-weight: 500;
    color: var(--cr-cafe-800);
    opacity: 0.06;
    position: absolute;
    top: -60px;
    right: 0;
    line-height: 1;
    pointer-events: none;
}

.historia-content__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cr-dorado-500);
    margin-bottom: 16px;
}

.historia-content__eyebrow::before {
    content: '';
    width: 20px;
    height: 1.5px;
    background: var(--cr-dorado-500);
}

.historia-content__title {
    font-family: var(--cr-font-display);
    font-size: 36px;
    font-weight: 500;
    font-style: italic;
    color: var(--cr-cafe-800);
    line-height: 1.2;
    margin-bottom: 20px;
}

.historia-content__title em {
    color: var(--cr-dorado-500);
    font-style: italic;
}

.historia-content__description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--cr-cafe-600);
    margin-bottom: 32px;
}

/* Timeline — horizontal line with dots */
.historia-timeline {
    display: flex;
    position: relative;
    margin-bottom: 32px;
}

/* Horizontal connecting line */
.historia-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 1.5px;
    background: var(--cr-dorado-500);
    opacity: 0.5;
}

.historia-timeline__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 20px;
}

/* Dot on the line */
.historia-timeline__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cr-cafe-800);
    border: 2px solid var(--cr-dorado-500);
    z-index: 1;
}

.historia-timeline__year {
    font-family: var(--cr-font-display);
    font-size: 28px;
    font-weight: 600;
    font-style: italic;
    color: var(--cr-cafe-800);
    line-height: 1.2;
}

.historia-timeline__label {
    font-size: 12px;
    color: var(--cr-cafe-600);
    line-height: 1.3;
    max-width: 100px;
}

.historia-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--cr-cafe-800);
    color: var(--cr-crema-100);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.historia-cta:hover {
    background: var(--cr-cafe-900);
    transform: translateY(-2px);
}

.historia-cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

@media (min-width: 600px) {
    .historia-timeline__year {
        font-size: 34px;
    }
    .historia-timeline__label {
        font-size: 13px;
        max-width: 120px;
    }
}

@media (min-width: 1024px) {
    .historia-section { padding: 100px 40px 120px; }
    .historia-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
    .historia-media__frame img {
        aspect-ratio: 3 / 4;
    }
    .historia-media__frame {
        border-radius: 32px;
    }
    .historia-content__title {
        font-size: 48px;
    }
    .historia-content__hero-number {
        font-size: 220px;
    }
    .historia-timeline__year {
        font-size: 38px;
    }
    .historia-timeline__label {
        font-size: 14px;
        max-width: none;
    }
}

/* ═══════════════════════════════════════
   EXPERIENCIAS (Museo + Cards)
   ═══════════════════════════════════════ */

.exp-section {
    --accent-color: #D4A853;
    --overlay-opacity: 0.3;
    --color-cafe-800: #2D1810;
    --color-cafe-600: #6B4423;
    --color-dorado-500: var(--accent-color);
    --color-crema-100: #FFFDF9;
    position: relative;
    padding: 48px 16px 80px;
    background-color: #4A2C0A;
    background-image: url('../images/fondo.webp');
    background-repeat: repeat;
    background-size: auto;
    font-family: var(--cr-font-body);
}

.exp-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(45, 24, 16, var(--overlay-opacity));
    z-index: 0;
}

.exp-section > * {
    position: relative;
    z-index: 1;
}

.exp-container {
    max-width: 1200px;
    margin: 0 auto;
}

.exp-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 28px;
}

.exp-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-dorado-500);
    margin-bottom: 16px;
}

.exp-header__eyebrow::before,
.exp-header__eyebrow::after {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--color-dorado-500);
    opacity: 0.5;
}

.exp-header__title {
    font-family: var(--cr-font-display);
    font-size: 34px;
    font-weight: 500;
    font-style: italic;
    color: var(--color-crema-100);
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.exp-header__description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 253, 249, 0.75);
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Museo hero card */
.museo-hero {
    position: relative;
    min-height: 320px;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-cafe-800);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.museo-hero__image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.museo-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.museo-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(45, 24, 16, 0.85) 40%, rgba(45, 24, 16, 0.2) 100%);
}

.museo-hero__rating {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 2;
}

.museo-hero__rating-stars svg {
    width: 14px;
    height: 14px;
    fill: var(--color-dorado-500);
}

.museo-hero__rating-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-cafe-800);
}

.museo-hero__rating-count {
    font-size: 11px;
    color: var(--color-cafe-600);
}

.museo-hero__content {
    position: relative;
    z-index: 2;
    padding: 20px 16px 24px;
    max-width: 480px;
}

.museo-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(212, 168, 83, 0.15);
    border-radius: 50px;
    margin-bottom: 12px;
}

.museo-hero__badge svg {
    width: 14px;
    height: 14px;
    fill: var(--color-dorado-500);
}

.museo-hero__badge span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-dorado-500);
}

.museo-hero__title {
    font-family: var(--cr-font-display);
    font-size: 22px;
    font-weight: 500;
    font-style: italic;
    color: var(--color-crema-100);
    margin-bottom: 6px;
}

.museo-hero__description {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 253, 249, 0.7);
    margin-bottom: 12px;
}

.museo-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.museo-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.museo-meta-item__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.museo-meta-item__icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-dorado-500);
    fill: none;
    stroke-width: 1.5;
}

.museo-meta-item__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 253, 249, 0.5);
}

.museo-meta-item__value {
    font-size: 14px;
    color: var(--color-crema-100);
}

.museo-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-dorado-500);
    color: var(--color-cafe-800);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.museo-hero__cta:hover {
    background: var(--cr-dorado-400);
    transform: translateY(-2px);
}

.museo-hero__cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

/* Experiencias grid */
.exp-grid {
    display: grid;
    gap: 16px;
}

.exp-grid--two {
    grid-template-columns: 1fr;
}

.exp-card {
    display: block;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
    background: var(--color-cafe-800);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.exp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.exp-card__image-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.exp-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.exp-card:hover .exp-card__image {
    transform: scale(1.08);
}

.exp-card__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 24, 16, 0.8), transparent 50%);
    transition: background 0.4s ease;
}

.exp-card:hover .exp-card__image-overlay {
    background: linear-gradient(to top, rgba(45, 24, 16, 0.9), rgba(212, 168, 83, 0.1) 60%);
}

.exp-card__icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.exp-card:hover .exp-card__icon {
    background: var(--cr-dorado-500);
    transform: scale(1.1);
}

.exp-card__icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-crema-100);
    fill: none;
    stroke-width: 1.5;
    transition: stroke 0.3s ease;
}

.exp-card:hover .exp-card__icon svg {
    stroke: var(--cr-cafe-800);
}

.exp-card__content {
    padding: 14px 16px 16px;
}

.exp-card__title {
    font-family: var(--cr-font-display);
    font-size: 17px;
    font-weight: 500;
    font-style: italic;
    color: var(--color-crema-100);
    margin-bottom: 6px;
}

.exp-card__description {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 253, 249, 0.65);
    margin-bottom: 10px;
    display: none;
}

.exp-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.exp-card__meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255, 253, 249, 0.6);
}

.exp-card__meta-item svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-dorado-500);
    fill: none;
    stroke-width: 1.5;
}

.exp-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-dorado-500);
    text-decoration: none;
}

.exp-card__cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
}

.exp-card:hover .exp-card__cta svg {
    transform: translateX(4px);
}

@media (min-width: 768px) {
    .exp-section { padding: 60px 24px 80px; }
    .exp-header { margin-bottom: 32px; }
    .exp-header__title { font-size: 42px; }
    .museo-hero { min-height: 340px; }
    .museo-hero__content { padding: 28px 32px 32px; }
    .museo-hero__title { font-size: 26px; }
    .museo-hero__description { font-size: 14px; }
    .museo-hero__meta { flex-direction: row; gap: 20px; }
    .exp-grid--two { grid-template-columns: repeat(2, 1fr); }
    .exp-card__description { display: block; }
}

@media (min-width: 1024px) {
    .exp-section { padding: 80px 40px 100px; }
    .exp-header__title { font-size: 48px; }
    .museo-hero { min-height: 380px; }
    .museo-hero__content { padding: 32px 40px 36px; }
    .museo-hero__title { font-size: 30px; }
}

/* ═══════════════════════════════════════
   TESTIMONIOS
   ═══════════════════════════════════════ */

.testimonios-section {
    --ts-bg: #FBF7F0;
    --ts-accent: #D4A853;
    --ts-text: #2D1810;
    --ts-text-light: #6B4423;
    --ts-card-bg: #FFFFFF;
    --ts-featured-bg: #2D1810;
    --ts-border: rgba(45, 24, 16, 0.1);
    --ts-shadow: 0 4px 24px rgba(31, 17, 8, 0.08);
    --ts-shadow-hover: 0 12px 40px rgba(31, 17, 8, 0.12);
    --ts-radius: 24px;
    background: var(--ts-bg);
    padding: 64px 20px 80px;
    font-family: var(--cr-font-body);
}

.testimonios-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonios-header {
    text-align: center;
    margin-bottom: 40px;
}

.testimonios-header__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ts-accent);
    margin-bottom: 12px;
}

.testimonios-header__title {
    font-family: var(--cr-font-display);
    font-size: 36px;
    font-weight: 500;
    font-style: italic;
    color: var(--ts-text);
}

/* Grid */
.testimonios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Card */
.testimonio-card {
    position: relative;
    background: var(--ts-card-bg);
    border-radius: var(--ts-radius);
    padding: 36px 28px 28px;
    box-shadow: var(--ts-shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.testimonio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ts-shadow-hover);
    border-color: rgba(212, 168, 83, 0.3);
}

.testimonio-card__quote {
    position: absolute;
    top: -14px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ts-accent), #E8C878);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonio-card:hover .testimonio-card__quote {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 18px rgba(212, 168, 83, 0.5);
}

.testimonio-card__quote svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.testimonio-card__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonio-card__stars svg {
    width: 18px;
    height: 18px;
    fill: var(--ts-accent);
}

.testimonio-card__content {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ts-text);
    margin-bottom: 20px;
}

.testimonio-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonio-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ts-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--ts-text);
    flex-shrink: 0;
    overflow: hidden;
}

.testimonio-card__avatar--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonio-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ts-text);
    display: block;
}

.testimonio-card__location {
    font-size: 12px;
    color: var(--ts-text-light);
    display: block;
}

/* Featured card */
.testimonio-card--featured {
    background: var(--ts-featured-bg);
}

.testimonio-card--featured .testimonio-card__content {
    color: rgba(255, 253, 249, 0.85);
}

.testimonio-card--featured .testimonio-card__name {
    color: var(--cr-crema-100);
}

.testimonio-card--featured .testimonio-card__location {
    color: var(--ts-accent);
}

.testimonio-card--featured .testimonio-card__avatar {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cr-crema-100);
}

.testimonio-card--featured .testimonio-card__quote {
    background: rgba(255, 255, 255, 0.15);
}

/* Dots */
.testimonios-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

.testimonios-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--ts-text);
    opacity: 0.2;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s ease;
}

.testimonios-dot.is-active {
    opacity: 1;
    width: 24px;
    background: var(--ts-accent);
}

/* Navigation arrows */
.testimonios-nav {
    display: none;
}

/* Testimonios mobile carousel */
@media (max-width: 767px) {
    .testimonios-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 16px;
        padding: 16px 20px;
        margin: 0 -20px;
    }
    .testimonios-grid::-webkit-scrollbar { display: none; }
    .testimonio-card {
        flex: 0 0 82%;
        scroll-snap-align: center;
    }
}

@media (min-width: 768px) {
    .testimonios-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        gap: 20px;
        padding: 16px 4px;
    }
    .testimonios-grid::-webkit-scrollbar { display: none; }
    .testimonio-card {
        flex: 0 0 calc(50% - 10px);
        scroll-snap-align: start;
    }
    .testimonios-dots { display: none; }
    .testimonios-header__title { font-size: 44px; }

    /* Show nav arrows on tablet+ */
    .testimonios-nav {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 32px;
    }

    .testimonios-nav__btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 2px solid var(--ts-border);
        background: var(--ts-card-bg);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .testimonios-nav__btn:hover {
        border-color: var(--ts-accent);
        background: var(--ts-accent);
    }

    .testimonios-nav__btn svg {
        width: 18px;
        height: 18px;
        stroke: var(--ts-text);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: stroke 0.3s ease;
    }

    .testimonios-nav__btn:hover svg {
        stroke: white;
    }
}

@media (min-width: 1024px) {
    .testimonios-section { padding: 80px 40px 100px; }
    .testimonio-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

/* ═══════════════════════════════════════
   SECTION WAVE DIVIDERS
   ═══════════════════════════════════════ */

.cd-section,
.trust-section,
.historia-section,
.exp-section {
    position: relative;
}

/* Shared wave divider base */
.historia-section::after,
.exp-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 3;
    pointer-events: none;
}

@media (min-width: 768px) {
    .historia-section::after,
    .exp-section::after {
        height: 60px;
    }
}

/* Historia (light #FBF7F0) → Experiencias (dark) */
.historia-section::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C480,60 960,0 1440,40 L1440,60 L0,60 Z' fill='%234A2C0A'/%3E%3C/svg%3E");
}

/* Experiencias (dark #4A2C0A) → Testimonios (light) */
.exp-section::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C360,50 1080,50 1440,0 L1440,60 L0,60 Z' fill='%23FBF7F0'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════ */

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="up"]    { transform: translateY(30px); }
[data-reveal="scale"] { transform: scale(0.95); }

[data-reveal="left"].is-visible,
[data-reveal="right"].is-visible,
[data-reveal="up"].is-visible    { transform: translate(0); }
[data-reveal="scale"].is-visible { transform: scale(1); }

[data-reveal-stagger] > [data-reveal]:nth-child(1) { transition-delay: 0s; }
[data-reveal-stagger] > [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-stagger] > [data-reveal]:nth-child(3) { transition-delay: 0.15s; }
[data-reveal-stagger] > [data-reveal]:nth-child(4) { transition-delay: 0.2s; }
[data-reveal-stagger] > [data-reveal]:nth-child(5) { transition-delay: 0.25s; }
[data-reveal-stagger] > [data-reveal]:nth-child(6) { transition-delay: 0.3s; }

/* ═══════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════ */

.footer-cr__social-link:focus-visible,
.footer-cr__link:focus-visible,
.footer-cr__logo:focus-visible,
.cd-tab-btn:focus-visible,
.cd-card:focus-visible,
.crh__link:focus-visible,
.crh__cta:focus-visible,
.crh__nav-item:focus-visible,
.exp-card:focus-visible,
.museo-hero__cta:focus-visible,
.testimonio-card:focus-visible {
    outline: 2px solid var(--cr-dorado-500);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
