/* Variables para replicar el esquema de color de la imagen */
:root {
    --primary-bg: #f8f7f5; /* Color crema/beige muy claro */
    --secondary-bg: #ffffff;
    --text-color: #333;
    --light-text-color: #666;
    --accent-color: #000;
    --button-bg: #000;
    --button-text: #fff;
    --font-family: 'Montserrat', sans-serif;
    --card-radius: 20px; /* Radio de borde pronunciado para las tarjetas */
}

/* Reset básico y tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg);
}

/* --- 1. Encabezado (Común a ambas páginas) --- */
.main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--primary-bg);
    position: relative;
}

.top-nav ul {
    list-style: none;
    display: flex;
}

.top-nav ul li {
    margin: 0 15px;
}

.top-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9em;
    text-transform: uppercase;
    transition: font-weight 0.2s;
}

.top-nav ul li a.active-link {
    font-weight: 700; /* Resalta el link de la página actual */
    color: var(--accent-color);
}

.header-icons {
    position: absolute;
    right: 5%;
}

.header-icons .icon {
    font-size: 1.1em;
    margin-left: 15px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
}

/* --- 2. Sección Principal (Hero de index.html) --- */
.hero-section.split-hero {
    display: flex;
    height: 70vh;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-bg);
}

.hero-media-left,
.hero-media-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-video,
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay-left, .overlay-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    padding: 0;
}

.hero-content .subtitle {
    font-size: 1.1em;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 5px;
    color: #f0f0f0;
}

.hero-content h1 {
    font-size: 5em;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: 5px;
    line-height: 1;
    text-transform: uppercase;
    color: #ffffff;
}

.shop-now-button {
    background-color: transparent;
    color: #333;
    padding: 12px 30px;
    border: 1px solid #333;
    border-radius: 2px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.shop-now-button:hover {
    background-color: #333;
    color: #fff;
}


/* --- 3. Bloques de Información (Circulares de index.html) --- */
.info-blocks {
    display: flex; 
    justify-content: center;
    padding: 40px 5%;
    background-color: var(--primary-bg);
}

.info-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 8px; 
    flex-shrink: 0; 
}

.info-icon-wrapper {
    width: 90px; 
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.info-block p {
    font-size: 0.8em;
    color: var(--text-color);
    text-align: center;
}

/* --- 4. Sección de Productos (NEW DROP de index.html) --- */
.new-drop {
    padding: 60px 5% 80px;
    text-align: center;
    background-color: var(--primary-bg);
}

.new-drop h2 {
    font-size: 2.5em;
    margin-bottom: 5px;
    letter-spacing: 2px;
    font-weight: 700;
}

.new-drop-subtitle {
    font-size: 0.8em;
    color: var(--light-text-color);
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px; 
    margin: 0 auto;
}

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: var(--secondary-bg);
    cursor: pointer;
}

.product-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)); 
    color: #fff;
    min-height: 140px; 
}

.product-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    width: 100%;
    margin-bottom: 5px; 
}

.product-title {
    font-weight: 600;
    font-size: 1em; 
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 5px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    max-width: 100%;
}

.color-options {
    display: flex;
    gap: 5px; 
    margin-bottom: 8px;
    flex-wrap: nowrap;
    overflow-x: auto; 
    padding-bottom: 2px;
    max-width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.color-options::-webkit-scrollbar {
    display: none;
}

.color-swatch {
    width: 18px; 
    height: 18px; 
    border-radius: 50%; 
    border: 1px solid rgba(255, 255, 255, 0.5); 
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.color-swatch:hover {
    transform: scale(1.2); 
}

.product-price {
    font-weight: 700; 
    font-size: 1em; 
    text-align: left;
    color: #ffffff;
}

/* --- 5. Sección Nosotros (Split Page de nosotros.html) --- */

.about-section.split-page {
    display: flex;
    min-height: 90vh;
    background-color: var(--secondary-bg); 
}

.about-media {
    flex: 1; 
    position: relative;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.about-content {
    flex: 1; 
    padding: 60px 5%; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    background-color: var(--primary-bg); 
}

.about-title {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
    color: var(--text-color);
}

.about-content p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--light-text-color);
    max-width: 500px; 
}

.signature-text {
    font-weight: 600;
    margin-top: 20px;
    font-size: 1.2em !important;
    color: var(--text-color) !important;
}


/* --- Media Queries (Común a ambas páginas) --- */
@media (max-width: 768px) {
    /* Hero Section (index.html) */
    .hero-section.split-hero {
        flex-direction: column;
        height: auto;
    }

    .hero-media-left,
    .hero-media-right {
        height: 35vh; /* Se apilan y toman una altura fija */
        flex: none;
        width: 100%;
    }
    
    /* Encabezado */
    .main-header {
        justify-content: space-between;
    }
    .top-nav {
        /* Mostrar navegación básica en móvil */
        display: flex;
    }
    .header-icons {
        position: static;
        order: 2;
    }
    
    /* Contenido de Hero */
    .hero-content h1 {
        font-size: 2.5em;
        letter-spacing: 3px;
    }
    .hero-content .subtitle {
        font-size: 0.7em;
    }

    /* Info Blocks (index.html) - permite el scroll horizontal si hay muchos */
    .info-blocks {
        overflow-x: auto;
        justify-content: flex-start;
    }
    .info-blocks::-webkit-scrollbar {
        display: none;
    }

    /* Product Grid (index.html) - cambia a una sola columna */
    .product-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    /* About Section (nosotros.html) */
    .about-section.split-page {
        flex-direction: column;
        min-height: auto;
    }

    .about-media {
        height: 60vh;
    }

    .about-content {
        padding: 40px 5%; 
    }

    .about-title {
        font-size: 2em;
    }
}