body, html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e7edf3;
    z-index: 9999;
    transition: opacity 1s ease;
    flex-direction: column;
    pointer-events: none;
}

#splash[style*="display: none"] {
    z-index: -1 !important;
    pointer-events: none !important;
}

.splash-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    animation: spin-horizontal 2.5s linear infinite;
}
@keyframes spin-horizontal {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

#inicio {
    height: 100vh;
    background: url('../assets/fondo_web.png') no-repeat center center/cover;
}

.typing-text {
    border-right: 2px solid white;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(40, end) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/*Seccion formacion y exp laboral*/
.card-custom, .custom-card {
    border: none;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 2rem 2rem 1.5rem 2rem;
    margin-bottom: 2rem;
    width: 100%;
    transition: transform 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.35s cubic-bezier(.4,2,.6,1), border-color 0.2s;
    position: relative;
    overflow: visible;
    z-index: 1;
    min-width: 0;
}

.card-custom:hover, .custom-card:hover {
    transform: scale(1.035) translateY(-6px);
    box-shadow: 0 8px 32px rgba(0,123,255,0.18);
    border-color: #0dcaf0;
    z-index: 2;
    cursor: pointer;
}

.card-custom .icon, .custom-card .icon {
    font-size: 1.4rem;
    color: #0dcaf0;
    vertical-align: middle;
}

/* Animación bounce para el bloque perfil+flecha */
.perfil-bounce-area {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
    z-index: 21;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.perfil-bounce-area span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #000;
    margin-bottom: 0.2rem;
    user-select: none;
}
.perfil-bounce-area .scroll-down {
    outline: none;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    position: static;
    z-index: 20;
}
.perfil-bounce-area .scroll-down i {
    color: #fff;
    font-size: 2rem;
    pointer-events: none;
    transition: color 0.2s;
}

/* Bounce animación al hacer hover en el área */
.perfil-bounce-area:hover .scroll-down i,
.perfil-bounce-area:focus-within .scroll-down i {
    animation: bounce-soft 1s cubic-bezier(.4,1.5,.6,1);
}
.perfil-bounce-area:hover span,
.perfil-bounce-area:focus-within span {
    color: #e0e0e0;
    text-shadow: 0 2px 12px #000;
}

@keyframes bounce-soft {
    0%   { transform: translateY(0); }
    20%  { transform: translateY(-10px); }
    40%  { transform: translateY(0); }
    60%  { transform: translateY(-5px); }
    80%  { transform: translateY(0); }
    100% { transform: translateY(0); }
}

/* SOBRE MÍ - Minimalista, profesional, animado */
.sobre-mi-section {
    background: #f7f9fb;
    min-height: 60vh;
    position: relative;
    overflow: hidden;
}
.sobre-mi-title {
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #222;
    margin-bottom: 2.5rem;
    text-align: center;
}
.sobre-mi-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}
.sobre-mi-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(13,202,240,0.18); /* azul #0dcaf0 */
    padding: 2.2rem 2rem 2rem 2rem;
    transition: box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}
