/* Estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-yellow: #FFCC00;
    --dark-yellow: #FFCC00;
    --light-yellow: #FFF8DC;
    --primary-black: #1a1a1a;
    --light-black: #2d2d2d;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #f5f5f5;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Promo Bar */
.dt-promo-bar {
    background: var(--primary-black);
    color: var(--primary-yellow);
    text-align: center;
    padding: 10px 0; /* Aumentado de 8px a 10px */
    font-size: 0.9rem;
    font-weight: 600;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    height: 40px; /* Altura fija para mejor control */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Styles */
.dt-header {
    position: fixed;
    top: 40px; /* Ajustado para coincidir con la altura de la promo bar */
    left: 0;
    width: 100%;
    background: #FFCC00;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--primary-black);
    height: 80px; /* Altura consistente */
}

.dt-header.no-promo {
    top: 0;
}

.dt-header.scrolled {
    background: #FFCC00;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.dt-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    height: 100%;
}

.dt-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-black);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dt-logo-img {
    height: 90px;
    width: auto;
    transition: height 0.3s ease;
}

.dt-nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: relative;
}

.dt-nav-menu > li {
    position: relative;
}

.dt-nav-menu > li > a {
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0;
}

.dt-nav-menu > li > a:hover {
    color: var(--white);
}

.dt-nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-black);
    transition: width 0.3s ease;
}

.dt-nav-menu > li > a:hover::after {
    width: 100%;
}

.dt-dropdown-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dt-nav-menu > li:hover .dt-dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dt-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-yellow);
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;

    z-index: 1001;
}

.dt-nav-menu > li:hover .dt-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dt-dropdown a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--primary-black);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    font-weight: 400;
}

.dt-dropdown a:last-child {
    border-bottom: none;
    border-radius: 0 0 6px 6px;
}

.dt-dropdown a:first-child {
    border-radius: 6px 6px 0 0;
}

.dt-dropdown a:hover {
    background: var(--primary-black);
    color: var(--primary-yellow);
    padding-left: 1.5rem;
}

.dt-cta-btn {
    background: var(--primary-black);
    color: var(--primary-yellow);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dt-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: var(--light-black);
}

.dt-phone-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-black);
    font-weight: 600;
}

.dt-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.dt-hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-black);
    transition: all 0.3s ease;
}

