﻿:root {
    --primary: #005baa;
    --primary-dark: #00447f;
    --secondary: #00b894;
    --bg-light: #f5f7fb;
    --text-main: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

    .nav-links a {
        color: #4b5563;
    }

        .nav-links a:hover {
            color: var(--primary);
        }

.btn-small {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

    .btn-small:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
    }

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem 1rem;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 2rem 0 3rem 0;
}

.hero-title {
    font-size: clamp(2rem, 2.6vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #111827;
}

.hero-subtitle {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1.25rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--primary-dark);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.btn-primary {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

    .btn-primary:hover {
        background: var(--primary-dark);
    }

.btn-outline {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    font-size: 0.95rem;
    cursor: pointer;
}

    .btn-outline:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

.hero-note {
    font-size: 0.8rem;
    color: #6b7280;
}

.hero-card {
    background: var(--bg-light);
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.hero-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
}

.hero-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

    .hero-metric span:first-child {
        color: #4b5563;
    }

    .hero-metric span:last-child {
        font-weight: 600;
        color: var(--primary-dark);
    }

.hero-card-footer {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Secciones */
section {
    margin-bottom: 2.5rem;
}

    section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
        color: #111827;
    }

    section p {
        color: #4b5563;
        font-size: 0.95rem;
    }

.section-light {
    background: var(--bg-light);
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

    .card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: #111827;
    }

    .card p {
        font-size: 0.9rem;
    }

/* Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-item {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0.4rem;
}

    .contact-item strong {
        font-weight: 600;
    }

.contact-note {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Inputs del formulario */
.input-text {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 0.6rem;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
}

.textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 0.6rem;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
    resize: vertical;
}

/* ✅ BOTÓN FLOTANTE - IZQUIERDA, MEDIA ALTURA */
.floating-access-btn {
    position: fixed;
    bottom: 18px;
    left: 18px;
    background: var(--primary);
    color: #fff;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
    text-decoration: none;
    opacity: 0;
    animation: floatIn 0.6s ease-out 0.3s forwards;
    transition: background 0.2s ease;
}

    .floating-access-btn:hover {
        background: var(--primary-dark);
    }

/* ✅ Animación suave */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(-40%);
    }

    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

/* ✅ Modo móvil: mover abajo a la izquierda */
@media (max-width: 480px) {
    .floating-access-btn {
        top: auto;
        bottom: 14px;
        left: 14px;
        transform: none;
        padding: 0.75rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Responsivo general */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    main {
        padding-inline: 1rem;
    }
}

footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

/* ===============================
   PÁGINAS LEGALES – ESTILO LANDING
   =============================== */

.legal-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem 1rem;
    line-height: 1.7;
}

.legal-header {
    margin-bottom: 1.5rem;
}

    .legal-header h1 {
        font-size: 1.8rem;
        font-weight: 700;
        color: #111827;
        margin-bottom: 0.5rem;
    }

    .legal-header p {
        font-size: 0.95rem;
        color: #4b5563;
    }

.legal-section {
    margin-top: 1.75rem;
}

    .legal-section h2 {
        font-size: 1.15rem;
        font-weight: 600;
        color: #111827;
        margin-bottom: 0.4rem;
    }

    .legal-section p,
    .legal-section li {
        font-size: 0.95rem;
        color: #4b5563;
    }

    .legal-section ul {
        padding-left: 1.25rem;
        margin-top: 0.4rem;
    }

.legal-muted {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}