/* style.css */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
  display: inline-flex;
  align-items: center; /* centra verticalmente el texto con el icono */
  gap: 6px; /* espacio entre icono y texto */
  text-decoration: none;
  color: black;
  font-weight: bold;
  
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="10" width="80" height="80" fill="%23007BFF"/><rect x="10" y="10" width="40" height="40" fill="%23A0D8FF"/></svg>');
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center left; /* centra verticalmente */
  padding-left: 30px; /* espacio para el icono */
  line-height: 1; /* evita desplazamiento vertical del fondo */
}


/* Typography */
h1, h2, h3, h4 {
    font-weight: 600; /* títulos fuertes */
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
    font-weight: 200; /* párrafos delgados */
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
    font-weight: 600; /* títulos fuertes */
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300; /* texto más delgado */
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--gray-light);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 30px; 
}

.header .container {
    padding: 0; 
    max-width: none; 
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 400;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Hero */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, #f6f8ff 0%, #fef7ff 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.2rem);
}

.hero-subtitle {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    color: var(--gray);
}

.hero-title,
.hero-subtitle {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}


.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.code-placeholder {
    background: var(--dark);
    color: #a5b4fc;
    padding: 2rem;
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.8;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.code-line {
    margin-bottom: 0.5rem;
}

.code-line.highlight {
    color: #5eead4;
    font-weight: bold;
}

/* Sections */
.section {
    padding: 5rem 0;
}

/* Value Grid */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* How It Works */
.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    position: relative;
}

.step-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0.25rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.1);
}

.feature-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark);
}

.feature-card h3 i {
    color: var(--primary);
}

/* For Whom */
.audience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.audience-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border-top: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Carousel */
.carousel-track-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 3rem;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.media-label {
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-weight: 500;
    font-size: 1.125rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 var(--radius) var(--radius);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-slide.video-slide {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.carousel-slide.video-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.prev { left: 1rem; }
.next { right: 1rem; }

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 1rem;
    width: 100%;
    z-index: 20;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Documentation */
.docs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.doc-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.doc-card:hover {
    border-color: var(--primary);
}

.doc-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.doc-link:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
}

.faq-item h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* Final CTA */
.final-cta {
    text-align: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.final-cta h2 {
    color: white;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.final-cta .btn-cta {
    background: white;
    color: var(--primary);
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

.final-cta .btn-cta:hover {
    background: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.note {
    font-size: 0.875rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.75rem;
    }
    h2 {
        font-size: 2.25rem;
    }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .menu-toggle {
        display: block;
    }
    .hero-cta {
        justify-content: center;
    }
    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        margin: 0 auto;
        padding-inline: 0;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 8rem;
    }

    .hero-subtitle {
        line-height: 1.5;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.25rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    .btn-large {
        width: 100%;
        text-align: center;
    }
    .hero-cta {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .carousel-track-container {
        margin: 0 10px 3rem;
        max-width: calc(100% - 20px);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .media-label {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Banner de Dominio Temporal */
.domain-notice {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
    padding: 12px 0;
    position: relative;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.domain-notice .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.domain-notice i.fa-exclamation-triangle {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.domain-notice span {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.domain-notice strong {
    font-weight: 600;
}

.domain-notice code {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

.domain-notice a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.domain-notice a:hover {
    opacity: 0.9;
}

.close-notice {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.close-notice:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Para ocultar el banner cuando se cierre */
.domain-notice.hidden {
    display: none;
}

.header.domain-notice-hidden {
    top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .domain-notice .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .domain-notice span {
        font-size: 0.85rem;
    }
    
    .close-notice {
        position: absolute;
        top: 10px;
        right: 20px;
    }
    
    .header {
        top: auto;
    }
}

.footer-notice {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-notice i {
    color: #60a5fa;
}