:root {
    --bg-main: #060b16;
    /* Un azul marino ultra oscuro profundo para el fondo general */
    --bg-card: #0f1626;
    /* Azul noche para las tarjetas de producto y el menú */
    --bg-input: #172033;
    /* Azul más claro para los campos del formulario de contacto */
    --text-primary: #ffffff;
    /* Texto principal blanco */
    --text-secondary: #8fa0c2;
    /* Texto secundario en un tono azul grisáceo suave */

    /* EL COLOR DE TU LOGO (Color de Acento Principal) */
    --accent: #00b4d8;
    /* El turquesa/cian brillante e idéntico al de tu isotipo ditavoc */

    --accent-blue: #1e90ff;
    /* Azul eléctrico para variantes */
    --accent-green: #2ed573;
    /* Verde para el botón definitivo de WhatsApp */
    --border: #1f2c47;
    /* Bordes sutiles en armonía con los tonos oscuros */
    --font: 'Inter', sans-serif;
    --nav-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    height: var(--nav-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(11, 12, 15, 0.95);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
}

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

.logoMain {
    height: 45px;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 8px;
    transition: transform 0.2s;
}

.cart-icon-wrapper:hover {
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
}

/* SLIDER */
.hero-slider {
    margin-top: var(--nav-height);
    position: relative;
    width: 100vw;
    height: calc(100vh - var(--nav-height));
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.slide {
    width: 100vw;
    height: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 0 8%;
}

.slide-content {
    max-width: 650px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.slide h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.slide p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.slide-features {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.feat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #e5e7eb;
}

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

.slide-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-card {
    border: 2px dashed var(--accent);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    max-width: 300px;
    width: 100%;
}

.trust-card .main-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.trust-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.trust-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.btn-blue {
    background-color: var(--accent-blue);
}

.btn-green {
    background-color: var(--accent-green);
}

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

/* SLIDER NAV ARROWS */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(19, 21, 26, 0.8);
    border: 1px solid var(--border);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.hero-slider:hover .slide-arrow {
    opacity: 1;
    visibility: visible;
}

.slide-arrow:hover {
    background: white;
    color: black;
}

/* INDICATORS */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 8%;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 35px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.3s;
}

.indicator.active {
    background: white;
}

/* SECTIONS */
.section {
    padding: 100px 5%;
}

.section-alt {
    background-color: var(--bg-card);
}

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

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.section-header .sub,
.sub {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #313745;
}

.prod-img-box {
    position: relative;
    height: 240px;
    background-color: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.prod-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.prod-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    background-color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.prod-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.prod-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.prod-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 20px;
}

.prod-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.prod-actions {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 10px;
}

.btn-sm {
    padding: 10px 15px;
    font-size: 0.88rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-outline {
    border: 1px solid var(--border);
    background: transparent;
    color: white;
}

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

/* ABOUT SECTION */
.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--accent);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.3);
}

.about-badge h4 {
    font-size: 2rem;
    font-weight: 800;
}

.about-badge p {
    font-size: 0.85rem;
    font-weight: 500;
    color: #f3f4f6;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.about-feat-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.about-feat-item i {
    font-size: 1.4rem;
    color: var(--accent);
    background: rgba(255, 71, 87, 0.1);
    padding: 12px;
    border-radius: 8px;
}

.about-feat-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.about-feat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* CONTACT FORM & INFO */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.c-method {
    display: flex;
    gap: 15px;
    align-items: center;
}

.c-method i {
    font-size: 1.5rem;
    color: white;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-method h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.c-method p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 16px;
    position: relative;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #d1d5db;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.error-msg {
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.form-success-box {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success-box i {
    font-size: 3.5rem;
    color: var(--accent-green);
    margin-bottom: 15px;
}

/* CART SIDEBAR */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-close {
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.cart-body {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-empty {
    text-align: center;
    color: var(--text-secondary);
    margin: auto;
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 15px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.cart-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-details p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.cart-item-remove {
    color: #ef4444;
    cursor: pointer;
    padding: 5px;
    font-size: 0.95rem;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border);
    background-color: rgba(0, 0, 0, 0.15);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cart-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.btn-whatsapp-checkout {
    background-color: var(--accent-green);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1900;
    display: none;
    backdrop-filter: blur(4px);
}

/* FOOTER */
.footer {
    background-color: #07080a;
    border-top: 1px solid var(--border);
    padding: 70px 5% 20px 5%;
}

.logoFooter {
    width: 200px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.51fr 0.8fr 1.2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 15px;
    margin-bottom: 20px;
    max-width: 400px;
}

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

.social-links a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.social-links a:hover {
    background-color: white;
    color: black;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4,
.footer-trust h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-trust p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-trust p i {
    color: var(--accent-green);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #4b5563;
}

/* RESPONSIVE DESIGN */
@media (max-width: 968px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .slide {
        grid-template-columns: 1fr;
        padding-top: 40px;
        text-align: center;
    }

    .slide-content {
        margin: 0 auto;
    }

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

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

    .slider-indicators {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .menu-toggle {
        display: block;
    }

    .logoMain {
        height: 35px;
    }

    .logoFooter {
        width: 150px;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--bg-main);
        flex-direction: column;
        align-items: center;
        padding: 50px 0;
        transition: left 0.3s;
        border-top: 1px solid var(--border);
    }

    .nav-menu.open {
        left: 0;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}