/* palette: crimson-charcoal */
:root {
  --primary-color: #C0392B;      /* botones, acentos, títulos */
  --secondary-color: #2C3E50;    /* hero bg, dark-sections, footer */
  --accent-color: #F7DC6F;       /* hover, detalles */
  --background-color: #FFF5F5;   /* fondo light-sections */
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(44, 62, 80, 0.15);
  --shadow-color: transparent;

  --main-font: 'Lora', serif;
  --alt-font: 'Roboto', sans-serif;

  /* border-style: pill */
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --radius-btn: 50px;

  /* shadow-style: flat */
  --shadow-card: none;
  --shadow-hover: none;
}

/* Base Settings */
body {
    font-family: var(--alt-font);
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.7;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Typography Scale */
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;
}

/* Layout Elements */
.section-padding {
    padding: 48px 16px;
}
@media (min-width: 768px) {
    .section-padding {
        padding: 80px 24px;
    }
}

/* Header & Mobile Navigation */
header {
    background: var(--secondary-color);
    position: relative;
    width: 100%;
}

.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;
}

.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    min-width: 44px;
    min-height: 44px;
    padding: 13px 10px;
    cursor: pointer;
}

.burger-btn .bar {
    display: block;
    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(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;
}

#menu-toggle:checked ~ .site-nav {
    display: block;
}

.site-nav ul {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
}

.site-nav ul li a {
    color: #f0f0f0;
    font-family: var(--alt-font);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    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;
        background: transparent;
    }
    .site-nav ul {
        flex-direction: row;
        padding: 0;
        gap: 28px;
    }
}

/* Hero Section (circle-image) */
.hero-section {
    position: relative;
    overflow: hidden;
}

.circle-image-container {
    width: clamp(260px, 35vw, 400px);
    height: clamp(260px, 35vw, 400px);
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.circle-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.btn {
    font-family: var(--alt-font);
    font-weight: 600;
    padding: 12px 32px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    border-radius: var(--radius-btn);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Features Section (features-2x2) */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--primary-color);
}

/* Image Overlap Section */
.img-overlap-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.overlap-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

@media (min-width: 1024px) {
    .img-overlap-container {
        margin-left: -24px;
    }
}

/* Expert Quote Section */
.expert-quote-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background-color: var(--background-color);
    position: relative;
}

/* Testimonials Section (testimonials-quotes) */
.testimonial-quote-item {
    border-left: 4px solid var(--primary-color);
    padding-left: 24px;
    position: relative;
}

/* Contact Form */
.contact-form-wrapper {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.form-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
    background-color: #FFFFFF;
    color: var(--dark-color);
    font-family: var(--alt-font);
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
}

textarea.form-input {
    border-radius: var(--radius-md);
}

/* FAQ Section */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

/* Footer Section */
footer {
    background-color: var(--secondary-color);
    color: #F5F5F5;
    padding: 48px 24px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 32px;
}

footer img[alt="logo"] {
    filter: brightness(0) invert(1);
    max-height: 40px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-nav ul li a {
    color: #EEEEEE;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-nav ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 12px;
    color: #CCCCCC;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-nav ul {
        flex-direction: row;
        gap: 24px;
    }
    .footer-inner {
        text-align: left;
    }
}

/* CSS Animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fade-up 0.6s ease-out forwards;
}