.sobre-mi-card:hover {
    box-shadow: 0 8px 32px rgba(13,202,240,0.22); /* azul #0dcaf0 más intenso */
}
.sobre-mi-hi {
    font-size: 1.1rem;
    color: #0dcaf0;
    font-weight: 500;
    letter-spacing: 1px;
}
.sobre-mi-nombre {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    display: block;
    margin-bottom: 0.1rem;
}
.sobre-mi-profesion {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
    display: block;
    margin-bottom: 0.3rem;
    margin-top: 0;
}
.sobre-mi-divider {
    border: none;
    border-top: none;
    width: 40%;
    margin: 0.7rem 0 1.1rem 0;
    animation: none;
}
.sobre-mi-desc {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 0;
}
.sobre-mi-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 320px;
    position: relative;
}
.sobre-mi-foto {
    width: 260px;
    height: 340px;
    object-fit: cover;
    border-radius: 18px !important; /* Forzar esquinas redondeadas */
    box-shadow: none !important;
    border: 4px solid #fff;
    transition: transform 0.5s cubic-bezier(.4,1.5,.6,1);
}
.sobre-mi-img-wrapper:hover .sobre-mi-foto {
    transform: scale(1.04) rotate(-2deg);
    box-shadow: 0 6px 32px rgba(13,202,240,0.18) !important;

}
@media (max-width: 991px) {
    .sobre-mi-row {
        flex-direction: column-reverse !important;
        gap: 2rem;
    }
    .sobre-mi-img-wrapper {
        min-height: 220px;
    }
    .sobre-mi-foto {
        width: 180px;
        height: 240px;
        border-radius: 12px !important;
    }
}
@media (max-width: 575px) {
    .sobre-mi-card {
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    }
    .sobre-mi-title {
        font-size: 1.5rem;
    }
}

