/* Aplica la fuente a todos los elementos */
* {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    justify-content: center;
}
header {
    color: #47bdbd;
    padding: 20px 0;    
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.padre {
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 1.5rem auto;
    padding: 1.2rem 2vw;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    box-sizing: border-box;
    flex: 1 1 content; /* Crece, encoge, ancho mínimo */
    min-width: 280px;
    max-width: 100%;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .padre {
        max-width: 98vw;
        padding: 1rem 2vw;
    }
}

@media (max-width: 600px) {
    .padre {
        max-width: 100vw;
        padding: 0.7rem 1vw;
        border-radius: 6px;
        margin-bottom: 1rem;
    }
}
header h1 {
    font-size: 48px;
    margin: 0;
}

[id^="icono"] {
    margin-right: 20px;
    mix-blend-mode: lighten;
    object-fit: contain;
}


#iconoHabi, #iconoProy, #iconoRef {
    filter: invert(1);
    
}
main {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end; /* Alinea las secciones hacia la derecha */
}
#iconoEdu,
#iconoExp,
#iconoCont,
#iconoHabi,
#iconoProy,
#iconoRef {
    width: 2.5rem;   /* Tamaño más pequeño de íconos */
    height: 2.5rem;
    padding-left: 0.2rem; /* Reducir padding izquierdo */
}
#l1{
    background-color: #007BFF;
    padding-top: 0.5em;
    padding-bottom: 0.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
#l2{
    background-color: #17A2B8;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
#l3{
    background-color: #6F42C1;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
#l4{
    background-color: #FD7E14;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
#l5{
    background-color: #DC3545;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
#l6{
    background-color: #FFC107;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
}


#indices {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    max-width: 100%;

}
#l1:hover{
    scale:1.2;

}
#l2:hover{
    scale:1.2;
}
#l3:hover{
    scale:1.2;
}
#l4:hover{
    scale:1.2;
}
#l5:hover{
    scale:1.2;
}
#l6:hover{
    scale:1.2;
}

.item-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    transition: background-color 0.3s;
    color: #fff;
    border-radius: 5px;
    padding: 8px 12px;  
}


.item-nav:hover {
    background-color: #007acc;
}


.item-nav span {
    font-size: 14px;
    justify-content: center;
}


/* Centra y pone en negrita el título principal */
h1 {
    text-align: center;
    font-weight: bold;
    font-family: 'tangarine', serif;
    color: #3ea7a7;
    margin-top: 1rem;
    margin-bottom: 1.5rem;

}
html {
    scroll-behavior: smooth;
}
/* Selector por id para #photo */
#perfil img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,95,163,0.10);
    margin: 0;
    display: block;
    flex-shrink: 0;
    animation: perfilImgFade 1.2s 0.2s both;

}

/* Selector por clase para .subtitle */
.subtitle {
    color: #003366;
    font-size: 25px;
    border-bottom: 2px solid #005fa3;
    padding-bottom: 8px;
    margin-bottom: 20px;

}
#perfil {
    width: 100%;
    max-width: 1000px;
    min-width: 280px;
    margin: 2rem auto 1.5rem auto;
    padding: 2.5rem 2vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    background-color: #fdfdfd;
    border-radius: 18px;
    background: linear-gradient(120deg, #f0f4ff 60%, #e6ecff 100%);

    box-shadow: 0 8px 32px rgba(0,95,163,0.08);
    box-sizing: border-box;
    animation: fadeIn 1.2s;

}
#perfil .perfil-info {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,95,163,0.10);
    margin: 0;
    display: block;
    flex-shrink: 0;
    animation: perfilImgFade 1.2s 0.2s both;
    border: 4px solid #fff;
    transition: transform 0.3s, box-shadow 0.3s;

}
#perfil img:hover {
    transform: scale(1.04) rotate(-2deg);
    box-shadow: 0 8px 32px rgba(0, 95, 163, 0.18);
}
#perfil h2.subtitle {
    text-align: left;
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    color: #005fa3;
    font-weight: bold;
    letter-spacing: 1px;
    animation: perfilTitleFade 1s 0.3s both;
}
#perfil h3 {
    font-size: 1.2rem;
    color: #1976d2;
    margin-bottom: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
#perfil section {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
}
#perfil p {
    font-size: 1.1rem;
    color: #333;
    text-align: justify;
    margin-bottom: 0.5rem;
    line-height: 1.7;
    animation: perfilTextFade 1.1s 0.4s both;
}
#perfil a {
    color: #1976d2;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}
