

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f5f5;
    display:flex;
    overflow-x:hidden;
}

/* =========================
SIDEBAR
========================= */

.sidebar{
    width:200px;
    height:100vh;
    background:#010d2c;
    position:fixed;
    left:0;
    top:0;
    padding:25px 20px;
    z-index:1000;
}

.logo{
    margin-bottom:35px;
}

.logo img{
    width:140px;
    height:auto;
    display:block;
}

.menu{
    list-style:none;
}

.menu li{

    display:flex;
    align-items:center;

    gap:14px;

    color:white;

    padding:16px 14px;

    margin-bottom:8px;

    border-radius:12px;

    cursor:pointer;

    transition:.3s;

    font-size:.95rem;
}

.menu li img{

    width:22px;
    height:22px;

    object-fit:contain;

    flex-shrink:0;
}

.menu li:hover{
    background:#1b4fff;
}

.menu .active{
    background:#1b4fff;
}

.menu li a{
    display:flex;
    align-items:center;
    gap:14px;

    width:100%;

    text-decoration:none;
    color:white;
}

.menu li img{
    width:22px;
    height:22px;
    object-fit:contain;
}

/* =========================
CONTENIDO
========================= */

main{
    margin-left:200px;
    width:calc(100% - 200px);
}

/* =========================
HERO
========================= */

.hero{
    min-height:80vh;

    background-image:url('../img/fondo-hero.jpg');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    display:flex;
    align-items:center;

    color:white;

    padding:60px;
}

.hero-content{
    max-width:620px;
}

.badge{
    display:inline-block;

    background:rgba(20,99,255,.20);

    border:1px solid rgba(20,99,255,.35);

    padding:12px 24px;

    border-radius:25px;

    margin-bottom:25px;

    font-size:.95rem;
}

.hero h1{
    font-size:clamp(3rem,4vw,5rem);
    line-height:1.1;
    font-weight:700;
    margin-bottom:25px;
}

.hero p{
    font-size:clamp(1rem,1.2vw,1.2rem);
    line-height:1.6;
    margin-bottom:35px;
    color:#e0e0e0;
}

/* =========================
BOTONES
========================= */

.buttons{
    display:flex;
    gap:15px;
}

.btn-primary{
    background:#1560ff;
    color:white;
    border:none;
    padding:14px 28px;
    border-radius:12px;
    font-size:1rem;
    cursor:pointer;
    transition:.3s;
}

.btn-primary:hover{
    transform:translateY(-3px);
}

.btn-secondary{
    background:transparent;
    color:white;
    border:1px solid white;
    padding:14px 28px;
    border-radius:12px;
    font-size:1rem;
    cursor:pointer;
    transition:.3s;
}

.btn-secondary:hover{
    background:rgba(255,255,255,.08);
}

/* =========================
SERVICIOS
========================= */

.services{
    background:#f8f8f8;
    padding:50px;
    border-radius:30px 30px 0 0;
    margin-top:-20px;
}

.services h2{
    font-size:clamp(2rem,3vw,3rem);
    margin-bottom:10px;
}

.services > p{
    color:#666;
    margin-bottom:40px;
}

/* =========================
GRID SERVICIOS
========================= */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:24px;
}

/* =========================
TARJETAS
========================= */

.card{
    background:white;
    border:1px solid #e9e9e9;
    border-radius:18px;
    padding:25px;
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}

.service-icon{
    width:55px;
    height:55px;
    object-fit:contain;
    margin-bottom:20px;
}

.card h3{
    font-size:16px;
    font-weight:600;
    margin-bottom:12px;
}

.card p{
    color:#555;
    line-height:1.5;
    margin-bottom:20px;
    font-size:.95rem;
}

.card a{
    color:#1560ff;
    text-decoration:none;
    font-weight:600;
}

/* =========================
TABLET
========================= */

@media(max-width:992px){

    .sidebar{
        width:180px;
    }

    main{
        margin-left:180px;
        width:calc(100% - 180px);
    }

    .hero{
        padding:50px;
    }

    
}

/* =========================
MOVIL
========================= */

