/* ============================================
   Variables y Reset - Branding Gadalab
   Lila, violeta blando, gris
   ============================================ */
:root {
    /* Paleta Gadalab */
    --gadalab-lila: #826689;
    --gadalab-lila-soft: #9B8FAB;
    --gadalab-violeta: #7A6B8A;
    --gadalab-gris: #5C5C5C;
    --gadalab-gris-soft: #8E8E8E;
    --gadalab-bg: #F5F3F7;
    /* Uso */
    --primary-color: var(--gadalab-lila);
    --primary-dark: var(--gadalab-violeta);
    --secondary-color: var(--gadalab-gris-soft);
    --accent-color: var(--gadalab-lila-soft);
    --text-dark: var(--gadalab-gris);
    --text-light: var(--gadalab-gris-soft);
    --bg-light: var(--gadalab-bg);
    --bg-white: #ffffff;
    --border-color: rgba(139, 123, 158, 0.2);
    --shadow-sm: 0 1px 2px 0 rgba(90, 80, 100, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(90, 80, 100, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(90, 80, 100, 0.12);
    --shadow-xl: 0 20px 25px -5px rgba(90, 80, 100, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation - Gadalab
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(139, 123, 158, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo:hover img {
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   Hero Section - Gadalab
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gadalab-violeta) 0%, var(--gadalab-lila) 100%);
    color: var(--bg-white);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.4;
    filter: contrast(1.02) saturate(0.85) brightness(0.85);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(255,255,255,0.06) 0%, transparent 50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(122, 107, 138, 0.5) 0%, rgba(130, 102, 137, 0.88) 60%, rgba(122, 107, 138, 0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    margin-bottom: 1rem;
}

.hero-logo img {
    height: 72px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.88);
}

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

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    z-index: 3;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Productos Section
   ============================================ */
.productos-section {
    background: var(--bg-light);
}

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

.producto-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.producto-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--gadalab-lila), var(--gadalab-lila-soft));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 2rem;
    transition: var(--transition);
}

.producto-card:hover .producto-icon {
    transform: scale(1.1);
}

.producto-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.producto-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Nosotros Section
   ============================================ */
.nosotros-section {
    background: var(--bg-white);
}

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

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

.nosotros-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.8;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.feature-item span {
    color: var(--text-dark);
    font-weight: 500;
}

.nosotros-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--gadalab-lila), var(--gadalab-lila-soft));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 4rem;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Novedades Section
   ============================================ */
.novedades-section {
    background: var(--bg-light);
}

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

.novedad-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.novedad-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.novedad-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.novedad-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.novedad-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   KINETIC Detalle & Recursos
   ============================================ */
.kinetic-detalle-section {
    background: var(--bg-white);
}

.kinetic-detalle-grid {
    display: grid;
    grid-template-columns: 2fr 1.4fr;
    gap: 3rem;
    align-items: flex-start;
}

.kinetic-detalle-text h3,
.sillon-detalle h3,
.sillon-detalle h4,
.recursos-kinetic-section h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.kinetic-detalle-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.kinetic-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.5rem 0;
}

.kinetic-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.7;
}

.kinetic-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

.sillon-detalle p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.sillon-detalle-media figure {
    margin: 1.5rem 0 0;
}

.sillon-detalle-media img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: block;
}

.sillon-detalle-media figcaption {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.recursos-kinetic-section {
    background: var(--bg-light);
}

.recursos-kinetic-content {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 3rem;
    align-items: flex-start;
}

.recursos-descarga p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.recursos-referencias ul {
    margin-top: 0.5rem;
}

.recursos-referencias em {
    font-style: italic;
}

/* ============================================
   Galería KINETIC
   ============================================ */
.galeria-kinetic-section {
    background: var(--bg-white);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
}

.galeria-item {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.galeria-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.galeria-item figcaption {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ============================================
   Contacto Section
   ============================================ */
.contacto-section {
    background: var(--bg-white);
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gadalab-lila), var(--gadalab-lila-soft));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-text p {
    color: var(--text-light);
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(130, 102, 137, 0.15);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Footer - Gadalab
   ============================================ */
.footer {
    background: var(--gadalab-gris);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 2rem;
}

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

.footer-brand .footer-logo {
    display: block;
    margin-bottom: 0.75rem;
}

.footer-brand .footer-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-brand a[href] {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-brand a[href]:hover {
    color: var(--gadalab-lila-soft);
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--gadalab-lila-soft);
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--gadalab-lila-soft);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-white);
        border-top: 1px solid var(--border-color);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        gap: 1rem;
    }

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

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

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

    .hero-subtitle {
        font-size: 1.25rem;
    }

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

    .nosotros-content {
        grid-template-columns: 1fr;
    }

    .nosotros-features {
        grid-template-columns: 1fr;
    }

    .contacto-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 80vh;
        padding: 100px 0 60px;
    }

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

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

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

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ============================================
   Lightbox / Galería Modal
   ============================================ */
.lightbox-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.lightbox-modal.is-open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(4px);
}

.lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 1.5rem 3.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lightbox-figure {
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 65vh;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    object-fit: contain;
}

.lightbox-figure figcaption {
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-arrow {
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    flex-shrink: 0;
}

.lightbox-arrow:hover {
    background: var(--bg-light);
}

.lightbox-prev {
    margin-right: 0.5rem;
}

.lightbox-next {
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .lightbox-dialog {
        padding: 1rem 1.25rem 1.25rem;
        flex-direction: column;
        max-height: 90vh;
    }

    .lightbox-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-prev {
        left: 0.75rem;
        margin-right: 0;
    }

    .lightbox-next {
        right: 0.75rem;
        margin-left: 0;
    }
}