#perfil a:hover {
    color: #005fa3;
}

@media (max-width: 900px) {
    #perfil {
        flex-direction: column;
        padding: 1.2rem 1vw;
        gap: 1.2rem;
        max-width: 98vw;
        align-items: center;
    }
    #perfil img {
        width: 140px;
        height: 140px;
        margin-bottom: 1rem;
    }
    #perfil section {
        align-items: center;
        text-align: center;
    }
    #perfil h2.subtitle {
        text-align: center;
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    #perfil {
        padding: 0.7rem 1vw;
        margin-top: 1rem;
        border-radius: 10px;
        gap: 0.7rem;
        font-size: 0.97rem;
    }
    #perfil img {
        width: 100px;
        height: 100px;
    }
    #perfil h2.subtitle {
        font-size: 1.1rem;
    }
}

/* Animaciones */
@keyframes perfilImgFade {
    from { opacity: 0; transform: scale(0.8);}
    to   { opacity: 1; transform: scale(1);}
}
@keyframes perfilTitleFade {
    from { opacity: 0; letter-spacing: 0;}
    to   { opacity: 1; letter-spacing: 1px;}
}
@keyframes perfilTextFade {
    from { opacity: 0; transform: translateY(20px);}
    to   { opacity: 1; transform: translateY(0);}
}

.titulo {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    animation: fadeInDown 1s ease-in-out;
}

/* Proyectos */
.experience-content {
    width: 100%;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;

}

.proyect {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(42, 42, 114, 0.10);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 8px solid #1976d2;
    animation: fadeInUp 1s;
}

.proyect:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18);
}

.proyect .detalle h3 {
    font-size: 1.2rem;
    color: #1976d2;
    margin-bottom: 0.7rem;
    font-weight: bold;
}

.proyect .anio {
    font-size: 1rem;
    color: #1976d2;
    font-weight: bold;
    margin-top: auto;
    align-self: flex-end;
}

/* Tipo de proyecto */
.proyect .tipo {
    color: #2a2a72;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.proyect .detalle p {
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    text-align: justify;
}
/* Sección Sobre Mí */
#sobremi {
    background-color: #ecf0f1;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: fadeIn 1.5s ease-in-out;
}

#sobremi ol,
#sobremi ul {
    list-style: none;
    margin-top: 1rem;
    padding-left: 0;
    flex-direction: row;
    gap: 0.7rem;
    flex: nowrap;
}

#sobremi li {
    position: relative;
    background: #f7faff;
    border-left: 5px solid #1976d2;
    border-radius: 8px;
    padding: 0.7rem 1.2rem 0.7rem 2.2rem;
    font-size: 0.85rem;
    color: #2a2a72;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.06);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: default;
}
#sobremi li::before {
    content: "★";
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #1976d2;
    font-size: 1.1em;
    opacity: 0.7;
}

#sobremi li:hover {
    background: #e6ecff;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.13);
    transform: translateX(6px) scale(1.03);
}
@media (max-width: 700px) {
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .proyect {
        padding: 1.2rem 0.8rem;
        min-height: 120px;
    }
    #sobremi ol, #sobremi ul{
        flex-direction: column;
        display: flex;
      
        gap: 0.5rem;
    }
}
/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

a {
    
    font-weight: bold;
    font-size: 0.75rem; /* Tamaño más pequeño para el texto */

}

#habilidades {
    gap: 0.7rem;
    background-color: #ffffff;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start; /* Alinea las tarjetas arriba */
    text-align: center;
    padding-top: 30px;
    margin-top: 20px;
}

.skill:hover{
    scale:1.2

}
#educacion.subtitle {
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.skill {
    width: 100px;
    height: 110px;
    padding: 0.3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    margin: 0.15rem; /* Espacio uniforme alrededor */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.skill img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.3rem;
    object-fit: contain;
    aspect-ratio: 3/2
}

.skill h3 {
    font-size: 0.85rem;
    margin: 0;
    color: #005fa3;
}

.skill .desc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    font-size: 14px;
    color: #333;
    margin-top: 0.5rem;
}

#introvideo {
    background: linear-gradient(120deg, #f0f4ff 60%, #e6ecff 100%);
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(0, 95, 163, 0.10);
    padding: 4rem 3rem;
    margin: 2.5rem auto 3rem auto;
    max-width: 1100px;
    width: 100%;
    display: flex;
    animation: fadeIn 1.2s;
    overflow: visible;
    flex-direction: row;
    align-items: center;
  
}