@media(max-width:768px){

    body{
        display:block;
    }

    .sidebar{
        position:relative;
        width:100%;
        height:auto;
    }

    main{
        margin-left:0;
        width:100%;
    }

    .hero{
        min-height:auto;
        padding:40px 25px;
    }

    .hero-content{
        max-width:100%;
    }

    .hero h1{
        font-size:2.5rem;
    }

    .buttons{
        flex-direction:column;
    }

    .btn-primary,
    .btn-secondary{
        width:100%;
    }

    .cards{
        grid-template-columns:1fr;
    }

    .services{
        padding:35px 25px;
    }
}

/* =========================
   PAGINA SERVICIOS
========================= */

.services-page{
    padding:60px;
    background:#f8f8f8;
    min-height:100vh;
}

.services-page h1{
    font-size:48px;
    margin-bottom:15px;
    color:#0f172a;
}

.services-page > p{
    color:#666;
    max-width:600px;
    margin-bottom:40px;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.service-card{
    background:#fff;
    border:1px solid #e9e9e9;
    border-radius:18px;
    padding:30px;
    transition:.3s;
}

.service-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.service-card .service-icon{
    width:50px;
    height:50px;
    object-fit:contain;
    margin-bottom:20px;
}

.service-card h3{
    font-size:22px;
    margin-bottom:15px;
    color:#111827;
}

.service-card p{
    color:#666;
    line-height:1.7;
}

.service-card-wide{
    grid-column:span 2;
}

.service-card h3{
    font-size: 18px;
    margin-bottom: 12px;
}

.service-card{
    min-height: 180px;
}

/* =========================
   RESPONSIVE SERVICIOS
========================= */

@media (max-width: 768px){

    .services-page{
        padding:30px 20px;
    }

    .services-page h1{
        font-size:2rem;
    }

    .services-page > p{
        font-size:0.95rem;
        margin-bottom:30px;
    }

    .services-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .service-card{
        padding:25px;
        min-height:auto;
    }

    .service-card-wide{
        grid-column:span 1;
    }

    .service-card .service-icon{
        width:40px;
        height:40px;
    }

    .service-card h3{
        font-size:1.2rem;
        min-height:auto;
    }

    .sidebar{
        position:relative;
        width:100%;
        height:auto;
        padding:20px;
    }

    main{
        margin-left:0;
        width:100%;
    }
    
}


/* =========================
   ESPECIALISTAS
========================= */

.specialists-page{
    padding:60px;
    background:#f8f8f8;
    min-height: auto;
}

.specialists-page h1{
    font-size:3rem;
    color:#0f172a;
    margin-bottom:15px;
}

.specialists-page > p{
    color:#666;
    font-size:1.1rem;
    margin-bottom:50px;
    max-width:600px;
}

.specialists-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
    align-items: start;
}

.specialist-card{
    background:white;
    border:1px solid #e9e9e9;
    border-radius:20px;
    padding:30px;
    text-align:center;
    transition:.3s;
}

