/* Sistema de Diseño Takoda Premium - Adaptación Base Segura */

:root {
    /* Paleta Oficial DESIGN_SYSTEM.md */
    --forest: #4a7d56;
    --terracotta: #c46a3f;
    --terracotta-light: #d6835a;
    --sand: #d9c08a;
    --taupe: #8D8075;
    --ivory: #faf8f4;
    --carbon: #2d2d2d;
    --anthracite: #2a2f2a;
    --white: #FFFFFF;
    
    /* Tipografía */
    --serif-font: 'Cormorant Garamond', serif;
    --sans-font: 'Inter', sans-serif;
    
    /* Layout */
    --section-padding: 160px 20px;
    --container-width: 1100px;
    --border-radius-2xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--ivory);
    color: var(--carbon);
    font-family: var(--sans-font);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif-font);
    font-weight: 600;
    line-height: 1.1;
    color: var(--anthracite);
}

p {
    font-size: 1.15rem;
    color: var(--carbon);
    opacity: 0.9;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Badges */
.badge-premium {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(74, 125, 86, 0.1);
    color: var(--forest);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

/* Buttons: Takoda Style */
.btn-primary {
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-light) 100%);
    color: var(--white);
    padding: 18px 45px;
    border-radius: 50px;
    border: none;
    font-family: var(--sans-font);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(196, 106, 63, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(196, 106, 63, 0.4);
}

.btn-primary:hover::after {
    opacity: 1;
    left: 100%;
}

/* Hero Full-Width Background */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 120px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 34, 30, 0.72) 0%,
        rgba(20, 24, 20, 0.78) 60%,
        rgba(15, 18, 15, 0.88) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--ivory);
    line-height: 1.12;
}

.hero h1 em {
    color: var(--sand);
    font-style: italic;
}

.hero .subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(250,248,244,0.78);
    opacity: 1;
    line-height: 1.85;
}

.premium-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-2xl);
    padding: 50px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.05);
}

/* Section Identification */
.identification-section {
    background-color: var(--white);
    border-radius: var(--border-radius-2xl);
    margin: 0 20px;
    padding: 100px 80px;
}

.identification-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.image-frame {
    position: relative;
    border-radius: var(--border-radius-2xl);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.08);
}

.image-frame img {
    width: 100%;
    display: block;
}

/* Cards & Revelations */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-2xl);
    padding: 50px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(74, 125, 86, 0.1);
}

.glass-card h5 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--forest);
}

/* Manifesto Section */
.manifesto {
    background-color: var(--anthracite);
    color: var(--white);
    padding: 180px 20px;
    text-align: center;
    border-radius: var(--border-radius-2xl);
    margin: 40px 20px;
}

.manifesto h2 {
    color: var(--white);
    font-size: 5rem;
    font-style: italic;
    margin-bottom: 40px;
}

.manifesto p {
    color: var(--sand);
    font-size: 1.4rem;
    font-weight: 300;
}

@media (max-width: 1050px) {
    .hero h1 { font-size: 2.6rem; }
    .hero { padding: 120px 20px 80px; }
    .identification-grid, .grid-3 { grid-template-columns: 1fr; }
    .manifesto h2 { font-size: 3rem; }
    .manifesto { padding: 100px 20px; }
    .identification-section { padding: 60px 30px; margin: 0 10px; }
}

/* ── 768px – Tablet / Most mobiles ── */
@media (max-width: 768px) {
    /* Global spacing */
    :root { --section-padding: 80px 16px; }

    /* Hero */
    .hero { padding: 100px 16px 70px; min-height: 100svh; }
    .hero h1 { font-size: 2.2rem; line-height: 1.15; }
    .hero .subtitle { font-size: 1rem; }

    /* Identification */
    .identification-section { padding: 50px 20px; margin: 0; border-radius: 0; }
    .identification-grid { gap: 40px; }
    .image-frame img { max-height: 320px; object-fit: cover; }

    /* Manifesto */
    .manifesto { padding: 80px 20px; margin: 20px 0; border-radius: 16px; }
    .manifesto h2 { font-size: 2.2rem; }
    .manifesto p { font-size: 1.1rem; }

    /* Btn primary full width on small screens */
    .btn-primary { padding: 16px 24px; font-size: 0.9rem; width: 100%; max-width: 380px; }
}

/* ── 480px – Small phones ── */
@media (max-width: 480px) {
    /* Hero */
    .hero h1 { font-size: 1.85rem; }
    .hero { padding: 90px 15px 60px; }
    .hero .subtitle { font-size: 0.95rem; }

    /* Badges & typography */
    .badge-premium { font-size: 0.65rem; padding: 6px 12px; }

    /* Manifesto */
    .manifesto h2 { font-size: 1.8rem; margin-bottom: 20px; }
    .manifesto { padding: 60px 16px; }

    /* Identification */
    .identification-section { padding: 40px 16px; }
    .identification-grid { gap: 30px; }

    /* Buttons */
    .btn-primary { font-size: 0.85rem; padding: 15px 20px; letter-spacing: 1px; }
}