.introvideo-contenido {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#introvideo .subtitle {
    color: #1976d2;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 1px;
    font-weight: bold;
    animation: slideDown 1s;
}

#introvideo p {
    color: #333;
    font-size: 1.15rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 0.5rem auto;
    line-height: 1.7;
    animation: fadeInUp 1.2s;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.07);
}

.video-responsive {
    width: 100%;
    
    max-width: 900px;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.15);
    overflow: hidden;
    animation: fadeInUp 1.3s;

}



@media (max-width: 700px) {
    #introvideo {
        padding: 1.2rem 0.5rem;
        max-width: 98vw;
        flex-direction: column;
        
    }

    #introvideo .subtitle {
        font-size: 1.3rem;
    }
    #introvideo p {
        font-size: 1rem;
        padding: 0.5rem 0.5rem;
    }
}

@media (max-width: 480px) {
    #introvideo {
        padding: 0.7rem 0.1rem;
    }
    .video-responsive {
        max-width: 100vw;
        border-radius: 8px;
    }
    #introvideo .subtitle {
        font-size: 1.1rem;
    }
}
.video-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9; /* Para mantener proporción */
    margin: 0 auto;
    flex: 1;
}

.video-container iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
    top: 0;
    left: 0;
    border-radius: 8px;
}


@media (max-width: 900px) {
    #introvideo .introvideo-contenido {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    #introvideo .video-responsive {
        max-width: 100vw;
        aspect-ratio: 16/9;
        min-width: 0;
    }
    #introvideo p {
        max-width: 100vw;
        min-width: 0;
    }
}
footer p{
    text-align: right;
    font-style: italic;
    font-size: 0.8rem;
    padding: 1rem;
}





.flip-checkbox {
    display: none;
}

.card-inner {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    text-align: center;

    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-checkbox:checked + .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.card-front {
    background: #fff;
}



.card-back {
    background: #e6f7ff;
    color: #333;
    transform: rotateY(180deg);
    font-size: 0.7rem;
    text-align: justify;
}





ol, ul {
    text-align: left;
    display: inline-block;
    margin: 10px auto;
}
/* --- Sección Educación --- */
#educacion {
    background: linear-gradient(135deg, #f0f4ff, #e6ecff);
    padding: 40px 20px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.5s ease-in-out;
}

#educacion h2 {
    text-align: center;
    font-size: 2.5em;      /* Puedes ajustar el tamaño si lo ves muy grande */
    color: #2a2a72;
    animation: slideDown 1s ease-in-out;
    flex:1;
    height:min-content;
    letter-spacing: 1px;
}

#educacion ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeInUp 1.2s ease-in-out;
}

#educacion li {
    background-color: #ffffff;
    padding: 15px 25px;
    border-left: 8px solid #2a2a72;
    border-radius: 10px;
    font-size: 1.1em;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#educacion li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(42, 42, 114, 0.3);
}

/* --- Sección Certificaciones --- */
#certificaciones {
    margin-top: 50px;
    background: #fdfdfd;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.5s ease-in-out;
}

#certificaciones h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2a2a72;
    text-align: center;
    animation: slideDown 1s ease-in-out;
}

#certificaciones ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
    animation: fadeInUp 1.2s ease-in-out;
}

#certificaciones li {
    background-color: #eef2ff;
    padding: 15px 20px;
    border-left: 6px solid #5c7cfa;
    border-radius: 8px;
    font-size: 1em;
    color: #333;
    transition: all 0.3s ease;
}

#certificaciones li:hover {
    background-color: #dbe4ff;
    transform: scale(1.03);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

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

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

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




#contacto {
    width: 100%;
    max-width: 42rem;
    margin: 2rem auto;
    padding: 2rem 1rem;
    background: #f4f8fb;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
    align-content: center;
}

#contacto > h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: bold;
    letter-spacing: 1px;
}

#contacto > section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

#contacto h3{
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align: center;
}
.contacto-info,
.contacto-formulario {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 100%;
    box-sizing: border-box;

}

.contacto-formulario{
    display: flex;
    gap: 2rem;
}