.specialist-card:hover{
    transform:translateY(-8px);
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.specialist-photo{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:25px;
}

.specialist-card h3{
    font-size:1.8rem;
    margin-bottom:10px;
    color:#111827;
}

.specialist-card span{
    display:block;
    color:#666;
    margin-bottom:25px;
}

.social-links{
    border-top:1px solid #eee;
    padding-top:20px;
    display:flex;
    justify-content:center;
    gap:25px;
}

.social-links img{
    width:28px;
    height:28px;
    cursor:pointer;
    transition:.3s;
}

.social-links img:hover{
    transform:scale(1.15);
}

/* Contenedor de las redes sociales */
.social-links {
    display: table;            
    margin: 25px auto 10px auto; 
    text-align: center;
}

/* Espaciado individual para cada enlace */
.social-links a {
    display: inline-block;
    color: #000000;          
    font-size: 26px;          
    margin: 0 16px;          
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Efecto interactivo al pasar el cursor (Hover) */
.social-links a:hover {
    transform: scale(1.15);   
    color: #444444;           
}

/* =========================
   RESPONSIVE ESPECIALISTAS
========================= */

@media(max-width:768px){

    .specialists-page{
        padding:30px 20px;
    }

    .specialists-page h1{
        font-size:2rem;
    }

    .specialist-photo{
        width:140px;
        height:140px;
    }

}

/* =========================
   CONTACTO
========================= */

.contact-page{

    padding:60px;

    background:#f8f8f8;
}

.contact-container{

    background:white;

    border:1px solid #e9e9e9;

    border-radius:25px;

    padding:50px;

    display:grid;

    grid-template-columns:1fr 1.2fr;

    gap:60px;
}

/* INFORMACIÓN */

.contact-info h1{

    font-size:3rem;

    color:#0f172a;

    margin-bottom:30px;
}

.contact-info p{

    font-size:1.2rem;

    color:#444;

    line-height:1.8;

    margin-bottom:40px;
}

.contact-item{

    display:flex;

    align-items:center;

    gap:20px;

    margin-bottom:35px;
}

.contact-item img{

    width:50px;

    height:50px;

    object-fit:contain;
}

.contact-item h3{

    font-size:1.5rem;

    margin-bottom:5px;
}

.contact-item span{

    color:#555;

    font-size:1.2rem;
}

/* MAPA */

.map-container{

    margin-top:25px;

    border-radius:18px;

    overflow:hidden;

    border:1px solid #e5e5e5;
}

.map-container iframe{

    width:100%;

    height:250px;

    border:none;
}


/* FORMULARIO */

.contact-form form{

    display:flex;

    flex-direction:column;

    gap:25px;
}

.contact-form input,
.contact-form textarea{

    width:100%;

    padding:20px;

    border:1px solid #ddd;

    border-radius:15px;

    font-size:1rem;

    font-family:'Poppins',sans-serif;
}

.contact-form textarea{

    height:250px;

    resize:none;
}

.contact-form button{

    background:#1560ff;

    color:white;

    border:none;

    padding:22px;

    border-radius:15px;

    font-size:1.2rem;

    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.contact-form button:hover{

    background:#0f4fe0;
}

/* =========================
   RESPONSIVE CONTACTO
========================= */

@media (max-width:768px){

    .contact-page{
        padding:15px;
    }

    .contact-container{
        display:grid;
        grid-template-columns:1fr;
        gap:30px;
        width:100%;
        padding:20px;
    }

    .contact-info h1{
        font-size:2.2rem;
        line-height:1.1;
    }

    .contact-item h3{
        font-size:1.1rem;
    }

    .contact-item span{
        font-size:1rem;
    }

    .map-container iframe{
        height:180px;
    }

}

.contact-form input,
.contact-form textarea,
.contact-form button{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
}

html,
body{
    overflow-x:hidden;
}

.contact-item{
    display:flex;
    align-items:flex-start;
    gap:20px;
}

.contact-item div{
    flex:1;
    min-width:0;
}

.contact-item span{
    color:#555;
    font-size:1.2rem;
    overflow-wrap:anywhere;
    word-break:break-word;
}


@media (max-width:768px){

    .map-container iframe{

        height:180px;
    }

}


/* =========================
   NOSOTROS
========================= */

.about-page{

    padding:60px;

    background:#f8f8f8;
}

.about-container{

    background:white;

    border:1px solid #e9e9e9;

    border-radius:25px;

    padding:40px;
}

/* CABECERA */

.about-header{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:40px;

    align-items:center;

    margin-bottom:50px;
}

.about-text h1{

    font-size:4rem;

    color:#0f172a;

    margin-bottom:25px;
}

.about-text p{

    font-size:1.5rem;

    color:#555;

    line-height:1.8;
}

.about-image img{

    width:100%;

    height:360px;

    object-fit:cover;

    border-radius:20px;
}

/* TARJETAS */

.about-cards{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:30px;
}

.about-card{

    border:1px solid #e9e9e9;

    border-radius:20px;

    padding:40px;

    transition:.3s;
}

.about-card:hover{

    transform:translateY(-6px);

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

.about-card img{

    width:60px;

    height:60px;

    object-fit:contain;

    margin-bottom:25px;
}

.about-card h3{

    font-size:2rem;

    margin-bottom:20px;

    color:#0f172a;
}

.about-card p{

    color:#555;

    line-height:1.8;

    font-size:1.1rem;
}

/* =========================
   NOSOTROS RESPONSIVE
========================= */

@media (max-width:768px){

    .about-page{
        padding:20px;
    }

    .about-container{
        padding:25px;
    }

    .about-header{

        grid-template-columns:1fr;

        gap:25px;
    }

    .about-text h1{

        font-size:2.5rem;
    }

    .about-text p{

        font-size:1.1rem;
    }

    .about-image img{

        height:220px;
    }

    .about-cards{

        grid-template-columns:1fr;
    }

}


/* =========================
   BLOG
========================= */

.blog-page{

    padding:60px;

    background:#f8f8f8;
}

.blog-page h1{

    font-size:3rem;

    color:#0f172a;

    margin-bottom:15px;
}

.blog-page > p{

    color:#555;

    font-size:1.1rem;

    margin-bottom:40px;
}

.blog-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(450px,1fr));

    gap:30px;
}

.blog-card{

    background:white;

    border:1px solid #e9e9e9;

    border-radius:20px;

    overflow:hidden;

    transition:.3s;
}

.blog-card:hover{

    transform:translateY(-6px);

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

.blog-card img{

    width:100%;

    height:250px;

    object-fit:cover;
}

.blog-content{

    padding:30px;
}

.blog-date{

    color:#777;

    font-size:.95rem;
}

.blog-content h3{

    margin-top:15px;

    margin-bottom:15px;

    font-size:1.8rem;

    color:#0f172a;

    line-height:1.3;
}

.blog-content p{

    color:#555;

    line-height:1.7;

    margin-bottom:25px;
}

.blog-content a{

    text-decoration:none;

    color:#1560ff;

    font-weight:600;
}

.blog-upcoming {

    text-align: center;

    margin-top: 50px;

    padding: 40px 20px;

    background-color: #f9f9f9; 

    border-radius: 8px;

    border: 2px dashed #e0e0e0;
}
 
.blog-upcoming i {

    font-size: 2rem;

    color: #6c5ce7; 

    margin-bottom: 15px;
}

.blog-upcoming h2 {

    font-size: 1.5rem;

    margin-bottom: 10px;

    color: #333;
}

.blog-upcoming p {

    color: #666;

    max-width: 500px;

    margin: 0 auto;
}

/* Contenedor principal de Próximamente */
.blog-upcoming {

    background-color: #f0f4f8; 

    border: 1px solid #dcdcdc;

    border-radius: 12px;

    overflow: hidden;

    margin-top: 25px;

    font-family: 'Poppins', sans-serif;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Barra superior gris interna (Badge) */
.upcoming-badge {

    background-color: #e2e8f0;

    padding: 10px 20px;

    font-size: 0.85rem;

    font-weight: 700;

    color: #4a5568;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    border-bottom: 1px solid #dcdcdc;
}

/* Cuerpo de la tarjeta */
.upcoming-content {

    padding: 40px 20px;

    text-align: center;
}

/* =========================
   BLOG RESPONSIVE
========================= */

@media (max-width:768px){

    .blog-page{

        padding:20px;
    }

    .blog-grid{

        grid-template-columns:1fr;
    }

    .blog-content h3{

        font-size:1.4rem;
    }

}

/* --- ESTILOS DE LA PANTALLA DE INTRO --- */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff; /* Color de fondo (puedes usar #000000 si tu marca es oscura) */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Se asegura de estar por encima de todo, incluyendo el sidebar */
    opacity: 1;
    transition: opacity 0.6s ease-out, visibility 0.6s;
}

/* Contenedor centralizado */
.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Animación de entrada suave para el logo */
.intro-logo {
    max-width: 180px; /* Ajusta el tamaño de tu logo en la intro aquí */
    height: auto;
    animation: pulseLogo 2s infinite ease-in-out;
}

/* Efecto opcional de Spinner/Carga debajo del logo */
.intro-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000000; /* Color del giro de carga */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}



/* Desvanecimiento de salida controlado por JS*/
#intro-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- ANIMACIONES --- */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}