/* --- CONFIGURACIÓN BASE Y VARIABLES --- */
:root {
    --primary: #4a7c59;       /* Verde terapéutico */
    --primary-dark: #355a40;
    --secondary: #688f74;
    --bg-light: #faf9f6;        /* Fondo hueso/relajante */
    --text-dark: #2f3e46;
    --text-light: #ffffff;
    --accent: #d1b280;          /* Dorado suave */
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 0;
}

/* --- HEADER Y NAVEGACIÓN (COMPARTIDO) --- */
header {
    background-color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- TÍTULOS --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    margin: 10px auto 0;
}

/* --- PÁGINA: INICIO (HERO) --- */
.hero {
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url('https://images.unsplash.com/photo-1518241353330-0f7941c2d9b5?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- PÁGINA: SOBRE MÍ --- */
.about-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-img, .about-text {
    flex: 1;
    min-width: 300px;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-text p {
    margin-bottom: 1rem;
}

/* --- PÁGINA: SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card-content {
    padding: 2rem;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* --- PÁGINA: CONTACTO --- */
.contact-grid {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background: var(--text-light);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* --- FOOTER (COMPARTIDO) --- */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* --- RESPONSIVIDAD MÓVIL --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        gap: 1.2rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .about-grid, .contact-grid {
        gap: 2rem;
    }
}