/* 
  ======================================================
  ImaginAI Lab - Design System (Tokens & Styling)
  Theme: "Elegant Light" con Elementos Alternos
  ======================================================
*/

:root {
  /* BACKGROUNDS */
  --bg-light: #FDFDFD;            
  --bg-violet: #190F2C; /* Violeta oscuro intenso basado en tu paleta hispana */
  --bg-surface: #FFFFFF;         
  --bg-surface-dark: #241A3A;
  
  /* BRAND COLORS */
  --brand-gold: #FDB813;         
  --brand-gold-hover: #E5A305;   
  --brand-purple: #54318A;       
  
  /* ACCENT & SHADOWS */
  --shadow-soft: rgba(0, 0, 0, 0.04); 
  --shadow-hover: rgba(84, 49, 138, 0.1); 
  --glow-gold: rgba(253, 184, 19, 0.3);   
  
  /* TYPOGRAPHY COLORS */
  --text-pure-black: #000000;    /* Negro puro pedido para subtítulos en Light Mode */
  --text-dark: #1A1A1A;       
  --text-light: #FFFFFF;          
  --text-light-muted: #D1CDD8;
  
  /* FONTS */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* BORDERS */
  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-light: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-weight: 400; /* Incremento grosor para Montserrat a 400 */
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--brand-purple); 
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

p {
    color: var(--text-pure-black); /* Negro puro por defecto en fondo claro */
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

/* Theme Switching Sections */
.bg-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.bg-violet {
    background-color: var(--bg-violet);
    color: var(--text-light);
}

.bg-violet h1, .bg-violet h2, .bg-violet h3 {
    color: var(--text-light); /* En fondo oscuro, los títulos son blancos para máxima legibilidad */
}

.bg-violet p, .bg-violet span {
    color: var(--text-light-muted);
}

/* Typography Enhancements */
.text-gradient-gold {
    color: var(--brand-gold);
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 4px; 
    font-weight: 500;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--brand-gold);
    color: #000;
    box-shadow: 0 4px 15px var(--glow-gold);
    border: none;
}

.btn-primary:hover {
    background-color: var(--brand-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-purple);
    border: 1px solid var(--brand-purple);
}

.bg-violet .btn-outline {
    color: var(--brand-gold);
    border-color: var(--brand-gold);
}

.bg-violet .btn-outline:hover {
    background-color: var(--brand-gold);
    color: #000;
}

/* Navigation */
.navbar {
    padding: 1.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(253, 253, 253, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.logo-img {
    height: 45px; 
    /* Truco definitivo: fundir el fondo blanco de la nueva imagen contra la barra */
    mix-blend-mode: multiply; 
}

/* Hero Section */
.hero {
    padding: 14rem 0 10rem;
    position: relative;
    z-index: 2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(253, 184, 19, 0.15); /* Fondo dorado sutil */
    border: 1px solid var(--brand-gold);
    color: var(--text-pure-black); /* Letra en negro puro como pediste */
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-pure-black); /* Negro puro */
    margin-bottom: 3rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Layout Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

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

/* Cards & Styling */
.elegant-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elegant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-hover);
    border-bottom: 3px solid var(--brand-gold); 
}

.bg-violet .elegant-card {
    background: var(--bg-surface-dark);
    border-color: var(--border-light);
}

.bg-violet .elegant-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.bg-violet .elegant-card p {
    color: var(--text-light-muted);
}

/* Problem/Solution Section */
.content-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-box h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(84, 49, 138, 0.05);
    color: var(--brand-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.bg-violet .icon-wrapper {
    background: rgba(255,255,255,0.05);
    color: var(--brand-gold);
}

.gold-icon {
    background: rgba(253, 184, 19, 0.1);
    color: var(--brand-gold);
}

/* Phases Sections */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-top: 0.5rem;
}

.phase-tag {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bg-violet .phase-tag {
    color: var(--brand-gold);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(84, 49, 138, 0.1);
    line-height: 1;
    margin-bottom: -1rem;
    position: relative;
    z-index: 1;
}

.bg-violet .step-number {
    color: rgba(255, 255, 255, 0.05);
}

.card-title {
    font-size: 1.6rem;
    position: relative;
    z-index: 2;
}

.feature-row {
    display: flex;
    gap: 1.5rem;
    padding: 2.5rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

/* About Section */
.about-section {
    background-color: var(--bg-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px var(--shadow-hover);
    border: 10px solid white; 
}

/* Form Styles */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E2E2E2;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #FDFDFD;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-purple);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Footer CTA */
.footer {
    padding: 6rem 0 2rem;
    background-color: var(--bg-violet);
    color: var(--text-light);
    border-top: 1px solid var(--border-light);
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.footer-title {
    font-size: 2.8rem;
    color: var(--text-light);
}

.footer-subtitle {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-light-muted);
}

.contact-info-block {
    margin-top: 2rem;
}

.contact-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--brand-gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-light-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .grid-2, .grid-3, .hero-grid, .about-grid, .footer-contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 3rem;
    }
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-cta-group {
        flex-direction: column;
    }
    .section {
        padding: 4rem 0;
    }
}
