/* ========================================
   COSMOS MINIMAL STYLE
   Negro, blanco, grises - Sin colores
======================================== */

:root {
    --bg-color: #000;
    --text-color: #fff;
    --secondary-bg: #0a0a0a;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    --text-secondary: rgba(255, 255, 255, 0.5);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --primary-color: #fff;
}

body.light-mode {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --secondary-bg: #f5f5f5;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(0, 0, 0, 0.2);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-tertiary: rgba(0, 0, 0, 0.4);
    --primary-color: #000;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========================================
   HEADER
======================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    gap: 20px;
}

body.light-mode header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.logo {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.3px;
    color: var(--text-color);
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-img:hover {
    opacity: 0.8;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    font-weight: 400;
}

nav a:hover {
    color: var(--text-color);
}

/* ========================================
   THEME TOGGLE BUTTON
======================================== */

.theme-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: auto;
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    transform: rotate(180deg);
}

.theme-toggle svg {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.theme-toggle:hover svg {
    color: var(--bg-color);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

body.light-mode .sun-icon {
    display: block;
}

body.light-mode .moon-icon {
    display: none;
}

/* ========================================
   HERO
======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 40px 80px;
    text-align: center;
}

.hero-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 400;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: -2px;
    line-height: 1.1;
    max-width: 900px;
    color: var(--text-color);
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 60px;
    line-height: 1.7;
    font-weight: 300;
}

/* ========================================
   IMAGE GALLERY (ESTILO COSMOS)
======================================== */

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    padding: 60px 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--secondary-bg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    aspect-ratio: 4/5;
}

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

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

/* Título overlay minimalista */
.gallery-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

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

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

/* ========================================
   PLACEHOLDER IMAGES
======================================== */

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--secondary-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 13px;
    text-align: center;
    padding: 20px;
    font-weight: 300;
    letter-spacing: 0.3px;
    border: 1px solid var(--border-color);
}

/* ========================================
   SECTIONS
======================================== */

section {
    padding: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    text-align: center;
    color: var(--text-color);
}

.section-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
    font-weight: 300;
    line-height: 1.7;
}

/* ========================================
   QUOTE SECTION (ESTILO COSMOS)
======================================== */

.quote-section {
    padding: 150px 40px;
    text-align: center;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: var(--text-secondary);
    letter-spacing: -0.5px;
}

/* ========================================
   FEATURES SIMPLE
======================================== */

.features-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 80px;
}

.feature-simple h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    color: var(--text-color);
}

.feature-simple p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
}

/* ========================================
   GALLERY SECTION
======================================== */

.gallery-section {
    padding: 80px 40px;
}

/* ========================================
   HOW IT WORKS
======================================== */

.how-section {
    background: var(--secondary-bg);
    border-radius: 0;
    padding: 120px 40px;
    max-width: 100%;
}

.process-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-top: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

.process-number {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 400;
    margin: 0 auto 24px;
    color: var(--text-secondary);
}

.process-item h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    color: var(--text-color);
}

.process-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
}

/* ========================================
   MODULES
======================================== */

.modules-section {
    padding: 120px 40px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.module-item {
    padding: 40px;
    background: var(--secondary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.module-item:hover {
    border-color: var(--border-color-hover);
}

.module-item h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    color: var(--text-color);
}

.module-label {
    display: inline-block;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.module-item ul {
    list-style: none;
}

.module-item li {
    padding: 12px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
}

.module-item li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

/* ========================================
   BENEFITS
======================================== */

.benefits-section {
    padding: 120px 40px;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 80px;
}

.benefit h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    color: var(--text-color);
}

.benefit p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
}

/* ========================================
   INTEGRATIONS
======================================== */

.integrations-section {
    padding: 120px 40px;
    background: var(--secondary-bg);
    max-width: 100%;
}

.integrations-simple {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.integration {
    padding: 16px 32px;
    border: 1px solid var(--border-color-hover);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    transition: all 0.3s ease;
}

.integration:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

.integration-note {
    text-align: center;
    margin-top: 60px;
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 300;
}

/* ========================================
   USE CASES
======================================== */

.cases-section {
    padding: 120px 40px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.case-item h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    color: var(--text-color);
}

.case-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
}

/* ========================================
   FAQ
======================================== */

.faq-section {
    padding: 120px 40px;
    background: var(--secondary-bg);
    max-width: 100%;
}

.faq-list {
    max-width: 800px;
    margin: 80px auto 0;
}

.faq {
    border-bottom: 1px solid var(--border-color);
    padding: 32px 0;
}

.faq summary {
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    list-style: none;
    letter-spacing: -0.3px;
    padding-right: 30px;
    position: relative;
    color: var(--text-color);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary:after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 24px;
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq[open] summary:after {
    transform: rotate(45deg);
}

.faq p {
    padding-top: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    font-weight: 300;
}

/* ========================================
   CTA SECTION
======================================== */

.cta-section {
    text-align: center;
    padding: 150px 40px;
}

.cta-section h2 {
    font-size: clamp(36px, 5vw, 64px);
    margin-bottom: 24px;
}

.cta-section > p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-weight: 400;
    display: inline-block;
}

.btn-primary {
    background: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color-hover);
}

.btn-secondary:hover {
    border-color: var(--text-color);
}

/* ========================================
   FOOTER
======================================== */

footer {
    padding: 100px 40px 60px;
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-brand h3 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    color: var(--text-color);
}

.footer-brand p {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
    max-width: 400px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col a {
    display: block;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-col a:hover {
    color: var(--text-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 300;
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 24px;
    }

    nav {
        gap: 20px;
    }

    nav a {
        font-size: 14px;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    section {
        padding: 80px 24px;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        padding: 40px 24px;
    }

    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .features-simple,
    .process-simple,
    .modules-grid,
    .benefits-list,
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .integrations-simple {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
        margin: 0 auto;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    section h2 {
        font-size: 28px;
    }

    .logo {
        font-size: 14px;
    }

    nav {
        gap: 16px;
    }

    nav a {
        font-size: 13px;
    }
}

/* ========================================
   SMOOTH TRANSITIONS
======================================== */

a, button, .gallery-item, .module-item, .integration {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   WHATSAPP FLOTANTE
======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Animación de pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    animation: none;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL
======================================== */

@media (max-width: 768px) {
    header {
        padding: 20px 20px;
    }
    
    .logo-img {
        height: 44px; /* Logo más pequeño en móvil */
    }
    
    nav {
        gap: 15px; /* Menos espacio entre links */
    }
    
    nav a {
        font-size: 13px; /* Texto más pequeño */
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 15px;
    }
    
    .logo-img {
        height: 40px; /* Aún más pequeño en pantallas muy chicas */
    }
    
    nav {
        gap: 12px;
    }
    
    nav a {
        font-size: 12px;
    }
}