/* --- CONFIGURACIÓN DE VARIABLES (ÁTOMOS) --- */
:root {
    /* Colores Principales */
    --orange-primary: #f15d22;
    --orange-dark: #e94424;
    --orange-light: #faa31b;
    
    /* Degradados solicitados */
    --gradient-deep: linear-gradient(to bottom, #f15d22, #e94424);
    --gradient-bright: linear-gradient(to bottom, #faa31b, #f15d22);
    --gradient-hero: linear-gradient(180deg, #f15d22 0%, #e94424 100%);
    
    /* Neutros y Fondos */
    --dark-grey-nav: #333132; 
    --dark-blue-footer: #0a0e1a;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
}

/* --- RESET Y ESTILOS BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

/* --- COMPONENTES GLOBALES (MOLÉCULAS) --- */
.btn-custom {
    display: inline-block;
    padding: 14px 36px;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 50px; /* Estilo Píldora */
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-orange-deep { background: var(--gradient-deep); }
.btn-orange-bright { background: var(--gradient-bright); }

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.subtitle {
    display: block;
    color: var(--orange-primary);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--dark-grey-nav);
}

/* --- HEADER Y NAVEGACIÓN --- */
.main-header {
    background-color: var(--dark-grey-nav);
    padding: 0 5%;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-img {
    height: 45px; /* Tamaño controlado */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--orange-primary);
}

/* Lógica Menú Hamburguesa (Mobile) */
#nav-check { display: none; }
.nav-btn { display: none; }

/* --- HERO SECTION --- */
.hero {
    padding: 100px 10%;
    text-align: center;
    background: var(--gradient-hero);
    color: var(--white);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 900px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 1000px;
    height: 400px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    margin-top: 40px;
}

/* --- SERVICES SECTION --- */
.services {
    padding: 100px 10%;
    background-color: var(--light-bg);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--orange-primary);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- ABOUT SECTION --- */
.about {
    padding: 100px 10%;
    display: flex;
    gap: 80px;
    align-items: center;
    background: var(--white);
}

.about-text { flex: 1.2; }
.about-stats { 
    flex: 0.8; 
    display: grid;
    gap: 20px;
}

.check-list {
    list-style: none;
    margin: 25px 0;
}

.check-list li {
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-card {
    background: var(--light-bg);
    padding: 30px;
    border-left: 5px solid var(--orange-primary);
    border-radius: 8px;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--dark-grey-nav);
}

/* --- TESTIMONIALS --- */
.testimonials {
    padding: 100px 10%;
    background: var(--dark-grey-nav);
    color: var(--white);
    text-align: center;
}

.testimonials h2 { color: var(--white); }

.testimonial-card {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    margin: 40px auto;
}

.stars { color: var(--orange-light); margin-bottom: 20px; }

/* --- CONTACT SECTION --- */
.contact {
    padding: 100px 10%;
    display: flex;
    gap: 60px;
    background: var(--light-bg);
}

.contact-info { flex: 1; }

.contact-form-container {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.05);
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

/* --- FOOTER --- */
.main-footer {
    background: var(--dark-blue-footer);
    color: var(--white);
    padding: 40px 10%;
    text-align: center;
}

.footer-bottom {
    opacity: 0.6;
    font-size: 0.85rem;
}

/* --- RESPONSIVIDAD (MEDIA QUERIES) --- */

/* 1. Escritorio (Min 1024px) */
@media (min-width: 1024px) {
    .navbar { padding: 0 20px; }
}

/* 2. Tablets (768px a 1023px) */
@media (max-width: 1023px) {
    .hero h1 { font-size: 2.8rem; }
    .about { flex-direction: column; text-align: center; }
    .check-list li { justify-content: center; }
    .contact { flex-direction: column; }
}

/* 3. Móviles (320px a 767px) */
@media (max-width: 767px) {
    /* Menú Hamburguesa Funcional */
    .nav-btn {
        display: block;
    }
    .nav-btn label {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 30px;
        cursor: pointer;
    }
    .nav-btn label span {
        width: 100%;
        height: 3px;
        background: var(--white);
        transition: 0.3s;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--dark-grey-nav);
        flex-direction: column;
        gap: 0;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links li a {
        display: block;
        padding: 20px;
    }

    #nav-check:checked ~ .nav-links {
        height: 320px; /* Ajustar según cantidad de links */
    }

    .header-action { display: none; } /* Ocultar botón en móvil pequeño */

    .hero h1 { font-size: 2.2rem; }
    .hero-image-placeholder { height: 250px; }
    
    .services, .about, .contact { padding: 60px 5%; }
}