/*
    PSICOLOGIA & BRIDGE - CUSTOM DESIGN SYSTEM (MODULAR)
    Aesthetics: Professional, Deep Green, Gold Accents, Premium.
*/

:root {
    --primary-depth: hsl(145, 45%, 12%); /* Deep Green */
    --primary-surface: hsl(145, 30%, 18%);
    --accent-gold: hsl(45, 80%, 55%);
    --accent-gold-soft: hsl(45, 80%, 90%);
    --card-suit-red: hsl(350, 70%, 45%);
    --whatsapp-green: #25D366;
    --white: #ffffff;
    --muted: #f4f7f6;
    --text-main: #2c3e50;
    --text-light: #5a6c7d;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
    --transition-smooth: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text {
    font-family: 'Lora', serif;
}

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

.py-xl { padding: 6rem 0; }
.bg-muted { background-color: var(--muted); }
.bg-primary { background-color: var(--primary-depth); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* Buttons & Inputs */
.btn-primary, .btn-outline, .btn-whatsapp {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.btn-primary { background: var(--accent-gold); color: var(--primary-depth); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(212, 175, 55, 0.3); }

.btn-outline { border: 2px solid var(--accent-gold); color: var(--accent-gold); background: transparent; }
.btn-outline:hover { background: var(--accent-gold); color: var(--primary-depth); }

.btn-whatsapp { background: var(--whatsapp-green); color: white; display:flex; align-items:center; justify-content:center; gap:0.5rem;}
.btn-whatsapp:hover { background: #1ebe5d; transform: scale(1.05); }

.input-light {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    min-width: 250px;
    outline: none;
}
.input-light::placeholder { color: rgba(255,255,255,0.7); }
.input-light:focus { border-color: var(--accent-gold); }

.inline-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Header */
#main-header {
    background: var(--primary-depth);
    width: 100%;
    padding: 1.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--white); }

.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.8); font-weight: 500; font-size: 0.95rem; transition: var(--transition-smooth); }
.nav-links a:hover, .nav-links a.active { color: var(--accent-gold); }

/* Hero Section */
#hero {
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 31, 20, 0.9) 0%, rgba(10, 31, 20, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.tag-hero {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

#hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem; }
#hero p { font-size: 1.3rem; font-weight: 300; margin-bottom: 2.5rem; opacity: 0.9; }
.hero-actions { display: flex; gap: 1rem; }

/* Grids & Features */
.section-header h2 { font-size: 2.8rem; margin-bottom: 1rem; color: var(--primary-depth); }
.lead { font-size: 1.2rem; color: var(--text-light); }

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-box {
    padding: 2.5rem;
    background: var(--muted);
    border-radius: 12px;
    border-top: 4px solid var(--accent-gold);
    transition: var(--transition-smooth);
}
.feature-box:hover { transform: translateY(-5px); background: #e8eee8; }
.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-box h3 { color: var(--primary-depth); margin-bottom: 1rem; }

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card .tag { font-size: 0.75rem; text-transform: uppercase; color: var(--accent-gold); font-weight: 700; margin-bottom:0.5rem; display:block;}
.card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary-depth); }
.card p { color: var(--text-light); margin-bottom: 2rem; flex-grow: 1; }

/* Article specific */
.article-header { padding: 4rem 0 2rem; border-bottom: 1px solid var(--muted); margin-bottom: 3rem; text-align: center; }
.article-content { max-width: 800px; margin: 0 auto; font-size: 1.1rem; }
.article-content h2 { margin: 2rem 0 1rem; color: var(--primary-depth); }
.article-content p { margin-bottom: 1.5rem; }

/* Blog Sidebar / Layout */
.blog-layout { display: grid; grid-template-columns: 3fr 1fr; gap: 4rem; }
.sidebar-box { background: var(--muted); padding: 2rem; border-radius: 12px; margin-bottom: 2rem; }
.sidebar-box h3 { margin-bottom: 1rem; color: var(--primary-depth); border-bottom: 2px solid var(--accent-gold); padding-bottom: 0.5rem; }

/* ============================
   LA PARTE INVISIBLE - Immersive Section
   ============================ */

#parte-invisible {
    background: linear-gradient(165deg, hsl(145, 50%, 8%) 0%, hsl(145, 40%, 14%) 50%, hsl(150, 35%, 10%) 100%);
    color: var(--white);
    padding: 7rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.invisible-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212,175,55,0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212,175,55,0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* Section tag badge */
.section-tag {
    display: inline-block;
    padding: 0.35rem 1.2rem;
    border: 1px solid rgba(212,175,55,0.4);
    color: var(--accent-gold);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Intro block */
.invisible-intro {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 5rem;
}

.invisible-intro h2 {
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 1.8rem;
    line-height: 1.15;
}

.invisible-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
}

.invisible-lead strong {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Scenario block — experiential narrative */
.scenario-block {
    display: flex;
    gap: 2.5rem;
    max-width: 700px;
    margin: 0 auto 5rem;
    padding: 2.5rem 3rem;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
}

.scenario-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.5rem;
    flex-shrink: 0;
}

.scenario-line {
    width: 2px;
    flex-grow: 1;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
}

.scenario-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 12px rgba(212,175,55,0.5);
    margin-top: 0.8rem;
}

.scenario-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.scenario-italic {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}

.scenario-reveal {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
}

.scenario-reveal strong {
    color: var(--accent-gold);
}

.scenario-small {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.45);
    font-style: italic;
}

/* Pillar Cards — redesigned feature boxes */
.invisible-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.pillar-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pillar-card:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-6px);
    border-color: rgba(212,175,55,0.2);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-number {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(212,175,55,0.15);
    line-height: 1;
    margin-bottom: 1rem;
}

.pillar-icon-wrap {
    width: 52px;
    height: 52px;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.pillar-icon {
    width: 100%;
    height: 100%;
}

.pillar-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.pillar-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.pillar-card p strong {
    color: rgba(255,255,255,0.9);
}

.pillar-question {
    display: block;
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--accent-gold);
    opacity: 0.8;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Insight blockquote */
.invisible-insight {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

.invisible-insight blockquote {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    position: relative;
    padding: 0 1rem;
}

.quote-mark {
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.3;
    line-height: 0;
    vertical-align: -0.4em;
    margin: 0 0.1em;
    font-family: Georgia, serif;
}

.invisible-insight blockquote strong {
    color: var(--accent-gold);
}

.insight-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto;
}

/* Section header for transition */
.section-header-h2 {
    font-family: 'Lora', serif;
}

/* Scroll reveal animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer { background: var(--primary-depth); color: var(--white); padding: 6rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-info h3, .footer-links h4, .footer-social h4 { margin-bottom: 1.5rem; color: var(--accent-gold); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { text-align: center; padding-top: 2rem; font-size: 0.85rem; opacity: 0.5; }

@media (max-width: 768px) {
    #hero h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .grid-cards { grid-template-columns: 1fr !important; }
    .blog-layout { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }

    /* Parte invisible responsive */
    .invisible-intro h2 { font-size: 2.2rem; }
    .invisible-pillars { grid-template-columns: 1fr; }
    .scenario-block { flex-direction: column; gap: 1.5rem; padding: 2rem 1.5rem; }
    .scenario-marker { flex-direction: row; }
    .scenario-line { width: auto; height: 2px; flex-grow: 1; }
    .invisible-insight blockquote { font-size: 1.2rem; }
}