.contacto-info p {
    padding-top: 20px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contacto-info iframe {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    display: block;
    min-height: 200px;
    min-width: 600px;
}
@media (max-width: 600px) {
    .contacto-info iframe {
        min-width: 150px;
        height: 120px;
        margin: 10px auto;
    }
}
.contacto-formulario form {
    display: flex;
    flex-direction: column;

    gap: 15px;
    column-count: 2;           /* Número de columnas en escritorio */
    column-gap: 2rem;          /* Espacio entre columnas */
}

.contacto-formulario label,
.contacto-formulario legend {
    font-weight: bold;
    margin-top: 10px;
    display: block;
    color: #333;
}

.contacto-formulario input,
.contacto-formulario select,
.contacto-formulario textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
}

.contacto-formulario input:focus,
.contacto-formulario select:focus,
.contacto-formulario textarea:focus {
    border-color: #0077cc;
    box-shadow: 0 0 5px rgba(0, 119, 204, 0.3);
    outline: none;
}

#contacto button {
    display: block;

    margin: 20px auto 0 auto; /* Centra horizontalmente y da espacio arriba */
    padding: 12px 80px;
    background-color: #0077cc;
    color: white;
    font-size: 1.1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    justify-content: center;
}

#contacto button:hover {
    background-color: #005fa3;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 119, 204, 0.2);
}
#contacto button:active::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 200%;
    height: 200%;
    background: rgba(0, 200, 83, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    animation: ripple-success 0.5s linear;
    pointer-events: none;
    z-index: 2;
}
@keyframes ripple-success {
    to {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}
#contacto button:active {
    background-color: #00c853;
    color: #fff;
    box-shadow: 0 0 0 4px #b9f6ca;
    outline: 2px solid #00c853;
    outline-offset: 2px;
}
.contacto-formulario fieldset {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    background-color: #fff;
}

.contacto-formulario input[type="radio"],
.contacto-formulario input[type="checkbox"] {
    margin-right: 8px;
}

.contacto-contenido{
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    flex:1;
}
.formulario {
    display: flex;
    flex-direction: column;
    
    min-width: 300px;
    max-width: 600px;
    justify-content: center;
}

@media (max-width: 600px) {
    .contacto-contenido {
        flex-direction: column;
    }

    #habilidades {
        gap: 0.2rem;
        padding-top: 10px;
        margin-top: 10px;
        flex:1;
    }
    #indices{
        flex-direction: row !important;
        align-items:start !important;
        gap: 0.3rem;
        width: 100%;
        max-width: 100vw;
        margin-top: 10px;
        padding: 0 0.2rem;
    }
      #indices span,
    #indices .texto,
    #indices .label {
        display: none !important;
    }
    #indices img{
        justify-content: center;
        align-items: center;
        padding-left: 1.3rem;
        height: 2.5rem;
        width: 4rem;
    }
    #l1, #l2, #l3, #l4, #l5, #l6 {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.95rem !important;
        width: 100%;
        min-width: 0;
        margin: 0 auto;
        text-align: center;
        border-radius: 6px;
    }
    .skill {
        width: 70px;
        height: 80px;
        font-size: 0.8rem;
        margin: 0.08rem;
    }
    .skill img {
        width: 35px;
        height: 35px;
    }
  #proyectos {
        border-radius: 0.5rem;
        margin: 1rem 0.2rem;
        flex:1;
    }
    #proyectos h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    .proyecto {
        padding: 0.7rem;
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }
    .proyecto h3 {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    #referencias {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.7rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1rem 0.2rem;
        align-items: stretch;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    #referencias article {
        min-width: 260px;
        max-width: 85vw;
        flex: 0 0 auto;
        margin-bottom: 0;
        scroll-snap-align: start;
    }
    #referencias h2 {
        min-width: 100vw;
        max-width: 100vw;
        flex: 0 0 100vw;
        text-align: center;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
table th, table td {
    padding: 12px;
    text-align: center;
}
table th {
    color: #003366;
}
section > form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}
input[type="text"],
select,
textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

button {
    padding: 10px;
    font-size: 16px;
    background-color: #005fa3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #007acc;

}

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

#proyectos {
    padding: 3rem 2rem;
    background: linear-gradient(to bottom, #f0f4ff, #ffffff);
    border-radius: 1rem;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#proyectos h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    border-bottom: 2px solid #b0bec5;
    padding-bottom: 0.5rem;
}

.proyecto {
    background: #ffffff;
    border-left: 5px solid #1976d2;
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proyecto:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.2);
}

