:root {
    --primary-color: #2c3e50;
    --secondary-color: #838383;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --black: #000;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f9f9f9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
}
h1 {
    color: white;
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

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

.btn-outline {
    display: inline-block;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    background-color: transparent;
}

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

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--dark-color);
    transition: var(--transition);
    margin: 0 5px;
}

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-social.whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-social.email {
    background-color: #D44638;
    color: white;
}

.btn-social.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.btn-social.phone {
    background-color: #3b5998;
    color: white;
}

.btn-social.facebook {
    background-color: #3b5998;
    color: white;
}

.btn-social.linkedin {
    background-color: #0077B5;
    color: white;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo span {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero Section - Versión optimizada */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px); /* Resta la altura del header */
    min-height: 500px;
    max-height: 1200px;
    margin-top: 70px;
    overflow: hidden;
}

.glide {
    height: 100%;
    width: 100%;
}

.glide__track {
    height: 100%;
}

.glide__slides {
    height: 100%;
}

.glide__slide {
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Overlay para mejor legibilidad del texto */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

/* Contenido del hero */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 90%;
    max-width: 800px;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease 0.6s both;
}

/* Bullets de navegación */
.glide__bullets {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
    gap: 8px;
}

.glide__bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    outline: none;
}

.glide__bullet:hover,
.glide__bullet--active {
    background: var(--white);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 30px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 25%;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Professionals Section */
.professionals {
    padding: 80px 0;
    background-color: var(--light-color);
}

.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-items: center;
}

.professional-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    max-width: 350px;
    width: 100%;
    margin: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.professional-card.animate {
    opacity: 1;
    transform: translateY(0);
}

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

.professional-img {
    height: 250px;
    overflow: hidden;
}

.professional-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.professional-card:hover .professional-img img {
    transform: scale(1.05);
}

.professional-content {
    padding: 25px;
}

.professional-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.specialty {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.matricula, .universidad {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.professional-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.professional-actions {
    display: flex;
    flex-direction: column;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--white);
}

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

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    max-width: 350px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

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

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-content p {
    color: var(--text-light);
}

/* Estilos para enlaces en contacto */
.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-item p {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.contact-item i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
}

/* Estilo para WhatsApp en contacto */
.contact-item .fa-whatsapp {
    color: #25D366;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.contact-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 24px;
    color: var(--secondary-color);
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-item p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.contact-item a {
    color: var(--primary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.contact-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-item i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
}

.contact-item .fa-whatsapp {
    color: #25D366;
}

.fa-whatsapp{
    color: #25D366;
}

.professional-contact {
    border-left: 4px solid var(--secondary-color);
}

/* Mapa */
.map-container {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Estilos para la sección de Contacto */
.contact-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-left, .contact-right {
    flex: 1;
    min-width: 300px;
}

.contact-box {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.contact-box h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-box p {
    margin-bottom: 10px;
    color: #333;
}

.contact-box a {
    color: #2c3e50;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-box a:hover {
    color: #838383;
    text-decoration: underline;
}

.contact-box.professional {
    border-left: 4px solid #838383;
}

.whatsapp-link a {
    color: #25D366 !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Estilos para los iconos */
.contact-box .fas, .contact-box .fab {
    width: 20px;
    text-align: center;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    html {
        font-size: 15px;
    }
    
    .hero {
        height: calc(90vh - 70px);
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        width: 100%;
    }
    
    .main-nav li {
        margin: 15px 0;
        text-align: center;
    }
    
    .main-nav a {
        font-size: 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 15px;
    }
    
    .professionals-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .professional-card,
    .service-card {
        max-width: 100%;
    }
    
    html {
        font-size: 14px;
    }
    
    .hero {
        height: calc(80vh - 70px);
        min-height: 400px;
    }
    
    .hero-content {
        width: 95%;
    }
    
    .glide__bullets {
        bottom: 20px;
    }
    
    /* Ajustes para orientación horizontal en móviles */
    @media (orientation: landscape) {
        .hero {
            height: calc(100vh - 70px);
            min-height: auto;
        }
        
        .hero-content {
            top: 55%;
        }
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .hero {
        height: calc(70vh - 70px);
        min-height: 350px;
    }
    
    .hero-image {
        object-position: center center;
    }
    
    .glide__bullet {
        width: 10px;
        height: 10px;
    }
}

/* Para dispositivos muy altos o con relación de aspecto inusual */
@media (min-height: 1000px) {
    .hero {
        max-height: 900px;
    }
}


