/* ========================================
   NeoGame Digital - Estilo Vibrante y Dinámico
   ======================================== */

/* Variables CSS - Nueva Paleta */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #f97316;
    --secondary-dark: #ea580c;
    --secondary-light: #fb923c;
    --accent: #10b981;
    --accent-dark: #059669;
    --background: #fafafa;
    --surface: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-btn: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

/* Contenedor */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Header y Navegación
   ======================================== */

.header {
    background-color: var(--surface);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 130px;
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.02);
}

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

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-btn);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

/* Botón CTA en navegación */
.nav-cta {
    background: var(--gradient-btn);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Menú hamburguesa */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    position: relative;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Overlay del menú móvil */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    background: var(--gradient-hero);
    color: var(--surface);
    padding: 10rem 0 6rem;
    margin-top: 102px;
    position: relative;
    overflow: hidden;
}

/* Hero con imagen de fondo */
.hero.hero-with-image {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.85) 50%, rgba(168, 85, 247, 0.9) 100%),
                url('../imagenes/hero-bg.jpg') center/cover no-repeat;
}

/* Formas decorativas del hero */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
}

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

/* ========================================
   Botones
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-btn);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn-secondary:hover,
.btn-secondary:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ========================================
   Sección Servicios
   ======================================== */

.servicios {
    padding: 6rem 0;
    background-color: var(--surface);
}

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

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

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

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.servicio-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.servicio-card:hover::before {
    transform: scaleX(1);
}

.servicio-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-hero);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.servicio-card:hover .servicio-icon {
    transform: scale(1.05) rotate(3deg);
}

.servicio-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

/* Iconos emoji */
.servicio-icon {
    font-size: 2.25rem;
    color: white;
    line-height: 1;
}

.servicio-card h3 {
    color: var(--text);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.servicio-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========================================
   Sección CTA
   ======================================== */

.cta,
.cta-section {
    padding: 5rem 0;
    background: var(--background);
}

.cta-box {
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.cta-box h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--text);
    color: var(--surface);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-section h3,
.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--secondary);
}

.footer-links {
    list-style: none;
}

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