/* HABILIDADES TÉCNICAS - Profesional y moderno */
.habilidades-section {
    background: #fff;
    position: relative;
    overflow: hidden;
}
.habilidades-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 2.5rem !important;
    letter-spacing: 0.5px;
}
.habilidades-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: nowrap;
}
.habilidades-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}
.habilidades-img {
    max-height: 320px;
    border-radius: 0;
    box-shadow: none;
    background: none;
    padding: 0;
    width: 100%;
    object-fit: contain;
}
.habilidades-list {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
.habilidad-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.habilidad-label {
    display: flex;
    align-items: center;
    gap: 0.6em;
    min-width: 0;
}
.habilidad-icon {
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    vertical-align: middle;
}
.habilidad-nombre {
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 4px #e7edf3;
}
.habilidades-progress {
    height: 0.7rem;
    background: #e7edf3;
    border-radius: 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}
.habilidades-bar {
    border-radius: 0.7rem;
    box-shadow: 0 2px 8px rgba(13,110,253,0.08);
    transition: width 1.2s cubic-bezier(.4,1.5,.6,1);
}
@media (max-width: 991px) {
    .habilidades-row {
        flex-direction: column !important;
        gap: 2rem;
        flex-wrap: wrap;
    }
    .habilidades-img {
        max-height: 180px;
    }
    .habilidades-list {
        max-width: 100%;
    }
}
@media (max-width: 575px) {
    .habilidades-title {
        font-size: 1.3rem;
    }
    .habilidades-img {
        max-height: 110px;
    }
}

/* TRAYECTORIA */
.trayectoria-title {
    font-weight: 700;
    letter-spacing: 1px;
    color: #222;
    margin-bottom: 2.5rem;
    text-align: center;
}
.trayectoria-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0dcaf0;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    position: relative;
    text-align: center;
    padding-left: 0;
}
.trayectoria-subtitle::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    background: linear-gradient(180deg, #0dcaf0 60%, #61DBFB 100%);
    border-radius: 3px;
    position: static;
    margin-right: 10px;
}
.card-custom .icon,
.custom-card .icon {
    font-size: 1.4rem;
    color: #222 !important;
    vertical-align: middle;
}
.card-custom h5,
.custom-card h5 {
    color: #222 !important;
    font-weight: 600;
}
.card-custom,
.custom-card {
    border: none;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 2rem 2rem 1.5rem 2rem;
    margin-bottom: 2rem;
    width: 100%;
    transition: transform 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.35s cubic-bezier(.4,2,.6,1), border-color 0.2s;
    position: relative;
    overflow: visible;
    z-index: 1;
    min-width: 0;
}
.card-custom:hover,
.custom-card:hover {
    box-shadow: 0 8px 32px rgba(0,123,255,0.18);
    border-color: #0dcaf0;
    transform: scale(1.035) translateY(-6px);
    z-index: 2;
    cursor: pointer;
}
.card-custom .text-muted,
.custom-card .text-muted {
    color: #888 !important;
}
.trayectoria-section .row.justify-content-center {
    justify-content: center !important;
}
.trayectoria-section .col-md-8 {
    margin-left: auto;
    margin-right: auto;
    float: none;
}
.trayectoria-title,
.trayectoria-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* PROYECTOS - Carrusel y tarjetas */
.proyectos-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 2.2rem;
    letter-spacing: 0.5px;
}
.proyectos-carousel-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.proyecto-card {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    min-height: 380px;
    padding: 2.5rem 0rem 2.5rem 0rem;
    box-sizing: border-box;
    background: #fff;
    border-radius: 0 !important; /* Sin bordes redondeados */
    box-shadow: none !important; /* Sin sombra */
    transition: none !important;
    border: none !important; /* Sin borde */
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.carousel-inner.rounded-3.shadow-sm {
    min-height: 220px;
    display: flex;
    align-items: center;
}
/* Fix Bootstrap carousel hidden images bug */
.carousel-item > img {
    display: block !important;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.carousel-item:not(.active) > img {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}
@media (max-width: 1200px) {
    .proyectos-carousel-wrapper, .proyecto-card {
        max-width: 98vw;
    }
}
@media (max-width: 991px) {
    .proyecto-card {
        flex-direction: column !important;
        padding: 1.2rem 0.2rem 1.2rem 0.2rem;
        min-height: 700px; /* Más alto para que quepan las imágenes */
        max-width: 100%;
        height: 700px; /* Alto fijo para evitar efecto de hinchado y mostrar galería completa */
        transition: none !important;
    }
    .proyecto-img-carousel {
        max-width: 100%;
        margin-top: 1.2rem;
    }
}
@media (max-width: 575px) {
    .proyectos-title {
        font-size: 1.3rem;
    }
    .trayectoria-title {
        font-size: 1.3rem;
    }
    .proyecto-nombre {
        font-size: 1.1rem;
    }
    .proyecto-img-carousel img {
        min-height: 120px;
        max-height: 180px;
    }
}


@media (max-width: 991px) {
    .proyecto-card {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}



/* Carrusel principal de proyectos: flechas y puntos SIEMPRE visibles y mejorados */
#proyectosCarousel .carousel-control-prev,
#proyectosCarousel .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #0dcaf0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    z-index: 10;
    opacity: 1;
    transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
}
#proyectosCarousel .carousel-control-prev-icon,
#proyectosCarousel .carousel-control-next-icon {
    filter: none;
    background-size: 70% 70%;
    width: 2rem;
    height: 2rem;
    background-color: transparent;
    color: #fff;
    opacity: 1;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: opacity 0.2s;
}
#proyectosCarousel .carousel-control-prev:hover,
#proyectosCarousel .carousel-control-next:hover {
    opacity: 0.7;
    background: #0dcaf0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
#proyectosCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#proyectosCarousel .carousel-control-next:hover .carousel-control-next-icon {
    color: #fff;
    opacity: 1;
    background-color: transparent;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
#proyectosCarousel .carousel-indicators {
    position: static;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.7rem;
}
#proyectosCarousel .carousel-indicators [data-bs-target] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0e6ed;
    border: 2px solid #0dcaf0;
    opacity: 1;
    transition: background 0.2s, border 0.2s;
}
#proyectosCarousel .carousel-indicators .active {
    background: #0dcaf0;
    border: 2px solid #0dcaf0;
}

.proyecto-img-carousel img {
    max-height: 220px;
    min-height: 120px;
    object-fit: contain;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e0e6ed;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0.5rem;
    margin: 0 auto;
    display: block;
}

.proyecto-nombre {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0dcaf0;
    margin-bottom: 0.7rem;
    letter-spacing: 0.5px;
}
.proyecto-desc {
    font-size: 1.08rem;
    color: #444;
    margin-bottom: 0.7rem;
}
.proyecto-tecnologias .badge {
    font-size: 0.98rem;
    font-weight: 600;
    padding: 0.5em 1em;
    border-radius: 1.2em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    letter-spacing: 0.2px;
}