.proyecto h3 {
    font-size: 1.4rem;
    color: #1565c0;
    margin-bottom: 0.8rem;
}

.proyecto p {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;

    margin: 0.5rem 0;
}

@media (max-width: 600px) {
    #proyectos {
        padding: 2rem 1rem;
    }

    .proyecto {
        padding: 1rem;
    }

    #proyectos h2 {
        font-size: 1.8rem;
    }

    .proyecto h3 {
        font-size: 1.2rem;
    }

    .proyecto p {
        font-size: 0.95rem;
        text-align: justify;
    }
}

#referencias {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    flex: 1;
    overflow: hidden;
    margin-top: 40px;
}

#referencias h2 {
    text-align: center;
    font-weight: 700;
    font-size: 2rem;
    color: #004a86;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    animation: slideDownFade 0.8s ease forwards;
}

#referencias h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #005fa3;
    margin: 8px auto 0;
    border-radius: 2px;
}

#referencias article {
    background-color: white;
    padding: 1.5rem 1.8rem;
    border-radius: 0.7rem;
    box-shadow: 0 4px 12px rgba(0, 95, 163, 0.15);
    margin-bottom: 1.5rem;
    text-align: justify;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;  
    will-change: transform;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.7s ease forwards;
    filter: drop-shadow(0 0 2px rgba(0, 95, 163, 0.2));
}

/* Aparición con delay escalonado */
#referencias article:nth-child(1) { animation-delay: 0.1s; }
#referencias article:nth-child(2) { animation-delay: 0.35s; }
#referencias article:nth-child(3) { animation-delay: 0.6s; }

/* Efecto hover */
#referencias article:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 95, 163, 0.4);
}

/* Brillo animado al hover */
#referencias article::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.0) 60%);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
    pointer-events: none;
    opacity: 0;
}

#referencias article:hover::before {
    left: 125%;
    opacity: 1;
    transition: left 0.7s ease;
}

#referencias p {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Nombres con animación de color */
#referencias .n {
    font-weight: 700;
    color: #005fa3;
    font-size: 18px;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
    animation: colorPulse 3s infinite alternate ease-in-out;
}

/* Ocupaciones con ligera animación de aparición */
#referencias .ocupacion {
    font-style: italic;
    font-weight: 600;
    color: #7a8a97;
    font-size: 13px;
    margin-bottom: 0.7rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.5s;
}

/* Descripciones con animación suave */
#referencias .descripcion {
    font-size: 14px;
    color: #444;
    line-height: 1.45;
    opacity: 0;
    animation: fadeInUp 1.4s ease forwards;
    animation-delay: 0.7s;
}

/* Estilo blockquote */
blockquote {
    font-style: italic;
    color: #555;
    border-left: 5px solid #005fa3;
    padding-left: 15px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    animation: slideInLeft 0.9s ease forwards;
}

/* Cambio de color en blockquote al hover article */
#referencias article:hover blockquote {
    color: #003f6a;
}

/* --- Animaciones Keyframes --- */

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes colorPulse {
    0% { color: #005fa3; }
    50% { color: #0078d7; }
    100% { color: #005fa3; }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


@media (max-width: 600px) {
    #referencias {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.7rem;
        overflow-x: unset;
        overflow-y: unset;
        padding: 1rem 0.2rem;
        align-items: stretch;
        scroll-snap-type: none;
    }
    #referencias article {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        flex: 1 1 100%;
        margin-bottom: 0;
        scroll-snap-align: unset;
    }
    #referencias h2 {
        min-width: 0;
        max-width: 100vw;
        flex: 0 0 100vw;
        text-align: center;
    }
}

@media (max-width: 900px) {
    #contacto {
        padding: 1.2rem 2vw;
        max-width: 98vw;
    }
    #contacto > section {
        flex-direction: column;
        padding: 18px 4vw;
        gap: 1.2rem;
        min-height: 0;
        max-width: 98vw;
    }
    .contacto-info,
    .contacto-formulario {
        flex-direction: column;
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    #contacto {
        padding: 0.7rem 1vw;
        margin: 0.5rem 0;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        gap: 0.7rem;
    }
    #contacto > h2 {
        font-size: 1.3rem;
        margin-bottom: 0.7rem;
    }
    #contacto > section {
        flex-direction: column;
        gap: 0.7rem;
        width: 100%;
    }
    .contacto-info,
    .contacto-formulario {
        max-width: 100vw;
        min-width: 0;
        padding: 0;
    }
}