/* reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* global variables */
:root {
    /* colors */
    --color-primary: #FFC800;
    --color-secondary: #383838;
    --color-success: #198754;
    --color-danger: #dc3545;

    --color-text: #FFC800;
    --color-text-contrast: #383838;
    --color-muted: #F4F4F3;
    --color-hover: #000000;
    --color-bg: #383838;
    --color-border: #F3F3F2;

    /* typography */
    --font-base: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    /* Layout */
    --max-width: 1200px;
    --border-radius: 0.5rem;
    --transition-base: 0.2s ease-in-out;
}
html{
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-base);
    background-color: var(--color-bg);
    color: var(--color-muted);
    line-height: 1.6;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}
h1{
    font-size: 2.5rem;
}
h2{
    font-size: 2rem;
}
h3{
    font-size: 1.75rem;
}
h4{
    font-size: 1.5rem;
}
h5{
    font-size: 1.25rem;
}
h6{
    font-size: 1rem;
}

p{
    margin-bottom: 1rem;
}
small{
    color: var(--color-muted);
}
/* link */
a{
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-base);
}
a:hover{
    color: var(--color-hover);
}
/* media elements */
img, svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}
/* layout */
body{
    line-height: 1.6;
    margin: 0;
    width: 100%;
}
/* header */
header{
    background: linear-gradient(
        180deg,
        #2c2c2c,
        #1f1f1f
    );
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
}
header::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin-top: 1rem;
}
header h1 {
    color: #ffc107;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 12px rgba(255, 193, 7, 0.4);
}
header p {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.nav {
    display: flex;
    justify-content: center;   /* Centra todo el menú */
    align-items: center;
    gap: 2rem;                 /* Espacio uniforme entre botones */
    margin-top: 1rem;
}

.nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav a:hover {
    color: #ffc107;
}
/* =========================== */

.hero {
    position: relative;
    background-image: url("../img/banner.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 90vh;

    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;          /* Centra el bloque */
    padding: 0 4rem;         /* 👈 Espacio lateral */

    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 👈 Alinea texto y botón a la izquierda */
}

.hero-content h1 {
    color: #ffc107;
    font-size: 3rem;
    max-width: 700px;
}

.hero-btn {
    margin-top: 2rem;
    padding: 0.9rem 2rem;
    border-radius: 40px;
    border: none;
    background: white;
    cursor: pointer;
    color: var(--color-secondary);
}
/* SERVICES */
.services{
    padding: 3rem 1rem;
    text-align:center;
    background: linear-gradient(
        180deg,
        #2f2f2f,
        #242424);
    
}
.services::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    margin: 4rem auto 0;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    border-radius: 10px;
}
.services-container{
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.service-card{
    background-color: var(--color-secondary);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    flex: 1 1 calc(33.333% - 2rem);
    color: var(--color-muted);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    min-height: 320px;
}
.service-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.service-card-header{
    font-size: 2rem;
    margin-bottom: 1rem;
}
.service-card-body{
    display: flex;
    flex-direction: column;
}
.service-card-title{
    min-height: 70px;
}
.service-card-description{
    color: var(--color-muted);
}

/* BENEFITS */
.benefits{
    margin-top: 2rem;
    text-align: center;
    background-image: radial-gradient(135deg, #413a3a 0%, #614a27 50%, #b86f0f 100%);
    padding: 3rem 1rem;
}
.benefits-container{
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.benefit-card{
    background-color: var(--color-secondary);
    padding: 1rem;
    border-radius: var(--border-radius);
    flex: 1 1 calc(50% - 2rem);
    color: var(--color-muted);
}
.benefit-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.benefit-card:hover::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        #ffc107,
        #ff9800
    );
} 
/* ABOUT US */
.about-us{
    padding: 7rem 0;
    background: #2b2b2b;
    position: relative;
    overflow: hidden;
}

/* Glow sutil decorativo */
.about-us::before{
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,193,7,0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    z-index: 0;
}

.about-us-content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-us-image{
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
}

.about-us-image:hover{
    transform: scale(1.03);
}

.section-tag{
    color: #ffc107;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: bold;
}

.about-us-text h2{
    font-size: 2.2rem;
    margin: 1rem 0 1.5rem;
}

.about-us-text p{
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-stats{
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.about-stats h3{
    color: #ffc107;
    font-size: 1.8rem;
    margin: 0;
}

.about-stats span{
    font-size: 0.9rem;
    color: var(--color-muted);
}
/* Social-media */
.social-media{
    text-align: center;
    width: 100%;
    background-color: #ffb400;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}
.social-media h2{
    color: var(--color-text-contrast);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;}
.social-media::before{
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}
.social-media-container{
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.social-media-link{
    font-size: 1.5rem;
    color: var(--color-text-contrast);
    transition: transform var(--transition-base), color var(--transition-base);
}
.social-media-link:hover{
    transform: scale(1.2);
    color: var(--color-hover);
}
/*CTA */
.cta{
    background: linear-gradient(
        180deg,
        #ffb400 0%,
        #ffb400 25%,
        #2e2e2e 70%,
        #1f1f1f 100%
    );
    padding: 3rem 1rem;
    width: 100%;
}
.cta-content{
    position: relative;
    z-index: 1;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}
.cta-content h2{
    color: var(--color-hover);
}
/* ========== */
.contact-form-container{
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 20px;
    padding: 3rem;

    max-width: 800px;
    min-width: 800px;

    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.05);
}
.contact-form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-input, .contact-textarea{
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: inherit;
    background-color: #fff;
    color: #000;
}
.contact-textarea{
    min-height: 100px;
    resize: none;
}
.contact-btn{
    align-self: flex-end;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color var(--transition-base);
}
.contact-btn:hover{
    background-color: var(--color-hover);
    border-style: solid;
    border-color: var(--color-primary);
}
/* footer */
footer {
    width: 100%;
    padding: 3rem 1rem;
    background: linear-gradient(
        180deg,
        #1a1a1a,
        #111
    );
    color: #ccc;
    text-align: center;
    position: relative;
}

/* Línea superior en amarillo (identidad) */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        #ffc107,
        #ff9800
    );
}

.footer-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #888;
}

footer p {
    margin: 0.3rem 0;
}
/* forms */
input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}
input, textarea, select {
    width: 100%;
    padding: 0.5rem, 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}
button{
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    background-color: var(--color-primary);
    color: #fff;
    transition: background-color var(--transition-base);
}
button:hover{
    background-color: var(--color-hover);
}
/* utilities */
.text-center{
    text-align: center;
}
.text-right{
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.hidden{
    display: none !important;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}
/* ========================= */
/* 📱 MOBILE */
/* ========================= */
@media (max-width: 576px) {

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    /* NAV */
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    /* HERO */
    .hero {
        min-height: 70vh;
        text-align: center;
    }

    .hero-content {
        padding: 0 1.5rem;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2rem;
        max-width: 100%;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
    }

    /* SERVICES */
    .service-card {
        flex: 1 1 100%;
    }

    /* BENEFITS */
    .benefit-card {
        flex: 1 1 100%;
    }

    /* ABOUT US */
    .about-us {
        padding: 4rem 1rem;
    }

    .about-us-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    /* CTA FORM */
    .contact-form-container {
        min-width: unset;
        width: 100%;
        padding: 2rem;
    }

    .contact-btn {
        align-self: stretch;
    }

    /* FOOTER */
    .footer-row {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}
@media (max-width: 992px) {

    /* HERO */
    .hero-content {
        padding: 0 2rem;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    /* SERVICES */
    .service-card {
        flex: 1 1 calc(50% - 2rem);
    }

    /* BENEFITS */
    .benefit-card {
        flex: 1 1 100%;
    }

    /* ABOUT */
    .about-us-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-stats {
        justify-content: center;
    }

    /* FORM */
    .contact-form-container {
        min-width: unset;
        width: 100%;
    }

    /* FOOTER */
    .footer-row {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .footer-col {
        flex: 1 1 45%;
        align-items: center;
    }
}

/* ========================= */
/* 💻 DESKTOP GRANDE */
/* ========================= */
@media (min-width: 1400px) {

    .hero-content {
        padding: 0 6rem;
    }

    .about-us-content {
        gap: 7rem;
    }

    .services-container,
    .benefits-container {
        gap: 3rem;
    }
}