@media (max-width: 991px) {
    .proyecto-card {
        flex-direction: column !important;
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
        min-height: 0;
        max-width: 100%;
        gap: 1rem;
    }
    .proyecto-img-carousel img {
        max-height: 160px;
        min-height: 80px;
    }
}
@media (max-width: 575px) {
    .proyecto-nombre {
        font-size: 1.08rem;
    }
    .proyecto-img-carousel img {
        max-height: 110px;
        min-height: 60px;
    }
    #proyectosCarousel .carousel-control-prev,
    #proyectosCarousel .carousel-control-next {
        width: 36px;
        height: 36px;
    }
    #proyectosCarousel .carousel-control-prev-icon,
    #proyectosCarousel .carousel-control-next-icon {
        width: 1.2rem;
        height: 1.2rem;
    }
    #proyectosCarousel .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
    }
}

/* Galería de imágenes profesional para proyectos */
.proyecto-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
}
.proyecto-gallery-main {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
   
    min-height: 180px;
    max-height: 240px;
    padding: 0.5rem;
}
.proyecto-main-img {
    max-width: 100%;
    max-height: 220px;
    min-height: 100px;
    object-fit: contain;
    border-radius: 0.7rem;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    background: #fff;
}
.proyecto-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.proyecto-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid #e0e6ed;
    cursor: pointer;
    opacity: 0.7;
    transition: border 0.2s, opacity 0.2s, transform 0.2s;
    background: #fff;
}
.proyecto-thumb.active,
.proyecto-thumb:hover {
    border: 2px solid #0dcaf0;
    opacity: 1;
    transform: scale(1.08);
    z-index: 2;
}
@media (max-width: 991px) {
    .proyecto-gallery-main {
        min-height: 120px;
        max-height: 160px;
    }
    .proyecto-main-img {
        max-height: 120px;
    }
    .proyecto-thumb {
        width: 38px;
        height: 38px;
    }
}
@media (max-width: 575px) {
    .proyecto-gallery-main {
        min-height: 70px;
        max-height: 90px;
    }
    .proyecto-main-img {
        max-height: 70px;
    }
    .proyecto-thumb {
        width: 26px;
        height: 26px;
    }
}

/* Proyecto: layout horizontal, info a la izq, galería a la derecha */

.proyecto-info {
    min-width: 260px;
    max-width: 540px;
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.proyecto-gallery-wrapper {
    min-width: 220px;
    flex: 0 1 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 991px) {
    .proyecto-card {
        flex-direction: column !important;
        gap: 1.2rem;
    }
    .proyecto-info, .proyecto-gallery-wrapper {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        align-items: center;
        text-align: center;
    }
}

#proyectosCarousel .carousel-control-prev,
#proyectosCarousel .carousel-control-next {
    background: #0dcaf0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: opacity 0.2s;
}
#proyectosCarousel .carousel-control-prev-icon,
#proyectosCarousel .carousel-control-next-icon {
    color: #fff;
    opacity: 1;
    background-color: transparent;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: opacity 0.2s;
}
#proyectosCarousel .carousel-control-prev:hover,
#proyectosCarousel .carousel-control-next:hover {
    opacity: 0.7;
}
#proyectosCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#proyectosCarousel .carousel-control-next:hover .carousel-control-next-icon {
    color: #fff;
    opacity: 1;
    background-color: transparent;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.contacto-icon-link {
    color: #fff !important;
    transition: color 0.2s, transform 0.2s;
    opacity: 0.85;
}
.contacto-icon-link:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.12);
    text-decoration: none;
}

.btn-contacto {
    background: #fff;
    color: #222;
    border: 2px solid #fff;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.btn-contacto:hover, .btn-contacto:focus {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}