.dt-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.dt-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.dt-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive nav - Versión mejorada */
@media (max-width: 768px) {
    /* Estilos para el header en móvil */
    .dt-header {
        height: 80px;
        backdrop-filter: none;
        background: var(--primary-yellow);
        position: fixed;
        top: 40px; /* Ajustado para coincidir con la altura de la promo bar */
        transition: top 0.3s ease, background 0.3s ease;
    }
    
    .dt-header.no-promo {
        top: 0;
    }
    
    .dt-header.scrolled {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Logo en móvil */
    .dt-logo-img {
        height: 70px;
    }
    
    /* Estilos del menú mejorados con mejor espaciado */
/* Dentro de tu @media (max-width: 768px) */

.dt-nav-menu {
    position: fixed;
    /* top: 150px;  <-- Tu valor actual */
    top: 120px; /* <-- Valor corregido para que no haya espacio con el header */
    left: -100%;
    width: 100%;
    height: calc(100vh - 120px); /* Ajustado para coincidir con el 'top' */
    background: #FFCC00;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 27px; /* <-- ¡AÑADE ESTA LÍNEA! Reemplaza 'padding: 0;' */
    transition: left 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

    .dt-header.no-promo + .dt-nav-menu {
        top: 80px;
        height: calc(100vh - 80px);
    }

    .dt-nav-menu.active {
        left: 0;
    }

    .dt-nav-menu > li {
        border-bottom: 2px solid var(--primary-black);
        margin: 0;
    }

    .dt-nav-menu > li > a {
        padding: 1.2rem 1.5rem; /* Aumentado el padding vertical */
        justify-content: space-between;
        font-size: 1.1rem;
        font-weight: 600;
        user-select: none;
    }

    .dt-nav-menu > li > a::after {
        display: none;
    }

    .dt-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(26, 26, 26, 0.1);
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        will-change: max-height;
    }

    .dt-nav-menu > li.active .dt-dropdown {
        max-height: 500px;
    }

    .dt-dropdown a {
        padding: 1rem 2rem; /* Aumentado el padding */
        border-bottom: 1px solid rgba(26, 26, 26, 0.1);
        font-size: 0.95rem;
    }

    .dt-dropdown a:hover {
        padding-left: 2.5rem;
    }

    .dt-dropdown-icon {
        transition: transform 0.3s ease;
    }

    .dt-nav-menu > li.active .dt-dropdown-icon {
        transform: rotate(180deg);
    }

    .dt-hamburger {
        display: flex;
    }

    .dt-phone-contact,
    .dt-cta-btn {
        display: none;
    }
    
    .dt-nav {
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 20px;
    }
}

/* Footer (mantenido igual que en tu versión original) */
.dt-footer {
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 3rem 0 2rem;
}

.dt-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dt-footer-section h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.dt-footer-section p,
.dt-footer-section ul {
    list-style: none;
    margin-bottom: 1rem;
}

.dt-footer-section li {
    margin-bottom: 0.5rem;
}

.dt-footer-section a {
    color: var(--primary-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dt-footer-section a:hover {
    text-decoration: underline;
    color: var(--white);
}

.dt-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.dt-social-links a {
    width: 40px;
    height: 40px;
    background: rgba(26, 26, 26, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--primary-black);
}

.dt-social-links a:hover {
    background: var(--primary-black);
    color: var(--primary-yellow);
}

.dt-footer-bottom {
    border-top: 1px solid rgba(26, 26, 26, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: var(--primary-black);
}

.dt-footer-divider {
    border-top: 1px solid rgba(26, 26, 26, 0.2);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.dt-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.dt-footer-legal-links a {
    color: var(--primary-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dt-footer-legal-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.dt-footer-legal-links .dt-libro-reclamaciones {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .dt-footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 20px;
    }

    .dt-footer-section {
        text-align: left;
    }

    .dt-footer-section:last-child {
        margin-top: 1rem;
    }

    .dt-social-links {
        justify-content: flex-start;
    }

    .dt-footer-bottom {
        text-align: left;
        padding: 0 20px;
    }
}

/* Footer */
.dt-footer {
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 3rem 0 2rem;
}

.dt-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dt-footer-section h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.dt-footer-section p,
.dt-footer-section ul {
    list-style: none;
    margin-bottom: 1rem;
}

.dt-footer-section li {
    margin-bottom: 0.5rem;
}

.dt-footer-section a {
    color: var(--primary-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dt-footer-section a:hover {
    text-decoration: underline;
    color: var(--white);
}

.dt-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.dt-social-links a {
    width: 40px;
    height: 40px;
    background: rgba(26, 26, 26, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--primary-black);
}

.dt-social-links a:hover {
    background: var(--primary-black);
    color: var(--primary-yellow);
}

.dt-footer-bottom {
    border-top: 1px solid rgba(26, 26, 26, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: var(--primary-black);
}

/* Nuevo estilo para la línea divisoria del footer */
.dt-footer-divider {
    border-top: 1px solid rgba(26, 26, 26, 0.2);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

/* Estilos para los enlaces adicionales del footer */
.dt-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.dt-footer-legal-links a {
    color: var(--primary-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dt-footer-legal-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.dt-footer-legal-links .dt-libro-reclamaciones {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Responsive Footer adjustments */
@media (max-width: 768px) {
    .dt-footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 20px;
    }

    .dt-footer-section {
        text-align: left;
    }

    .dt-footer-section:last-child {
        margin-top: 1rem;
    }

    .dt-social-links {
        justify-content: flex-start;
    }

    .dt-footer-bottom {
        text-align: left;
        padding: 0 20px;
    }
}











/* Mejoras para el menú móvil */
.dt-nav-menu.animating {
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dt-header.menu-open {
    z-index: 1002;
}

.dt-header.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* Mejorar la experiencia táctil en móvil */
@media (max-width: 768px) {
    .dt-nav-menu > li > a,
    .dt-dropdown a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);

    }
    
    .dt-nav-menu > li > a:active,
    .dt-dropdown a:active {
        background-color: rgba(26, 26, 26, 0.05);
    }
}

/* Animación suave para los iconos de dropdown */
.dt-dropdown-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mejora para el scroll suave en dispositivos móviles */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .dt-dropdown-icon,
    .dt-hamburger span,
    .dt-nav-menu {
        transition: none;
    }
}