/* Reseteo básico y variables */
:root {
    --primary-color: #6a0dad; /* Morado Charanga */
    --secondary-color: #ffcc00; /* Amarillo toque */
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #fff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- HEADER --- */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px; /* Altura fija para evitar saltos */
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.logo img {
    border-radius: 50%;
    margin-right: 10px;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
}

/* --- HERO SECTION (LA CLAVE DEL ARREGLO) --- */
.hero {
    position: relative;
    /* IMPORTANTE: Asegura que la ruta de la imagen sea correcta */
    background-image: url('../assets/hero.jpg'); 
    background-size: cover;
    background-position: center;
    height: 100vh; /* Altura pantalla completa */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0; /* Quitamos márgenes extraños */
}

/* Capa oscura para que se lea el texto sobre la foto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscuridad al 50% */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Texto por encima de la capa oscura */
    max-width: 800px;
    padding: 0 20px;
}

/* EL TRUCO VISUAL VS SEO */
/* 1. Lo que ve el usuario (Grande e impactante) */
.hero-slogan {
    font-family: var(--font-heading);
    font-size: 3.5rem; /* Muy grande */
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 2. Lo que ve Google (H1 real, más discreto visualmente) */
.hero-content h1 {
    font-size: 1.5rem; /* Tamaño de subtítulo */
    font-weight: 400;
    margin-bottom: 20px;
    color: #f0f0f0;
    font-family: var(--font-body);
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Botones */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s;
    display: inline-block;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

/* --- SECCIONES GENERALES --- */
section {
    padding: 80px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Services Grid */
.services {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Contacto */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.btn-block {
    width: 100%;
    border: none;
    cursor: pointer;
}

.footer {
    background: #333;
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* RESPONSIVE (MÓVIL) */
@media (max-width: 768px) {
    .hero-slogan { font-size: 2.5rem; }
    .hero-content h1 { font-size: 1.2rem; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .nav-list { display: none; } /* Aquí deberías añadir lógica JS para el menú hamburguesa */
}