/* palette: onyx-coral */
:root {
  --primary-color: #1A1C28;      /* botones, acentos, cabeceras oscuras */
  --secondary-color: #2C2E3E;    /* fondos oscuros, hero bg, footer */
  --accent-color: #B83838;       /* acentos, hover, llamadas a la acción */
  --background-color: #F8F8FB;   /* fondo claro de secciones */
  --dark-color: #111111;         /* texto muy oscuro */
  --text-color: #333333;         /* texto general */
  --border-color: rgba(0,0,0,0.12);
  --shadow-color: rgba(0,0,0,0.05);
  
  --main-font: 'Lora', Georgia, serif;
  --alt-font: 'Noto Sans', sans-serif;
  
  /* border-style: rounded */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-btn: 8px;
  
  /* shadow-style: flat */
  --shadow-card: none;
  --shadow-hover: none;
}

/* Typography scale */
body {
    font-family: var(--alt-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    font-size: clamp(14px, 1.6vw, 17px);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--main-font);
    font-weight: 700;
}

h1 {
    font-size: clamp(32px, 6vw, 64px);
    line-height: 1.2;
}

h2 {
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.3;
}

h3 {
    font-size: clamp(18px, 2.8vw, 28px);
    line-height: 1.4;
}

h4 {
    font-size: clamp(15px, 2vw, 20px);
}

/* Base structural styles */
section {
    padding: 48px 16px;
}
@media (min-width: 768px) {
    section {
        padding: 80px 24px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Warm-vintage style background texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(var(--border-color) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* Color mode rules */
.dark-section {
    background-color: var(--secondary-color);
    color: #F5F5F5;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dark-section h1, 
.dark-section h2, 
.dark-section h3 {
    color: #FFFFFF;
}

.light-section {
    background-color: var(--background-color);
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #FFFFFF !important;
    font-family: var(--alt-font);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-align: center;
    border: 1px solid transparent;
    min-height: 48px;
    line-height: 1.2;
}
.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #9C2E2E;
}

/* Header & Mobile Nav */
header {
    background: var(--secondary-color);
    position: relative;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
}

.header-inner {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    padding: 10px;
}

.burger-btn .bar {
    width: 24px;
    height: 2px;
    background: #f0f0f0;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

#menu-toggle:checked + .burger-btn .bar:first-child {
    transform: translateY(7px) rotate(45deg);
}
#menu-toggle:checked + .burger-btn .bar:nth-child(2) {
    opacity: 0;
}
#menu-toggle:checked + .burger-btn .bar:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#menu-toggle:checked ~ .site-nav {
    display: block;
    animation: fade-up 0.25s ease forwards;
}

.site-nav ul {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
}

.site-nav ul li {
    margin: 10px 0;
}

.site-nav ul li a {
    color: #EEEEEE;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s ease;
}

.site-nav ul li a:hover {
    color: var(--accent-color);
}

@media (min-width: 768px) {
    .burger-btn {
        display: none;
    }
    .site-nav {
        display: flex !important;
        position: static;
        border-bottom: none;
    }
    .site-nav ul {
        flex-direction: row;
        gap: 28px;
        padding: 0;
    }
    .site-nav ul li {
        margin: 0;
    }
}

/* Hero section (gradient-center) */
#hero {
    position: relative;
    height: 81vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('./img/bg.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,28,40,0.95) 0%, rgba(44,46,62,0.85) 100%);
    z-index: 1;
}

/* Animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fade-up 0.8s ease-out forwards;
}

/* Section Decor Elements */
.section-tag {
    font-family: var(--alt-font);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    color: var(--accent-color);
    display: inline-block;
}

.section-title {
    font-family: var(--main-font);
}

/* Timeline Features (features-timeline) */
.timeline-wrapper {
    position: relative;
    padding-left: 24px;
    margin-top: 40px;
}
.timeline-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 20px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -20px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 3px solid var(--background-color);
    z-index: 2;
}

.timeline-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-text {
    font-size: 15px;
}

/* Image Overlap Section (img-overlap) */
.block-img-overlap {
    position: relative;
    display: flex;
    justify-content: center;
}

.overlap-img-container {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 8px;
    background-color: rgba(255,255,255,0.02);
}

.overlap-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

@media (min-width: 1024px) {
    .block-img-overlap {
        margin-left: 40px;
    }
    .overlap-img-container {
        transform: scale(1.05) translateY(10px);
    }
}

/* Steps Horizontal (steps-horizontal) */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    transition: transform 0.25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
}

.step-num {
    font-family: var(--main-font);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 12px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-text {
    font-size: 14px;
}

/* Testimonials Quotes (testimonials-quotes) */
.quotes-list {
    display: flex;
    flex-direction: column;
}

.quote-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: 4px solid var(--accent-color);
}

.quote-text {
    font-family: var(--main-font);
}

/* Form Styling */
.form-input {
    border-radius: var(--radius-sm);
    font-family: var(--alt-font);
}

.form-input:focus {
    border-color: var(--accent-color);
}

/* FAQ spacing & flat styling */
.faq-item {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Footer layout */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
}