/* ========== RESET Y VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rosa-mexicano: #E5007E;
    --rosa-claro: #FFB3D9;
    --rosa-oscuro: #B3005E;
    --rosa-fondo: #FFF0F5;
    --oro-metalico: #D4AF37;
    --texto-oscuro: #2C2C2C;
    --texto-claro: #6B6B6B;
    --blanco: #FFFFFF;
    --sombra-suave: 0 10px 30px rgba(229, 0, 126, 0.08);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--rosa-fondo);
    color: var(--texto-oscuro);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

/* ========== HEADER ========== */
header {
    background: var(--blanco);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(229, 0, 126, 0.1);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

/* ========== LOGO - CORREGIDO (NO SE DESBORDA) ========== */
.logo-area {
    display: flex;
    align-items: center;
}

.logo-area a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}

.logo-texto {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 4vw, 28px);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--rosa-oscuro);
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Cuando el nombre es largo */
.logo-texto.largo {
    font-size: clamp(16px, 3.5vw, 22px);
    letter-spacing: 1.5px;
}

/* Cuando el nombre es muy largo */
.logo-texto.muy-largo {
    font-size: clamp(14px, 3vw, 18px);
    letter-spacing: 1px;
    white-space: normal;
    text-align: left;
    max-width: 220px;
}

.logo-texto span {
    color: var(--rosa-mexicano);
    font-weight: 300;
    margin: 0 4px;
}

/* Responsive para logo */
@media (max-width: 768px) {
    .logo-area a {
        justify-content: center;
    }
    
    .logo-texto {
        white-space: normal;
        text-align: center;
        font-size: 18px;
    }
    
    .logo-texto.muy-largo {
        max-width: 180px;
    }
}

/* ========== MENÚ DE NAVEGACIÓN ========== */
.nav-menu {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: var(--texto-oscuro);
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--rosa-mexicano);
    border-bottom-color: var(--rosa-mexicano);
}

/* ========== ICONOS DE USUARIO ========== */
.user-actions {
    display: flex;
    gap: 20px;
    font-size: 20px;
}

.user-actions a {
    color: var(--texto-oscuro);
    transition: color 0.3s;
    position: relative;
    text-decoration: none;
}

.user-actions a:hover {
    color: var(--rosa-mexicano);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background: var(--rosa-mexicano);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
}

