/* ======================================= */
/* 0. Variables y Reset Global             */
/* ======================================= */

:root {
    --primary-color: #E72B2B;      /* Rojo Acento - Más cercano al del logo */
    --secondary-color: #1A1A1A;    /* Negro Intenso - Para texto principal y fondo oscuro */
    --background-color: #F8F4ED;   /* Beige/Crema Suave - Color de fondo del logo */
    --text-color: #333333;         /* Gris Oscuro - Legibilidad */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --white: #FFFFFF;
}

/* Reset y Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tipografía y Fondo General */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Estilos de Texto y Encabezados */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 0.5em;
}
h1 { font-size: 3.5em; font-weight: 800; }
h2 { font-size: 2.5em; font-weight: 700; }
h3 { font-size: 1.6em; font-weight: 600; }
p { margin-bottom: 1em; }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--secondary-color);
}

.section-title {
    margin-bottom: 40px;
    text-align: center;
}

/* Estilos de Utilidad */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}


/* ======================================= */
/* 1. HEADER & NAVEGACIÓN                  */
/* ======================================= */
.header {
    background: var(--white); 
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilo de Texto del Logo (Reestablecido) */
.logo {
    font-family: var(--font-heading);
    font-size: 1.5em;
    font-weight: 700;
    color: var(--secondary-color);
}
/* Fin Estilo de Texto del Logo */


.navbar ul {
    display: flex;
    list-style: none;
}

.navbar li {
    margin-left: 30px;
}

.navbar a {
    color: var(--secondary-color);
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.navbar a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}


/* ======================================= */
/* 2. BOTONES                              */
/* ======================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.primary-btn {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.primary-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.secondary-btn {
    background: none;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.secondary-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}


/* ======================================= */
/* 3. SECCIÓN HERO (INICIO)                */
/* ======================================= */
.hero {
    background: var(--secondary-color); 
    color: var(--white);
    padding: 150px 0;
    text-align: center;
}

/* NO HAY ESTILOS PARA LOGO EN HERO */

.hero h1 {
    color: var(--white);
    font-size: 4em;
    max-width: 800px;
    margin: 20px auto 40px;
}

.hero .subheading {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1em;
    display: block;
}


/* ======================================= */
/* 4. SECCIÓN SERVICIOS                    */
/* ======================================= */
.services {
    padding: 80px 0;
    background: var(--background-color); 
}

.service-card {
    background: var(--white); 
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    margin-top: 0;
}


/* ======================================= */
/* 5. SECCIÓN ENFOQUE (SOBRE MÍ)           */
/* ======================================= */
.focus-section {
    padding: 80px 0;
    background: var(--background-color); 
    text-align: center;
}

.focus-text {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.2em;
    line-height: 1.8;
}

.focus-text strong {
    color: var(--primary-color);
}


/* ======================================= */
/* 6. SECCIÓN CONTACTO                     */
/* ======================================= */
.contact {
    padding: 80px 0;
    text-align: center;
    background: var(--secondary-color); 
    color: var(--white);
}

.contact h2 {
    color: var(--primary-color);
}

.contact p {
    font-size: 1.1em;
    margin-bottom: 40px;
}

.social-links {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    background: var(--white);
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    margin-right: 10px;
    font-size: 1.3em;
}

/* Estilos específicos de redes sociales */
.whatsapp-btn:hover {
    background: #25D366; 
    color: var(--white);
}

.instagram-btn:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: var(--white);
}

.contact-note {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}


/* ======================================= */
/* 7. FOOTER                               */
/* ======================================= */
.footer {
    background: #111; 
    color: #AAAAAA;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}


/* ======================================= */
/* 8. MEDIA QUERIES (RESPONSIVE)           */
/* ======================================= */

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    /* Header Responsive */
    .header .container {
        flex-direction: column;
    }
    .navbar ul {
        margin-top: 15px;
        justify-content: center;
    }
    .navbar li {
        margin: 0 10px;
    }
    
    /* Hero Responsive */
    .hero {
        padding: 100px 0 80px;
    }
    .hero h1 {
        font-size: 2.5em;
    }
    
    /* Servicios Responsive */
    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Contacto Responsive */
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .social-btn {
        width: 80%; 
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    
    .social-btn {
        width: 100%;
    }
}