/* =========================================================
   Tendencias más que moda - Estilos principales
   masquemoda.online
   ========================================================= */

:root {
    --primary: #8B2F5C;
    --primary-light: #B85C8A;
    --secondary: #7A9E7E;
    --accent: #D4A373;
    --dark: #2D2D2D;
    --light: #FAF7F2;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }


/* =========================================================
   HEADER + NAV
   ========================================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.logo-img-footer {
    height: 60px;
    /* Si tu logo no se ve bien sobre fondo oscuro, descomenta la siguiente línea
       para convertirlo a blanco: */
    /* filter: brightness(0) invert(1); */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-social { display: flex; gap: 1rem; }

.nav-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

.nav-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}


/* =========================================================
   HERO
   ========================================================= */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    background: linear-gradient(135deg, rgba(139,47,92,0.85) 0%, rgba(122,158,126,0.80) 100%),
                url('../fotos/1000101761.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
    opacity: 0.3;
}

@keyframes moveGrid {
    0% { transform: translate(0,0); }
    100% { transform: translate(50px,50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero h1 span {
    color: var(--accent);
    font-style: italic;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}


/* =========================================================
   SECCIONES GENERALES
   ========================================================= */
section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}


/* =========================================================
   ABOUT / NOSOTROS
   ========================================================= */
.about {
    background: white;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images { position: relative; }

.about-img-main {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: transform 0.5s;
}

.about-img-main:hover { transform: scale(1.02); }

.about-img-float {
    position: absolute;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border: 5px solid white;
}

.about-img-float.img-1 {
    bottom: -30px;
    right: -30px;
    animation: float 6s ease-in-out infinite;
}

.about-img-float.img-2 {
    top: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.about-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.feature-text p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}


/* =========================================================
   PRODUCTOS
   ========================================================= */
.products { background: var(--light); }

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.product-image {
    height: 320px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img { transform: scale(1.1); }

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info { padding: 1.5rem; }

.product-category {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin: 0.5rem 0;
    color: var(--dark);
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}


/* =========================================================
   GALERÍA
   ========================================================= */
.gallery { background: white; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide { grid-column: span 2; }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(139,47,92,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h3 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}


/* =========================================================
   SERVICIOS
   ========================================================= */
.services {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.services-inner {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services .section-title,
.services .section-subtitle { color: white; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s;
}

.service-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--primary);
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    opacity: 0.9;
    font-size: 0.95rem;
}


/* =========================================================
   TESTIMONIOS
   ========================================================= */
.testimonials { background: var(--light); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.author-info h4 {
    color: var(--dark);
    font-size: 1rem;
}

.author-info p {
    color: #888;
    font-size: 0.85rem;
}

.stars {
    color: #FFD700;
    margin-bottom: 1rem;
}


/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
    background: white;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.contact-info > p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 15px;
    transition: all 0.3s;
}

.contact-item:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.contact-text p,
.contact-text a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-text a:hover { color: var(--primary); }

.contact-map {
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    min-height: 500px;
    position: relative;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 500px;
    display: block;
}

.social-links-large {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links-large a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.social-links-large a:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(139,47,92,0.3);
}


/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #aaa;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #777;
    font-size: 0.9rem;
}

.footer-social { display: flex; gap: 1rem; }

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}


/* =========================================================
   ANIMACIONES
   ========================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   MENÚ MÓVIL
   ========================================================= */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 2000;
    padding: 2rem;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-menu.active { right: 0; }

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.mobile-menu-links {
    list-style: none;
    margin-top: 3rem;
}

.mobile-menu-links li { margin-bottom: 1.5rem; }

.mobile-menu-links a {
    text-decoration: none;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 500;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablets */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid { grid-template-columns: 1fr; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

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

/* Móviles */
@media (max-width: 768px) {
    nav { padding: 1rem 1.2rem; }
    .nav-links { display: none; }
    .nav-social { display: none; }
    .mobile-menu-btn { display: block; }
    .logo-img { height: 42px; }

    .hero { min-height: 80vh; }
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1.05rem; }
    .hero-stats { gap: 1.5rem; margin-top: 2rem; }
    .stat-number { font-size: 1.8rem; }

    section { padding: 4rem 1.2rem; }
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; }

    .about-grid { gap: 3rem; }
    .about-img-float.img-1 {
        width: 130px;
        height: 130px;
        right: -10px;
        bottom: -15px;
    }
    .about-img-float.img-2 {
        width: 100px;
        height: 100px;
        left: -10px;
        top: -10px;
    }
    .about-features { grid-template-columns: 1fr; gap: 1rem; }
    .about-content h2 { font-size: 1.8rem; }

    .product-tabs { gap: 0.5rem; }
    .tab-btn { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .product-image { height: 200px; }
    .product-info { padding: 1rem; }
    .product-name { font-size: 1rem; }
    .product-price { font-size: 1.1rem; }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    .gallery-item.large,
    .gallery-item.wide { grid-column: span 1; }

    .services { padding: 4rem 1.2rem; }
    .services-grid { gap: 1.2rem; }
    .service-card { padding: 2rem 1.5rem; }

    .testimonials-grid { gap: 1.5rem; }
    .testimonial-card { padding: 2rem 1.5rem; }

    .contact-info h2 { font-size: 1.8rem; }
    .contact-item { padding: 1.2rem; }
    .contact-map { min-height: 350px; }
    .contact-map iframe { min-height: 350px; }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .footer-brand .footer-social,
    .footer-brand .logo {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}