/*ESTILOS GENERALES*/

section  {
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
} 

h1 {
    font-size: 5rem;
    font-family: 'Akronim', cursive;
    font-family: 'Noto Sans Linear B', sans-serif;
    font-family: 'Raleway', sans-serif;
    font-family: 'Ruthie', cursive;
}

.seccion-oscura {
    color: #fff;
    background-color:#000;
}

.seccion-clara {
    color: #000;
    background-color: #fff;

}

.seccion-titulo {
    font-size: 3rem;
    padding: 15px 0;
    font-family: 'Akronim', cursive;
    font-family: 'Noto Sans Linear B', sans-serif;
    font-family: 'Raleway', sans-serif;
    font-family: 'Ruthie', cursive;
}

.seccion-titulo2 {
    font-size: 5rem;
    padding: 15px 0;
    font-family: 'Akronim', cursive;
    font-family: 'Noto Sans Linear B', sans-serif;
    font-family: 'Raleway', sans-serif;
    font-family: 'Ruthie', cursive;
}

.seccion-texto {
    font-size: 1.2rem;
}

.seccion-descripcion {
    font-size: 1.2rem;
    color: #584e4e;
}

.texto-negro {
    color: #000;
}

.texto-blanco {
    color: #fff;
}

/*Seccion Hero*/

