/* Sticky photo for criterios section */
/* .criterios-photo-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: sticky;
    top: 100px;
    height: fit-content;
    z-index: 2;
}
.criterios-photo {
    max-width: 260px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .criterios-photo-wrapper {
        position: static;
        margin: 30px auto 0 auto;
        justify-content: center;
        align-items: center;
    }
    .criterios-photo {
        max-width: 220px;
    }
} */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background-color: #f8fafc;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #1a3d6c;
}

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: #1a3d6c;
    color: white;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.8px;
    box-shadow: 0 5px 15px rgba(26, 61, 108, 0.2);
}

.btn:hover {
    background: #0d2640;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 61, 108, 0.3);
}

.btn-gold {
    background: #d4af37;
    color: white;
}

.btn-gold:hover {
    background: #b8972e;
    color: white;
}

section {
    padding: 100px 0;
    position: relative;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: #1a3d6c;
}

h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.6rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #d4af37;
    border-radius: 2px;
}

p {
    margin-bottom: 16px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 26px;
    font-weight: 900;
    color: #1a3d6c;
    font-family: 'Playfair Display', serif;
}

.logo img {
    height: 85px;
    vertical-align: middle;
}

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

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: #2d3748;
    font-weight: 700;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #d4af37;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a3d6c;
}

/* Hero */
#hero {
    background: linear-gradient(135deg, rgba(134, 165, 206, 0.85), rgba(92, 115, 154, 0.8))/*, url('img/hero.jpg') no-repeat center center/cover*/;
    color: white;
    text-align: center;
    padding: 240px 0 120px;
    margin-top: 70px;
}

#hero h1 {
    font-size: 4.2rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

/* Sobre mí */
#about {
    background: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-img {
    flex: 1;
    text-align: center;
}

.about-img img {
    max-width: 380px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.about-img img:hover {
    transform: scale(1.03);
}

/* Áreas de práctica */
#practice {
    background: #f1f5f9;
}

.practice-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    justify-content: center !important;
}

.area-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border-top: 4px solid #d4af37;
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.area-card h3 {
    color: #1a3d6c;
    margin: 15px 0;
}

/* Estilos para la imagen centrada */
#image-section {
    background: white;
}

.image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.centered-photo {
    max-width: 350px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}

.centered-photo:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .centered-photo {
        max-width: 280px;
    }
}

/* Criterios Relevantes */
.criterios-grid-full {
    display: block;
    margin-top: 40px;
}

.criterio-card-full {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border-left: 4px solid #d4af37;
    border-radius: 0 12px 12px 0;
    margin-bottom: 25px;
    width: 100%;
}

.criterio-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.criterio-card-full h4 {
    color: #1a3d6c;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.criterio-card-full p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 1rem;
}

.criterios-view-all {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
}

.criterios-loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 0;
}

.criterios-empty {
    text-align: center;
    color: #888;
    padding: 40px 0;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

/* Estilos para los enlaces en los títulos de criterios */
.criterio-card-full h4 a {
    color: #1a3d6c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.criterio-card-full h4 a:hover {
    color: #d4af37;
    text-decoration: underline;
}

.criterio-card-full h4 a:visited {
    color: #1a3d6c;
}

.criterio-card-full h4 a:active {
    color: #0f2a4a;
}

/* Experiencia */
#experience {
    background: #1a3d6c;
    color: white;
    text-align: center;
}

#experience h2 {
    color: white;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat {
    margin: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #d4af37;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Docencia y publicaciones */
#teaching {
    background: white;
}

.publication {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid #d4af37;
}

.publication h4 {
    color: #1a3d6c;
    margin-bottom: 8px;
}

/* Contacto */
#contact {
    background: #f1f5f9;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-item {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: left;
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: #1a3d6c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
}

.contact-item a {
    color: #2d3748;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #1a3d6c;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ccc;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
}

footer .social-icons {
    margin: 15px 0;
}

footer .social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: #333;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    transition: background 0.3s;
}

footer .social-icons a:hover {
    background: #d4af37;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #1a3d6c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.card h3 {
    font-size: 1.2rem;
    color: #1a3d6c;
    margin-bottom: 10px;
}

.card p {
    margin: 0;
    font-size: 1rem;
}

.card a {
    color: #2d3748;
    transition: color 0.3s;
}

.card a:hover {
    color: #1a3d6c;
}

.ocultar_movil {
    visibility: hidden ;
}

/* Responsive */
@media (max-width: 768px) {
    .ocultar_movil {
        display: none;
    }

    .contact-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 300px;
    }
}

/* Contact Cards */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    width: 260px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #1a3d6c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.card h3 {
    font-size: 1.3rem;
    color: #1a3d6c;
    margin-bottom: 12px;
}

.card p {
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Botones personalizados */
.btn-call {
    background: #1a3d6c;
}

.btn-wsp {
    background: #25d366;
}

.btn-wsp:hover {
    background: #1da856;
}

.btn-email {
    background: #d4af37;
}

.btn-email:hover {
    background: #c19d2f;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 320px;
        margin: 10px 0;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

.btn-linkedin {
    background: #0077b5;
}

.btn-linkedin:hover {
    background: #005a87;
}

/* Estilos para la sección de contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto 30px;
}

.contact-photo-wrapper {
    display: flex;
    justify-content: center;
    align-items: start;
}

.contact-photo {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Estilos para los enlaces en los títulos de criterios */
.criterio-card h4 a {
    color: #1a3d6c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.criterio-card h4 a:hover {
    color: #d4af37;
    text-decoration: underline;
}

.criterio-card h4 a:visited {
    color: #1a3d6c;
}

.criterio-card h4 a:active {
    color: #0f2a4a;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }

    .about-content {
        flex-direction: column;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    #hero h1 {
        font-size: 3rem;
    }

    #hero p {
        font-size: 1.2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .criterios-grid {
        grid-template-columns: 1fr;
    }
}