/* ========== HERO BANNER ========== */
.hero-rosa {
    height: 85vh;
    min-height: 600px;
    background: url('../imagenes/banner/hero-joyeria-rosa.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(229, 0, 126, 0.3), rgba(0,0,0,0.2));
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-titulo {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.hero-subtitulo {
    font-size: clamp(16px, 3vw, 22px);
    letter-spacing: 6px;
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-rosa-principal {
    background: var(--rosa-mexicano);
    color: white;
    border: 2px solid var(--rosa-mexicano);
    padding: 16px 45px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(229, 0, 126, 0.3);
}

.btn-rosa-principal:hover {
    background: transparent;
    color: var(--rosa-mexicano);
}

.btn-rosa-secundario {
    background: transparent;
    color: var(--rosa-mexicano);
    border: 2px solid var(--rosa-mexicano);
    padding: 14px 40px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s;
    text-decoration: none;
    display: inline-block;
}

.btn-rosa-secundario:hover {
    background: var(--rosa-mexicano);
    color: white;
}

/* ========== SECCIÓN VALORES ========== */
.valores {
    background: var(--blanco);
    padding: 50px 0;
    margin-top: -10px;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.valor-item i {
    font-size: 42px;
    color: var(--rosa-mexicano);
    margin-bottom: 20px;
}

.valor-item h4 {
    font-size: 22px;
    margin-bottom: 10px;
}

.valor-item p {
    color: var(--texto-claro);
    font-size: 14px;
}

/* ========== SECCIONES ========== */
.section-header {
    text-align: center;
    margin: 70px 0 50px;
}

.section-titulo {
    font-size: clamp(32px, 6vw, 48px);
    color: var(--rosa-oscuro);
    margin-bottom: 15px;
}

.section-linea-rosa {
    width: 80px;
    height: 3px;
    background: var(--rosa-mexicano);
    margin: 0 auto 15px;
}

.section-subtitulo {
    color: var(--texto-claro);
    font-size: 16px;
    letter-spacing: 2px;
}

/* ========== CATEGORÍAS ========== */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.categoria-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.categoria-card:hover {
    transform: translateY(-8px);
}

.categoria-img {
    height: 350px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    position: relative;
    box-shadow: var(--sombra-suave);
}

.categoria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(229,0,126,0.1), transparent);
}

.categoria-card h4 {
    font-size: 26px;
    margin-bottom: 5px;
    color: var(--rosa-oscuro);
}

.categoria-card p {
    color: var(--texto-claro);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
}

/* ========== PRODUCTOS ========== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px 25px;
    margin-bottom: 50px;
}

.producto-card {
    background: var(--blanco);
    box-shadow: var(--sombra-suave);
    transition: all 0.3s;
    border-radius: 8px;
    overflow: hidden;
}

.producto-card:hover {
    box-shadow: 0 15px 40px rgba(229, 0, 126, 0.12);
}

.producto-img {
    height: 320px;
    position: relative;
    overflow: hidden;
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.producto-card:hover .producto-img img {
    transform: scale(1.05);
}

.badge-nuevo, .badge-oferta, .badge-top {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: white;
    z-index: 5;
    border-radius: 4px;
}

.badge-nuevo { background: var(--rosa-mexicano); }
.badge-oferta { background: #E74C3C; }
.badge-top { background: var(--oro-metalico); color: #2C2C2C; }

.producto-info {
    padding: 25px 20px;
    text-align: center;
}

.producto-titulo {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.producto-titulo a {
    text-decoration: none;
    color: var(--texto-oscuro);
}

.producto-precio {
    color: var(--rosa-oscuro);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.producto-precio del {
    color: #aaa;
    font-weight: 400;
    font-size: 16px;
    margin-right: 8px;
}

.btn-agregar {
    background: transparent;
    border: 1.5px solid var(--rosa-mexicano);
    color: var(--rosa-mexicano);
    padding: 10px 25px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    width: 100%;
    border-radius: 4px;
}

.btn-agregar:hover {
    background: var(--rosa-mexicano);
    color: white;
}

.ver-tienda {
    text-align: center;
    margin: 20px 0 70px;
}

/* ========== SOBRE NOSOTROS ========== */
.sobre-nosotros {
    background: var(--blanco);
    padding: 80px 0;
    margin: 40px 0;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-texto h3 {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 25px;
    color: var(--rosa-oscuro);
}

.sobre-texto h3 span {
    color: var(--rosa-mexicano);
    font-style: italic;
}

.sobre-texto p {
    margin-bottom: 20px;
    color: var(--texto-claro);
}

.sobre-imagen img {
    width: 100%;
    height: auto;
    box-shadow: var(--sombra-suave);
    border: 5px solid white;
    border-radius: 8px;
}

/* ========== NEWSLETTER ========== */
.newsletter-rosa {
    background: linear-gradient(135deg, var(--rosa-claro) 0%, var(--rosa-fondo) 100%);
    padding: 70px 0;
    text-align: center;
    margin: 50px 0 0;
}

.newsletter-rosa h3 {
    font-size: clamp(28px, 5vw, 38px);
    color: var(--rosa-oscuro);
    margin-bottom: 15px;
}

.newsletter-rosa p {
    color: #555;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 550px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(229,0,126,0.15);
}

.newsletter-form input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 15px;
    background: white;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    border: none;
    box-shadow: none;
    padding: 18px 35px;
    border-radius: 0 4px 4px 0;
}

.newsletter-nota {
    font-size: 12px;
    margin-top: 20px;
    color: var(--rosa-oscuro);
}

/* ========== FOOTER ========== */
footer {
    background: #1F1A1C;
    color: #E0D8DB;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h5 {
    color: white;
    font-size: 18px;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a,
.footer-col p {
    color: #B0A7AA;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--rosa-mexicano);
}

.contacto-info i {
    margin-right: 10px;
    color: var(--rosa-mexicano);
    width: 18px;
}

.redes-sociales {
    display: flex;
    gap: 18px;
    margin-top: 20px;
}

.redes-sociales a {
    color: #B0A7AA;
    font-size: 20px;
    transition: color 0.3s;
}

.redes-sociales a:hover {
    color: var(--rosa-mexicano);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #3A2E32;
    color: #8A7E82;
    font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
    }
    
    .nav-menu {
        gap: 20px;
        justify-content: center;
    }
    
    .sobre-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px 4px 0 0;
    }
    
    .newsletter-form button {
        border-radius: 0 0 4px 4px;
    }
}