.Hero {
    background: #f5f6f7;
    min-height: 360px;
    text-align: center;
    display:flex;
    justify-content:center;
    align-items:center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.Hero-principal {
    padding: 3rem;
}

.Hero-imagen-perfil {
    width: 200px;
    height: 200px;
    margin: 20px;
    align-self: center;
}

.Hero-inferior img {
    width: 300px;
    height: 300px;
    margin: 20px 50px;
    display: flexbox;  
}

@media (max-width: 430px){
    .Hero-inferior img {
        width: 30%px;
        height: 30%px;
        margin: 20px 50px;
        display: flexbox;  
    }
    
}
    


.Hero-principal h2 {
     font-size: 1.5rem;
     color: #615151;
}

/*Sobre mi*/

.Sobre-mi {
    height: 500px;
    padding: 10px;
}

.Sobre-mi .contenedor {
    max-width: 600px;
    text-align: center;
    align-items: center;
}

/*Barra de Navegacion*/
.nav-item {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 700;
}

.navbar {
    padding: 0.5rem 1rem;
}

/* Logo sizing: larger for desktop, constrained on small screens */
    .navbar-brand img { max-height: 88px; width: auto; height: auto; }

    @media (max-width: 576px) {
        .navbar-brand img { max-height: 56px; }
    }

/* For fixed navbar avoid overlap */
:root { --navbar-height: 88px; }
body { padding-top: var(--navbar-height); }
html { scroll-padding-top: calc(var(--navbar-height) + 12px); }

@media (max-width: 576px) {
    :root { --navbar-height: 56px; }
}

.nabar-collapse {
    align-items: center;
    justify-content: space-between;
}

/* Custom navbar background and visual tweaks (palette blue) */
.navbar-custom { background: linear-gradient(90deg, #1707E3 0%, #2b6cf6 100%); z-index: 1050; border-bottom: 2px solid rgba(255,255,255,0.03); backdrop-filter: blur(6px); }
.navbar-custom .navbar-brand img { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)); max-height: 88px; width: auto; height: auto; background: none; padding: 0; border-radius: 0; transition: transform .12s ease, box-shadow .12s ease; }

@media (max-width: 576px) {
    .navbar-custom .navbar-brand img { max-height: 56px; }
} 
.navbar-custom .navbar-brand img:hover { transform: scale(1.04); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }

/* Animated link underline and hover */
.navbar-custom .nav-link { color: rgba(255,255,255,0.95); font-weight:600; position:relative; transition: color .18s ease, transform .18s ease; }
.navbar-custom .nav-link::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 3px; width: 0; background: #ffd166; transition: width .22s ease; border-radius:2px; }
.navbar-custom .nav-link:hover { color: #ffd166; transform: translateY(-3px); }
.navbar-custom .nav-link:hover::after { width: 100%; }

/* Active link */
.navbar-custom .nav-link.active { color: #ffd166; }

/* Animated nav entrance and scrolled state */
.navbar.nav-animate .nav-link { opacity: 0; transform: translateY(-8px); }
.navbar.nav-animate .nav-item:nth-child(1) .nav-link { animation: navSlideIn .32s forwards .06s; }
.navbar.nav-animate .nav-item:nth-child(2) .nav-link { animation: navSlideIn .32s forwards .12s; }
.navbar.nav-animate .nav-item:nth-child(3) .nav-link { animation: navSlideIn .32s forwards .18s; }
@keyframes navSlideIn { to { opacity:1; transform: translateY(0); } }

/* Subtle enter animations for sections and cards */
.animatable { opacity: 0; transform: translateY(12px); transition: opacity .6s cubic-bezier(.2,.9,.2,1), transform .6s cubic-bezier(.2,.9,.2,1); will-change: opacity, transform; }
.animatable.in-view { opacity: 1; transform: translateY(0); }

/* Card hover micro-interaction */
.card { transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 10px 30px rgba(11,37,69,0.12); }
.card .card-body { transition: transform .18s ease; }

/* Button micro-interactions */
.btn { transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(1px) scale(.995); }

/* Pulse animation used for add-to-cart feedback */
@keyframes pulseScale { 0% { transform: scale(1); } 50% { transform: scale(1.14); } 100% { transform: scale(1); } }
.pulse { animation: pulseScale .36s ease; }

/* Hero title subtle fade */
.Hero-principal h1 { opacity:0; transform: translateY(6px); transition: opacity .6s ease, transform .6s ease; }
.Hero-principal.in-view h1 { opacity:1; transform: translateY(0); }


.navbar-custom.scrolled { padding: 0.25rem 1rem; box-shadow: 0 8px 24px rgba(11, 37, 69, 0.12); transition: padding .18s ease, box-shadow .18s ease, background .18s ease; }

/* Make sure anchors don't get hidden by the fixed navbar */
section { scroll-margin-top: calc(var(--navbar-height) + 12px); }

/* Ajuste para evitar solapamientos en sección de contacto */
.contacto .rectangulo { margin-top: -2rem; }

/* small screen tweak - keep brand visible */
@media screen and (max-width: 767px) {
       /* Small screens handled above; keep defaults consistent */
       .navbar-brand img { max-height: 56px; }
}

/* Collapse show animation (subtle) */
.navbar .collapse.show { animation: fadeInDown .18s ease; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } } 

/* Ensure cart offcanvas opens just below the fixed navbar */
#cartOffcanvas.offcanvas {
    top: var(--navbar-height) !important;
    height: calc(100% - var(--navbar-height)) !important;
    z-index: 1060 !important; /* above navbar (1050) so it's visible */
    /* small visual tweak so offcanvas content isn't covered by shadow */
    box-shadow: none;
}

/* Make sure backdrop sits under offcanvas but above content */
.offcanvas-backdrop {
    z-index: 1055 !important;
}

/* Accessibility & touch targets */
@media (max-width: 767px) {
    /* Ensure cart button is a comfortable tap target on small screens */
    #cart-button { padding: .45rem .6rem; min-width: 44px; min-height: 44px; }
}

/* Focus-visible outlines for better keyboard navigation */
:focus-visible { outline: 3px solid rgba(255,209,102,0.9); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .nav-link:focus-visible, .btn-close:focus-visible {
    outline: 3px solid rgba(255,209,102,0.95);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Image sizing: show full images without cropping; scale responsively */
.card-img-top, .producto img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain; /* show whole image */
    object-position: center;
    background: #f8f9fa; /* neutral backdrop for letterboxing */
    padding: 4px;
    display: block;
}

/* Small-screen tweak: reduce max-height for narrow devices */
@media (max-width: 576px) {
    .card-img-top, .producto img { max-height: 220px; }
}

.Experiencia .columna {
    padding: 20px;
    border: 2px solid #8080804d; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    transition: all 0.2s ease-in;
}

.Experiencia .columna:hover {
    color: #fff;
    background-color: rgb(23, 7, 227);
}    

.Experiencia .row div {
    height: 250px;
    background-color: #f5f6f7;
}
.Experiencia p{
    font-size: 14px ;
}
.Experiencia-titulo {
    font-size: 25px;
    font-weight: bold;
    margin: 10px 0;
}

.badges-contenedor {
    font-size: 16px;
    font-weight: bold;  
    flex-direction: unset;
}

.badge {
    margin: 5px;
}

.Experiencia i {
    font-size: 1.8rem;
    color:red ;  
    background-color: #000;  
    padding: 8px 19px;
    border-radius: 50%;
    margin: 5px;
}

/*Productos*/

.productos {
    padding: 40px; 
    font-size: 2rem;
}

/* Cards: make all cards same height and images cover */
.card { height: 100%; display:flex; flex-direction:column; }
.card .card-body { display:flex; flex-direction:column; justify-content:space-between; }
/* handled above: unified image sizing to avoid cropping */

.producto img {
    padding: 0;
    border-radius: 10px;
    display: block;
    transition: all 0.2s ease;
}

.producto-contenedor {
    padding-top: 60px;
    margin-bottom: 40px;
}

/* Ensure product card columns are equal height */
.row > [class*='col-'] { display: flex; }
.row > [class*='col-'] .card { flex:1; }

/* Make buttons visually consistent */
.add-to-cart { margin-top: 8px; }

.overlay {
    transition: all 0.2s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    align-content: center;
}

.producto {
    position: relative;
    flex-direction: row;
}

.overlay p {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 0;
}

.producto:hover img {
    opacity: 0.2;
    flex-direction: row;
}

.producto:hover .overlay {
    opacity: 1;
}

.overlay .iconos .contenedor {
    display: flex;
}

.overlay i {
    color: #000;
    font-size: 60px;
    margin: 10px;
}

/*Contacto*/

.contacto .container {
     max-width: 1100px;
     min-height: 200px;
     padding: 20px;
}

.contacto .rectangulo {
    margin-top: -5rem;
    background-color: rgb(23, 7, 227);
    border-radius: 10px;
    box-shadow: 0px 1px 4px 1px #fff;
}
.contacto .row {
    width: 100%;
    display: flex;
    align-items: center;
}

.contacto .descripcion {
    color: #fff;
    font-size: 1.2rem;
}

.contacto button {
    color: #fff; 
    font-weight: bold;
    background-color:transparent;
    border: 2px solid #fff;
    padding: 1.25em 2em;
    margin: 10px;
    border-radius: 100px ;
    transition: all 0.2s ease-in-out;
}

.contacto button:hover {
    background-color: #fff;
    color: rgb(23, 7, 227);
}

.contacto button i {
     color: red;
     font-size: 1.5rem;
     transition: all 0.2s ease-in-out;
}

/*Footer*/

footer{
    min-height: 500px;
}

.footer-logo {
    height: 250px;
    width: 250px;
    margin: 10px;
    align-content: center;
    align-self: center;
}

.footer-texto{
    font-size: 2rem;
    padding: 20px;
    margin-bottom: 30px;
    font-family: 'Akronim', cursive;
    font-family: 'Noto Sans Linear B', sans-serif;
    font-family: 'Playball', cursive;
    font-family: 'Raleway', sans-serif;
    font-family: 'Ruthie', cursive;
}

.iconos-redes-sociales a {

    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; 
    margin: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    transition: all 0.2s ease-in;
}

.iconos-redes-sociales i {
    color: #fff;
    font-size: 3rem;
    transition: all 0.2s ease-in;
}

.iconos-redes-sociales a:hover {
     background-color: #000;
     border: 2px solid rgb(23, 7, 227);
}

.iconos-redes-sociales a:hover i {
    color: red;
}

.derechos-de-autor {
    font-size: 15px;
    color: #aeaeae;
    padding: 20px ;
    text-align: center;
}



/*Adaptable (responsivo)*/

@media screen and (max-width: 400px) {
    .overlay p {
        font-size: 18px;
   }
   .overlay i {
    font-size: 40px;
   }
}

@media screen and (min-width: 700px) {
    .Hero-inferior-imagen {
        max-width: 300px;
    }
}