/* ==========================================================================
   MeteoCari — Estilos
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-soft: #555555;
    --color-text-muted: #888888;
    --color-border: #e5e5e5;
    --color-accent: #1a1a1a;
    --color-accent-soft: #333333;
    --color-highlight: #3a5bd9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

ul {
    list-style: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
}

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

.logo-art {
    position: relative;
    width: 28px;
    height: 28px;
}

.logo-circle,
.logo-square,
.logo-triangle {
    position: absolute;
    width: 12px;
    height: 12px;
}

.logo-circle {
    top: 0;
    left: 0;
    background: var(--color-text);
    border-radius: 50%;
}

.logo-square {
    bottom: 0;
    left: 3px;
    background: var(--color-highlight);
}

.logo-triangle {
    top: 4px;
    right: 0;
    width: 0;
    height: 0;
    background: transparent;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid #f5b700;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    font-size: 14.5px;
    color: var(--color-text-soft);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text);
}

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

.hero {
    position: relative;
    padding: 110px 0 130px;
    overflow: hidden;
}

.hero-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 18s ease-in-out infinite;
}

.shape-1 {
    width: 320px;
    height: 320px;
    background: #a6e3f5;
    top: 10%;
    left: 5%;
}

.shape-2 {
    width: 260px;
    height: 260px;
    background: #ffe8a6;
    top: 60%;
    left: 20%;
    animation-delay: -3s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #ffc6b3;
    top: 15%;
    right: 10%;
    animation-delay: -6s;
}

.shape-4 {
    width: 240px;
    height: 240px;
    background: #b8f0d4;
    bottom: 10%;
    right: 20%;
    animation-delay: -9s;
}

.shape-5 {
    width: 200px;
    height: 200px;
    background: #c2d0ff;
    top: 40%;
    left: 50%;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(30px, -40px); }
    50%      { transform: translate(-20px, 30px); }
    75%      { transform: translate(40px, 20px); }
}

.hero-content {
    position: relative;
    max-width: 780px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.05);
    color: var(--color-text-soft);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}

.highlight {
    background: linear-gradient(120deg, var(--color-highlight), #f5b700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--color-text-soft);
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.btn-explore {
    display: inline-block;
    background: var(--color-text);
    color: #fff;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: transform var(--transition), background var(--transition);
}

.btn-explore:hover {
    background: var(--color-accent-soft);
    transform: translateY(-2px);
}

/* ==========================================================================
   Section header (reutilizable)
   ========================================================================== */

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-highlight);
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: clamp(32px, 4.5vw, 46px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.header-line {
    width: 56px;
    height: 3px;
    background: var(--color-text);
    margin: 0 auto;
    border-radius: 2px;
}

/* ==========================================================================
   About section
   ========================================================================== */

.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.about-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 38px 32px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(58, 91, 217, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-highlight);
    margin-bottom: 22px;
}

.card-icon svg {
    width: 26px;
    height: 26px;
}

.about-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.about-card p {
    color: var(--color-text-soft);
    font-size: 15.5px;
}

.values-list {
    color: var(--color-text-soft);
    font-size: 15.5px;
}

.values-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.values-list li:last-child {
    border-bottom: none;
}

.values-list strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ==========================================================================
   Education section — Artículos largos
   ========================================================================== */

.education-section {
    padding: 100px 0;
    background: #f3f3f3;
}

.edu-article {
    background: var(--color-surface);
    border-radius: 18px;
    padding: 54px 48px;
    margin-bottom: 42px;
    box-shadow: var(--shadow-sm);
}

.edu-article:last-child {
    margin-bottom: 0;
}

.article-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 28px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--color-border);
}

.article-number {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    background: var(--color-text);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.article-header h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.article-content > * + * {
    margin-top: 36px;
}

.article-intro p {
    font-size: 18px;
    color: var(--color-text-soft);
    font-style: italic;
    border-left: 3px solid var(--color-highlight);
    padding-left: 20px;
}

.art-period,
.technique-section,
.theory-section,
.appreciation-section {
    padding-top: 8px;
}

.art-period h4,
.technique-section h4,
.theory-section h4,
.appreciation-section h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.art-period p,
.technique-section p,
.theory-section p,
.appreciation-section p {
    color: var(--color-text-soft);
    font-size: 16px;
    margin-bottom: 16px;
}

.art-period p:last-child,
.technique-section p:last-child,
.theory-section p:last-child,
.appreciation-section p:last-child {
    margin-bottom: 0;
}

.art-period strong,
.technique-section strong,
.theory-section strong,
.appreciation-section strong {
    color: var(--color-text);
    font-weight: 600;
}

.theory-section ul,
.appreciation-section ul {
    color: var(--color-text-soft);
    font-size: 16px;
    margin: 8px 0 0 20px;
}

.theory-section ul li,
.appreciation-section ul li {
    list-style: disc;
    padding: 4px 0;
}

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

.cta-section {
    padding: 110px 0;
    text-align: center;
    background: var(--color-text);
    color: #fff;
}

.cta-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 680px;
    margin: 0 auto;
}

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

footer {
    background: #0f0f0f;
    color: #bbbbbb;
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-about p {
    color: #888888;
    font-size: 14.5px;
    max-width: 420px;
    margin-top: 18px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
}

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

.footer-section h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #888888;
    font-size: 14.5px;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 24px;
    text-align: center;
    color: #666;
    font-size: 13.5px;
}

/* ==========================================================================
   Páginas legales (politicas/terminos/contacto)
   ========================================================================== */

.legal-section {
    padding: 80px 0 100px;
    min-height: 70vh;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 60px 56px;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.legal-content h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 14px;
    letter-spacing: -0.01em;
}

.legal-content p,
.legal-content li {
    color: var(--color-text-soft);
    font-size: 16px;
    margin-bottom: 14px;
}

.legal-content ul {
    margin-left: 22px;
    margin-bottom: 14px;
}

.legal-content ul li {
    list-style: disc;
    padding: 4px 0;
    margin-bottom: 4px;
}

.legal-content strong {
    color: var(--color-text);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 820px) {
    .nav-links {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-links a {
        font-size: 13.5px;
    }

    .hero {
        padding: 70px 0 90px;
    }

    .edu-article {
        padding: 38px 24px;
    }

    .article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .legal-content {
        padding: 40px 28px;
    }
}

@media (max-width: 520px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .nav-links {
        gap: 12px;
    }

    .about-card,
    .edu-article {
        padding: 28px 20px;
    }
}
