/* Variables CSS */
:root {
    /* Colores */
    --primary-color: #1a73e8;
    --primary-dark: #0d5ec2;
    --secondary-color: #34A853;
    --accent-color: #EA4335;
    --text-dark: #202124;
    --text-gray: #5f6368;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    /* Tipografía */
    --font-main: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Sombras */
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 20px rgba(0,0,0,0.2);
    
    /* Espaciado */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-gray);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo-circle {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.logo-text {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.nav-desktop a {
    color: var(--text-dark);
    font-weight: 500;
    padding: var(--space-xs) 0;
    position: relative;
}

.nav-desktop a.active,
.nav-desktop a:hover {
    color: var(--primary-color);
}

.nav-desktop a.active:after,
.nav-desktop a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.menu-mobile-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

.nav-mobile {
    display: none;
    background-color: var(--bg-white);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
}

.nav-mobile ul {
    list-style: none;
}

.nav-mobile li {
    margin-bottom: var(--space-sm);
}

.nav-mobile a {
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    padding: var(--space-xs) 0;
}

.nav-mobile a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a73e8, #0d5ec2);
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
    margin-top: 64px; /* Compensa el header fijo */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: white;
}

.hero .subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    color: rgba(255,255,255,0.9);
}

.cta-btn {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--primary-dark);
}

/* Servicios Section */
.servicios {
    padding: var(--space-xl) 0;
}

.servicios h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-size: 2rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.servicio-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.servicio-img {
    height: 200px;
    overflow: hidden;
}

.servicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.servicio-card:hover .servicio-img img {
    transform: scale(1.05);
}

.servicio-card h3 {
    margin: var(--space-md) var(--space-md) var(--space-sm);
}

.servicio-card p {
    margin: 0 var(--space-md) var(--space-md);
    color: var(--text-gray);
}

.learn-more {
    display: inline-flex;
    align-items: center;
    margin: 0 var(--space-md) var(--space-md);
    color: var(--primary-color);
    font-weight: 600;
}

.learn-more i {
    margin-left: var(--space-xs);
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(3px);
}

/* Temas Section */
.temas {
    padding: var(--space-xl) 0;
    background-color: var(--bg-white);
}

.temas h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-size: 2rem;
}

.temas-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.tema-item {
    text-align: center;
    padding: var(--space-lg);
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tema-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.tema-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 1.5rem;
}

.tema-item h3 {
    margin-bottom: var(--space-sm);
}

/* Contacto Section */
.contacto {
    padding: var(--space-xl) 0;
}

.contacto h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-size: 2rem;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contacto-info h3 {
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.contacto-info ul {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.contacto-info li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.contacto-info i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Formulario */
.contacto-form {
    background-color: var(--bg-white);
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-secondary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: var(--space-xl) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col h3 {
    color: white;
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-md);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: var(--space-sm);
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}