.footer-links a,
.footer-contact a {
    color: var(--surface);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-links span {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

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

.footer-social a {
    color: white;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    color: var(--secondary);
}

/* Enlace oculto admin */
.admin-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ========================================
   PÁGINA DE CONTACTO
   ======================================== */

/* Hero Contacto */
.contacto-hero {
    background: var(--gradient-hero);
    color: var(--surface);
    padding: 8rem 0 4rem;
    margin-top: 102px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contacto-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.contacto-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.contacto-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Sección Contacto */
.contacto-section {
    padding: 5rem 0;
    background-color: var(--surface);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

/* Formulario */
.contacto-form-wrapper {
    background-color: var(--background);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group .required {
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--surface);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group select {
    cursor: pointer;
}

.btn-block {
    width: 100%;
}

/* Alertas */
.alerta {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.alerta-exito {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-dark);
    border: 1px solid var(--accent);
}

.alerta-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* Info de contacto */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background-color: var(--background);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.info-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-icon {
    color: var(--secondary);
    font-size: 1.1rem;
}

.info-list a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.info-list a:hover {
    color: var(--primary);
}

.info-list strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.25rem;
}

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

.info-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}

/* Cloudflare Turnstile */
.cf-turnstile {
    margin: 0.5rem 0;
}

/* ========================================
   RESPONSIVE - TABLET (max-width: 992px)
   ======================================== */

@media (max-width: 992px) {
    .hero {
        padding: 8rem 0 5rem;
    }

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

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

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

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

    .contacto-info {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .info-card {
        flex: 1;
        min-width: 280px;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
    /* Header */
    .logo-img {
        height: 55px;
    }

    .header .container {
        padding: 0 1rem;
    }

    .nav {
        padding: 0.75rem 0;
    }

    .nav-toggle {
        display: block;
        padding: 0.75rem;
        margin-right: -0.75rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--surface);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border);
    }

    .nav-link {
        display: block;
        padding: 1.25rem 0;
        font-size: 1.1rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin-top: 1.5rem;
        text-align: center;
        display: block;
    }

    .nav-toggle {
        z-index: 1001;
    }

    .nav-toggle[aria-expanded="true"] .hamburger {
        background-color: transparent;
    }

    .nav-toggle[aria-expanded="true"] .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Hero */
    .hero {
        padding: 6rem 0 4rem;
        margin-top: 83px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .servicios {
        padding: 4rem 0;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .servicio-card {
        padding: 1.75rem;
    }

    .servicio-icon {
        width: 65px;
        height: 65px;
        border-radius: 14px;
    }

    .servicio-icon svg {
        width: 32px;
        height: 32px;
    }

    /* CTA */
    .cta-section {
        padding: 3rem 0;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
        border-radius: var(--radius);
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Contacto */
    .contacto-hero {
        padding: 6rem 0 3rem;
        margin-top: 83px;
    }

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

    .contacto-subtitle {
        font-size: 1rem;
    }

    .contacto-section {
        padding: 3rem 0;
    }

    .contacto-form-wrapper {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem 1rem;
        font-size: 16px;
    }

    .info-card {
        padding: 1.5rem;
    }

    .contacto-info {
        flex-direction: column;
    }

    .info-card {
        min-width: auto;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL PEQUEÑO (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 5rem 0 3rem;
    }

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

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

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

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

    .servicio-card {
        padding: 1.5rem;
    }

    .servicio-card h3 {
        font-size: 1.1rem;
    }

    .servicio-card p {
        font-size: 0.9rem;
    }

    .cta-box h2 {
        font-size: 1.35rem;
    }

    .contacto-title {
        font-size: 1.5rem;
    }

    .contacto-form-wrapper {
        padding: 1.25rem;
    }
}

/* ========================================
   MEJORAS DE ACCESIBILIDAD
   ======================================== */

@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 0.75rem 0;
    }

    .btn {
        min-height: 48px;
    }

    .servicio-card:hover {
        transform: none;
    }

    .servicio-card:hover .servicio-icon {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }
}

/* ========================================
   ORIENTACIÓN HORIZONTAL MÓVIL
   ======================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 4rem 0 3rem;
        margin-top: 70px;
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .nav-menu {
        padding-top: 4rem;
        overflow-y: auto;
    }

    .contacto-hero {
        padding: 4rem 0 2rem;
        margin-top: 70px;
    }
}

/* ========================================
   SECCIÓN NUESTRAS APPS (home)
   ======================================== */

.apps-section {
    padding: 6rem 0;
    background-color: var(--background);
}

.app-destacada {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    transition: var(--transition);
}

.app-destacada:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.app-destacada-icono {
    width: 112px;
    height: 112px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.app-destacada-info h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.app-destacada-claim {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.app-destacada-info > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.app-destacada-meta {
    list-style: none;
    margin-bottom: 2rem;
}

.app-destacada-meta li {
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

.app-destacada-meta li strong {
    color: var(--text);
}

.app-destacada-acciones {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-destacada-visual {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

.app-destacada-visual img {
    width: 46%;
    max-width: 230px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.app-destacada-visual img:last-child {
    transform: translateY(1.5rem);
}

/* ========================================
   TRABAJOS REALIZADOS (home)
   ======================================== */

.trabajos-section {
    padding: 6rem 0;
    background-color: var(--surface);
}

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

.trabajo-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.trabajo-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.trabajo-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.trabajo-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.trabajo-logo-texto {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.trabajo-logo-ai {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.trabajo-logo-lc {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.trabajo-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    display: inline-block;
}

.trabajo-tag-live {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-dark);
}

.trabajo-tag-dev {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-dark);
}

.trabajo-tag-beta {
    background: rgba(249, 115, 22, 0.12);
    color: var(--secondary-dark);
}

.trabajo-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.trabajo-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.trabajo-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trabajo-chips li {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.8rem;
}

.trabajos-acciones {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.trabajo-detalle-head {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.trabajo-detalle-head img {
    border-radius: 20px;
    flex-shrink: 0;
}

.trabajo-detalle-head .trabajo-logo-texto {
    border-radius: 20px;
}

.app-capturas-web {
    max-width: 1140px;
}

.app-capturas-web img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top center;
    background: var(--surface);
    border: 1px solid var(--border);
}

/* ========================================
   PÁGINAS DE APP (Sagacia)
   ======================================== */

.app-hero {
    background: var(--gradient-hero);
    color: var(--surface);
    padding: 8rem 0 4rem;
    margin-top: 102px;
    position: relative;
    overflow: hidden;
}

.app-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.app-hero .container {
    position: relative;
    z-index: 1;
}

.app-hero-compacto {
    padding: 8rem 0 3.5rem;
    text-align: center;
}

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

.app-hero-icono {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 1.5rem;
    display: block;
}

.app-hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0.75rem 0 0.5rem;
}

.app-hero-claim {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.app-hero-desc {
    font-size: 1.05rem;
    opacity: 0.95;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.app-hero-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-hero-badges span {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.app-hero-visual img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.app-section {
    padding: 5rem 0;
    background-color: var(--surface);
}

.app-section-alt {
    background-color: var(--background);
}

.app-contenido {
    max-width: 820px;
    margin: 0 auto;
}

.app-contenido .section-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.app-contenido h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 2rem 0 0.75rem;
}

.app-contenido p {
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.app-lista {
    list-style: none;
    margin-bottom: 1rem;
}

.app-lista li {
    color: var(--text-light);
    line-height: 1.8;
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
}

.app-lista li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-accent);
}

.app-lista li strong {
    color: var(--text);
}

/* Capturas */
.app-capturas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 880px;
    margin: 0 auto;
}

.app-capturas figure {
    margin: 0;
    text-align: center;
}

.app-capturas img {
    width: 100%;
    /* Todas las capturas se sirven en 9:16, pero el móvil puede dar 1:2 (1080x2160)
       si se recortan las barras del sistema. Fijar la proporción evita que una tanda
       con otra medida descuadre la fila y su pie de foto. */
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.app-capturas img:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.app-capturas figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Tabla de ficha técnica */
.app-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}

.app-tabla th,
.app-tabla td {
    text-align: left;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.app-tabla th {
    width: 34%;
    color: var(--text);
    font-weight: 600;
    background: var(--background);
}

.app-tabla td {
    color: var(--text-light);
}

.app-tabla a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.app-tabla a:hover {
    text-decoration: underline;
}

/* Páginas legales y de soporte */
.app-legal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 2.5rem 0 1rem;
}

.app-legal h2:first-of-type {
    margin-top: 0;
}

.app-legal h3 {
    font-size: 1.1rem;
}

.app-legal ul,
.app-legal ol {
    color: var(--text-light);
    line-height: 1.85;
    margin: 0 0 1rem 1.25rem;
}

.app-legal li {
    margin-bottom: 0.5rem;
}

.app-legal a {
    color: var(--primary);
    font-weight: 500;
}

.app-legal-fecha {
    color: var(--text-light);
    font-size: 0.92rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem !important;
}

/* Responsive apps */
@media (min-width: 993px) and (max-width: 1199px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .app-destacada,
    .app-hero-grid {
        grid-template-columns: 1fr;
    }

    .trabajos-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .app-capturas.app-capturas-web {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-destacada {
        padding: 2rem;
    }

    .app-hero-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .apps-section,
    .trabajos-section,
    .app-section {
        padding: 3.5rem 0;
    }

    .app-capturas.app-capturas-web {
        grid-template-columns: 1fr;
    }

    .trabajo-detalle-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .trabajos-acciones .btn {
        width: 100%;
    }

    .app-hero {
        padding: 6rem 0 3rem;
        margin-top: 70px;
    }

    .app-hero-compacto {
        padding: 6rem 0 2.5rem;
    }

    .app-hero-title {
        font-size: 2.25rem;
    }

    .app-hero-icono {
        width: 96px;
        height: 96px;
    }

    .app-contenido .section-title {
        font-size: 1.6rem;
    }

    .app-capturas {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .app-tabla th,
    .app-tabla td {
        display: block;
        width: 100%;
        border-bottom: none;
        padding: 0.5rem 0.75rem;
    }

    .app-tabla td {
        border-bottom: 1px solid var(--border);
        padding-bottom: 0.9rem;
    }

    .app-destacada-acciones .btn {
        width: 100%;
    }
}
