/* palette: deep-purple-fire */
:root {
  --primary-color: #4B1461;      /* botones, acentos, títulos */
  --secondary-color: #E74C3C;    /* header, footer bg */
  --accent-color: #F4D03F;       /* iconos, hover, decoración */
  --background-color: #F8F2FF;   /* fondo secciones claras */
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(75, 20, 97, 0.15);
  --shadow-color: rgba(0,0,0,0.1);
  --gradient-primary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  --main-font: 'Lora', serif;
  --alt-font: 'Poppins', sans-serif;
  
  /* border-style: sharp */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-btn: 0px;
  
  /* shadow-style: flat */
  --shadow-card: none;
  --shadow-hover: none;
}

/* 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; line-height: 1.4; }
p, li, span, label, input, textarea { font-family: var(--alt-font); font-size: clamp(14px, 1.6vw, 17px); line-height: 1.7; }

/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ANIMATIONS */
@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-up {
    animation: fade-up 0.6s ease-out forwards;
}

/* HEADER & BURGER MENU */
header {
    background: var(--secondary-color);
    position: relative;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
}
.header-inner {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    justify-content: space-between;
    align-items: center;
}
.header-inner .logo img {
    height: 40px;
    width: auto;
}
.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    min-width: 44px;
    min-height: 44px;
    padding: 14px 10px;
    cursor: pointer;
}
.burger-btn .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #f0f0f0;
    transition: transform 0.28s, opacity 0.28s;
}
#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-top: 1px solid rgba(255, 255, 255, 0.1);
}
#menu-toggle:checked ~ .site-nav {
    display: block;
}
.site-nav ul {
    list-style: none;
    padding: 16px 24px;
}
.site-nav ul li {
    margin-bottom: 16px;
}
.site-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 8px 0;
    transition: color 0.2s;
}
.site-nav ul li a:hover {
    color: var(--accent-color);
}

/* HERO (floating-card style) */
#hero {
    position: relative;
    height: 79vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 16px;
    display: flex;
    justify-content: center;
}
.hero-card {
    background: #ffffff;
    padding: 32px 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    max-width: 600px;
    text-align: center;
}
.hero-card h1 {
    margin-bottom: 16px;
}
.hero-card p {
    color: var(--text-color);
    margin-bottom: 24px;
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 32px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-btn);
    transition: transform 0.2s, background-color 0.2s;
    min-height: 44px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #350e45;
}

/* SECTIONS COMMON */
.section-padding {
    padding: 48px 16px;
}

/* FEATURES (3-column layout) */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.feature-card {
    background: #ffffff;
    padding: 32px 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s;
}
.feature-card:hover {
    transform: translateY(-4px);
}
.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}
.feature-card h3 {
    margin-bottom: 12px;
}

/* ABOUT (img-fullwidth) */
.img-fullwidth-container {
    height: 250px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.img-fullwidth-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* EXTRA (checklist) */
.checklist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    padding: 16px;
    border: 1px solid var(--border-color);
}
.checklist-item .checkmark {
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

/* TESTIMONIALS (cards) */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.testimonial-card {
    background: var(--background-color);
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.testimonial-card .stars {
    color: var(--accent-color);
    font-size: 20px;
    margin-bottom: 12px;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 16px;
}
.testimonial-author {
    font-weight: 600;
}

/* CONTACT SECTION */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.detail-item {
    background: #ffffff;
    padding: 16px;
    border: 1px solid var(--border-color);
}
.detail-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 4px;
}
.contact-form-container {
    background: #ffffff;
    padding: 32px 24px;
    border: 1px solid var(--border-color);
}
.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    color: var(--text-color);
    border-radius: var(--radius-sm);
    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;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 44px;
}
.btn-submit:hover {
    background-color: #350e45;
}

/* FAQ SECTION */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    background: var(--background-color);
    padding: 24px;
    border: 1px solid var(--border-color);
}
.faq-item h3 {
    margin-bottom: 12px;
}

/* FOOTER */
footer {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 48px 24px 24px;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 32px;
}
.footer-inner .logo img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}
.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav ul li a:hover {
    color: var(--accent-color);
}
.footer-bottom {
    text-align: center;
    padding-top: 24px;
}
.footer-bottom p {
    font-size: 13px;
    opacity: 0.8;
}

/* MEDIA QUERIES (Desktop expansions) */
@media (min-width: 768px) {
    /* Header */
    .burger-btn {
        display: none;
    }
    .site-nav {
        display: flex !important;
        position: static;
        background: transparent;
        border: none;
    }
    .site-nav ul {
        display: flex;
        gap: 28px;
        padding: 0;
    }
    .site-nav ul li {
        margin-bottom: 0;
    }
    
    /* Hero */
    .hero-card {
        padding: 48px;
    }
    
    /* Sections */
    .section-padding {
        padding: 80px 24px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About img */
    .img-fullwidth-container {
        height: 380px;
    }
    
    /* Checklist */
    .checklist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    /* FAQ */
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-nav ul {
        flex-direction: row;
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    /* Features */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}