/* Variables CSS */
:root {
    /* Paleta de colores - Fucsia vibrante, oscuro elegante y toques de brillo */
    --color-primary: #e61c77;
    /* Fucsia principal */
    --color-primary-dark: #b8125d;
    --color-primary-light: #ff4d9c;
    --color-primary-glow: rgba(230, 28, 119, 0.4);

    --color-bg-dark: #0f0f11;
    --color-bg-card: #18181b;
    --color-bg-footer: #0a0a0c;

    --color-text-main: #fcfcfc;
    --color-text-muted: #a1a1aa;

    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #128C7E;

    --color-mercadolibre: #FFF159;
    --color-mercadolibre-text: #2d3277;

    /* Tipografía */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Transiciones y Sombras */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-glow: 0 0 20px var(--color-primary-glow);
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

#bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

/* Elevate sections over the background animation */
.navbar, .hero, .about-section, .instagram-section, .footer {
    position: relative;
    z-index: 10;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 15, 17, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.nav-logo {
    height: 75px;
    width: auto;
    transition: var(--transition);
    /* Filtro para que el SVG fucsia destaque en fondo oscuro si es necesario */
}

.nav-logo:hover {
    filter: drop-shadow(0 0 8px var(--color-primary-glow));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn-outline)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-links a:not(.btn-outline):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-primary-light);
}

.btn-outline {
    border: 1px solid var(--color-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

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

/* Mobile Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(15, 15, 17, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.mobile-menu-overlay.active {
    transform: translateY(0);
    opacity: 1;
}

.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--color-text-main);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-links a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    gap: 4rem;
    position: relative;
}

/* Textura foamy/brillitos sutil en el fondo */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23e61c77" fill-opacity="0.03" fill-rule="evenodd"%3E%3Ccircle cx="3" cy="3" r="1"/%3E%3Ccircle cx="13" cy="13" r="1"/%3E%3C/g%3E%3C/svg%3E');
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeUp 1s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 5px;
    left: 0;
    background-color: var(--color-primary-glow);
    z-index: -1;
    transform: skew(-15deg);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    width: 100%;
    max-width: 350px;
}

/* Botón Mercado Libre */
.btn-primary {
    background-color: var(--color-mercadolibre);
    color: var(--color-mercadolibre-text);
    box-shadow: 0 4px 15px rgba(255, 241, 89, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 241, 89, 0.3);
}

/* Botón WhatsApp */
.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.2s ease-out;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    z-index: 2;
    object-fit: cover;
    aspect-ratio: 4/5;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(230, 28, 119, 0.2);
}

.glow-effect {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(15, 15, 17, 0) 70%);
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
}

/* Sections Generales */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: -2rem auto 3rem;
}

/* Beneficios Section */
.benefits-section {
    padding: 6rem 2rem;
    background-color: var(--color-bg-card);
    position: relative;
}

.benefits-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.benefit-card {
    background-color: var(--color-bg-dark);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 28, 119, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.benefit-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Instagram Section */
.instagram-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.insta-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

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

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(230, 28, 119, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.insta-overlay i {
    font-size: 3rem;
    color: #fff;
    transform: scale(0.5);
    transition: var(--transition);
}

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

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

.insta-item:hover .insta-overlay i {
    transform: scale(1);
}

.instagram-action {
    text-align: center;
}

.instagram-btn {
    border-color: var(--color-primary);
    color: #fff;
    background: transparent;
    padding: 0.8rem 2rem;
}

.instagram-btn:hover {
    background: var(--color-primary);
}

/* Footer */
.footer {
    background-color: var(--color-bg-footer);
    padding: 4rem 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-main);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Brand Banner Section */
.brand-banner-section {
    position: relative;
    z-index: 10;
    background: linear-gradient(90deg, rgba(15,15,17,0.95) 0%, rgba(230,28,119,0.1) 50%, rgba(15,15,17,0.95) 100%);
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    margin-top: 2rem;
    text-align: center;
}

.brand-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.brand-banner-content h3 {
    font-size: 1.1rem;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 500;
}

.banner-image-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

.pink-mask-banner {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(230, 28, 119, 0.2));
    transition: transform 0.4s ease;
}

.pink-mask-banner:hover {
    transform: scale(1.05);
}

/* Quiénes Somos Section */
.about-section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-image {
    transform: translateY(-10px) rotate(2deg);
}

.paint-splash-effect {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 60%);
    filter: blur(30px);
    z-index: 1;
    border-radius: 50%;
    animation: pulseGlow 4s infinite alternate;
}

.about-content {
    flex: 1;
}

.text-left {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-story p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-main);
    background-color: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.highlight-marker {
    background: linear-gradient(104deg, rgba(230, 28, 119, 0) 1%, rgba(230, 28, 119, 0.7) 3%, rgba(230, 28, 119, 0.8) 10%, rgba(230, 28, 119, 0.8) 90%, rgba(230, 28, 119, 0.7) 97%, rgba(230, 28, 119, 0) 100%);
    color: #fff;
    font-weight: bold;
    padding: 0.1em 0.3em;
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Paint Spill Effect para el Hero */
.logo-hero {
    box-shadow: 0 15px 40px rgba(230, 28, 119, 0.3);
}

.paint-spill {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background-color: var(--color-primary);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 3;
    animation: morphSpill 8s ease-in-out infinite alternate;
    mix-blend-mode: screen;
    box-shadow: inset 10px 10px 20px rgba(255,255,255,0.2), 0 0 30px var(--color-primary);
    opacity: 0.8;
}

.paint-spill::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 20px;
    width: 50px;
    height: 80px;
    background-color: var(--color-primary);
    border-radius: 50%;
    filter: blur(5px);
    animation: drip 3s infinite ease-in;
}

/* Animaciones */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-buttons {
        width: 100%;
        align-items: center;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .about-image-wrapper {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
    }

    .about-image {
        max-width: 80%;
        width: 100%;
    }

    .text-left {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }
}