/* palette: crimson-steel */
:root {
  --primary-color: #7B1034;      /* botones, acentos, títulos */
  --secondary-color: #9B1B3E;    /* hero bg, secciones oscuras, footer */
  --accent-color: #546E7A;       /* iconos, hover, decoración */
  --background-color: #FEF6F8;   /* fondo de secciones claras */
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(0,0,0,0.12);
  --shadow-color: rgba(0,0,0,0.22);
  --gradient-primary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  --main-font: 'Lora', serif;
  --alt-font: 'Noto Sans', sans-serif;
  
  /* border-style: pill */
  --radius-sm: 12px;
  --radius-md: 28px;
  --radius-lg: 36px;
  --radius-btn: 50px;
  
  /* shadow-style: dramatic */
  --shadow-card: 0 24px 64px rgba(0,0,0,0.22);
  --shadow-hover: 0 28px 72px rgba(0,0,0,0.28);
}

/* Base Reset & Typography Scale */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--alt-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1 {
    font-family: var(--main-font);
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-family: var(--main-font);
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-family: var(--main-font);
    font-size: clamp(18px, 2.8vw, 28px);
    font-weight: 600;
    line-height: 1.4;
}

h4 {
    font-family: var(--main-font);
    font-size: clamp(15px, 2vw, 20px);
    font-weight: 600;
    line-height: 1.4;
}

p {
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.7;
}

/* Animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fade-up 0.8s ease-out both;
    padding: 48px 16px;
}

/* Header & Mobile Navigation */
header {
    position: relative;
    width: 100%;
    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 {
    height: 40px;
    width: auto;
    display: block;
}

.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1010;
}

.burger-btn .bar {
    width: 24px;
    height: 2px;
    background: #F5F5F5;
    transition: transform 0.28s, opacity 0.28s;
}

#menu-toggle:checked + .burger-btn .bar:first-child {
    transform: translateY(8px) rotate(45deg);
}

#menu-toggle:checked + .burger-btn .bar:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked + .burger-btn .bar:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    z-index: 999;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

#menu-toggle:checked ~ .site-nav {
    display: block;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.site-nav ul li a {
    color: #F5F5F5;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: block;
    padding: 10px 0;
    transition: color 0.2s;
}

.site-nav ul li a:hover {
    color: var(--background-color);
}

/* Hero Section (vertical-stack) */
#hero {
    height: 81vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.hero-container {
    max-width: 800px;
    color: #F5F5F5;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-subtitle {
    margin-bottom: 32px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 14px 36px;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Sections Containers */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-subtitle {
    max-width: 600px;
    margin: 12px auto 0 auto;
    font-size: 16px;
}

/* Features (features-numbered) */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-number {
    display: block;
    font-family: var(--main-font);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.feature-card h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

/* About (img-left) */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    object-fit: cover;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

/* Extra (two-col-text) */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.text-column {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.text-column h3 {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.text-column p {
    margin-bottom: 12px;
}

/* Testimonials (testimonials-minimal) */
.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 24px;
}

.testimonial-item:last-child {
    border-bottom: none;
}

.testimonial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stars {
    color: #FFD700;
    font-size: 18px;
}

.testimonial-text {
    font-style: italic;
    font-weight: 300;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details p {
    margin-bottom: 12px;
}

.contact-form-wrapper {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.contact-form-wrapper h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--alt-font);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.btn-submit {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 14px;
    border: none;
    border-radius: var(--radius-btn);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    margin-bottom: 8px;
    color: #FFFFFF;
}

/* Footer */
footer {
    padding: 48px 16px 24px 16px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

footer img[alt="logo"] {
    filter: brightness(0) invert(1);
    height: 40px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.footer-nav ul li a {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-nav ul li a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    text-align: center;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    font-size: 13px;
    color: #999999;
}

/* ==========================================
   DESKTOP MEDIA QUERIES (min-width: 768px)
   ========================================== */
@media (min-width: 768px) {
    section {
        padding: 80px 24px;
    }

    .site-nav {
        display: flex !important;
        position: static;
        background: transparent;
        padding: 0;
        border-bottom: none;
    }

    .site-nav ul {
        flex-direction: row;
        gap: 28px;
    }

    .burger-btn {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        flex-direction: row;
        align-items: center;
    }

    .about-image-wrapper {
        flex: 0 0 45%;
    }

    .about-content {
        flex: 0 0 55%;
        padding-left: 40px;
    }

    .two-col-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-nav ul {
        flex-direction: row;
        gap: 24px;
    }
}

/* ==========================================
   DESKTOP MEDIA QUERIES (min-width: 1024px)
   ========================================== */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}