/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Variables CSS para colores consistentes */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4a90c2;
    --accent-color: #6bb6ff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #ffffff;
    --background-section: #f8f9fa;
    --border-color: #e9ecef;
    --hover-color: #1a4480;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Estilo para el enlace activo en navegación */
nav ul li a.active {
    background-color: rgba(255,255,255,0.3);
    font-weight: 600;
}

/* Estilos para validación de formulario */
.error {
    border-color: #e74c3c !important;
    background-color: #ffeaea;
}

.error:focus {
    border-color: #c0392b !important;
}

/* Estilos para FAQ */
.faq-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255,255,255,0.7);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.faq-item strong {
    color: var(--primary-color);
}

/* Estilos para "coming soon" */
.coming-soon {
    background-color: rgba(107, 182, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px dashed var(--accent-color);
}

/* Botones de contacto rápido */
.quick-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.whatsapp-btn,
.email-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.whatsapp-btn {
    background: linear-gradient(45deg, #25d366, #128c7e);
}

.whatsapp-btn:hover {
    background: linear-gradient(45deg, #128c7e, #25d366);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.email-btn {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.email-btn:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.4);
}

/* Footer mejorado */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact {
    margin-top: 1rem;
    opacity: 0.9;
}

/* Animaciones de aparición */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

/* Menú hamburguesa para móviles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin: 0 auto 1rem auto;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(0,0,0,0.1);
        border-radius: 8px;
        padding: 1rem;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0.25rem 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        text-align: center;
        width: 100%;
        padding: 0.8rem;
    }
}

/* Main content */
main {
    margin-top: 120px; /* Espacio para el header fijo */
}

/* Secciones generales */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section:nth-child(even) {
    background-color: var(--background-light);
}

h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.9), rgba(74, 144, 194, 0.9)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    margin-top: -120px;
    padding-top: 8rem;
}

.hero-section h2 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.slogan {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.9;
}

.hero-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.2);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-image::before {
    display: none; /* Ocultar el emoji */
}

.welcome-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 2rem auto;
    line-height: 1.8;
}

.call-to-action-buttons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.call-to-action-buttons button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.call-to-action-buttons button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* About Section */
.about-section {
    background-color: var(--background-light);
}

.about-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

.about-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Services Section */
.services-section {
    background-color: var(--background-section);
}

.service-item {
    background-color: var(--background-light);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-item h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-item ul {
    list-style: none;
}

.service-item li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-item li::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Blog Section */
.blog-resources-section {
    background-color: var(--background-light);
}

.article-preview {
    background-color: var(--background-section);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
}

.faq-section {
    background-color: var(--background-section);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--background-section), var(--background-light));
}

#contact-form {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

#contact-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

#contact-form button:hover {
    background-color: var(--hover-color);
}

.direct-contact-info {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.direct-contact-info p {
    margin-bottom: 1rem;
}

.direct-contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.direct-contact-info a:hover {
    text-decoration: underline;
}

.calendar-widget-integration {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .slogan {
        font-size: 1.1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.25rem 0;
    }
    
    .call-to-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .call-to-action-buttons button {
        width: 100%;
        max-width: 300px;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    .hero-section {
        padding: 4rem 1rem;
        padding-top: 6rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-image {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }
    
    .profile-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .hero-section h2 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .service-item,
    #contact-form {
        padding: 1.5rem;
    }
}

/* Animaciones suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-in-out;
}

/* Efectos de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Estilos adicionales para mejorar la accesibilidad */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
