/* 
 * style.css
 * Hoja de estilos global para Producciones Jrobot.
 * Paleta de colores: Azul Rey, Blanco, Negro.
 */

/* VARIABLES DE DISEÑO SYSTEM */
:root {
    --bg-main: #050609;
    --bg-panel: #0b0d16;
    --bg-card: #121524;
    --primary: #0053b3;
    --primary-light: #1e70e6;
    --primary-dark: #003b80;
    --text-white: #ffffff;
    --text-silver: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 83, 179, 0.4);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Syne', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
}

/* RESET GENERAL */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-silver);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* TIPOGRAFÍA */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ESTRUCTURA & CONTENEDOR */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* HEADER & NAVBAR */
.header {
    background-color: rgba(5, 6, 9, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-scrolled {
    padding: 0.5rem 0;
    background-color: rgba(5, 6, 9, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-white);
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-link.active {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 4px;
}

.btn-contact-header {
    display: none;
    background-color: var(--primary);
    color: var(--text-white);
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (min-width: 992px) {
    .btn-contact-header {
        display: inline-block;
    }
}

.btn-contact-header:hover {
    background-color: var(--primary-light);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: radial-gradient(circle at 80% 20%, rgba(0, 83, 179, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(11, 13, 22, 0.5) 0%, transparent 50%);
    position: relative;
}

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

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    padding: 0.85rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 0.85rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-white);
    transform: translateY(-2px);
}

/* TRAYECTORIA / PAÍSES */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .countries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .countries-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.country-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
}

.country-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.country-flag {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.country-name {
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1rem;
}

/* SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    flex-grow: 1;
}

/* SECCIÓN MÚSICA & IA (HÍBRIDO) */
.hybrid-banner {
    background: linear-gradient(135deg, #0b0d16 0%, #121524 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    margin-top: 4rem;
}

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

@media (min-width: 992px) {
    .hybrid-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hybrid-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.hybrid-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.hybrid-badge {
    background-color: rgba(0, 83, 179, 0.15);
    border: 1px solid var(--primary);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* GALERÍA DE TIKTOK (PORTAFOLIO) */
.tiktok-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .tiktok-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .tiktok-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tiktok-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.tiktok-card:hover {
    border-color: var(--primary);
}

.tiktok-embed-container {
    width: 100%;
    background-color: #000;
    position: relative;
    /* Aspecto recomendado para TikTok embeds */
    height: 520px;
}

.tiktok-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.tiktok-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.tiktok-review {
    color: var(--text-silver);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.tiktok-link-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.tiktok-link-badge:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* SECCIÓN CONFIANZA / SOBRE NOSOTROS */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.trust-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.trust-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-light);
    font-weight: 800;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* PIE DE PÁGINA (FOOTER) */
.footer {
    background-color: #020305;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-about p {
    color: var(--text-muted);
    max-width: 400px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
}

.social-icon:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

/* MOBILE NAV TOGGLE */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* BOTÓN DE WHATSAPP FLOTANTE */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    font-size: 1.8rem;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}
