
/*Parámetros iniciales*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

/*TITULOS*/
h1, h2, h3, h4, h5, h6,
.fw-bold, .fw-semibold, .text-uppercase, .servicio-card h6 {
    font-family: 'Barlow', sans-serif !important;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* PARRAFOS */
p, .habilidad, .servicio-card p, .banner-inicio p, .seccion-sobre-mi p, .text-muted {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400;
}

/* Fin Parámetros iniciales*/

/* Botones */
.btn-variante1 {
    background-color: white;
    color: black;
    font-family: 'Barlow', sans-serif;
    font-weight: bold;
    padding: 10px 20px;
}

.btn-variante1:hover {
    background-color: #D0D9E6!important;
    color: black;
}

.proyecto-link-underline {
  position: relative;
  display: inline-block;
  color: #3858E9;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1);
}
.proyecto-link-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: #3858E9;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.18s cubic-bezier(.4,0,.2,1);
  transform-origin: left;
}
.proyecto-link-underline:hover,
.proyecto-link-underline:focus {
  color: #758CF0
}
.proyecto-link-underline:hover::after,
.proyecto-link-underline:focus::after {
  transform: scaleX(1);
}

.btn .bi-arrow-right-short {
  color: #3858E9 !important;
}



.proyecto-link-underline2{
  position: relative;
  display: inline-block;
  color: white;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.proyecto-link-underline2::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.18s cubic-bezier(.4,0,.2,1);
  transform-origin: left;
}

.proyecto-link-underline2:hover,
.proyecto-link-underline:focus {
  color: white;
}
.proyecto-link-underline2:hover::after,
.proyecto-link-underline2:focus::after {
  transform: scaleX(1);
}

.btn-variante2{
    background-color: #3858E9;
    color: white;
    font-family: 'Barlow', sans-serif;
    font-weight: bold;
    padding: 10px 70px!important;
    border-radius: 2px;
}

.btn-variante2:hover{
    background-color: #758CF0;
    color: white;
}

.btn-variante2:focus{
    background-color: #A9B7F4!important;
    color: white!important;
}
/*Fin Botones */



/* Header */
.navbar{
    background-color: rgb(250, 250, 250);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus{
  color: #3858E9 !important;     
}
.navbar-nav .nav-link.active{
  color: #3858E9 !important;
  font-weight: 500;
}


.brand-name {
  display: inline-block;
  font-weight: bold;
}

.brand-name:hover {

  color: #3858E9;
}
/*FIN HEADER*/


/*Index*/
/* Banner de inicio */
.banner-inicio {
    background-color: #3858E9;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -8px #c1c1c1; /* Solo en el bottom */
}

.banner-inicio .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-inicio h1,
.banner-inicio p {
    color: white;
}

.banner-inicio p {
    font-size: 30px;
    font-weight: lighter;
}

.banner-inicio h1 {
  font-size: 4rem;
  font-weight: bold;
}

/* Sección sobre mí/habilidades */
.seccion-sobre-mi p {
    font-weight: 300;
    color: #171A1F;
}

.seccion-sobremi-parrafo{
    font-size: 1.125rem;
    color: #171A1F;
}

.span-seccion-sobre-mi {
    font-weight: bold;
    color: #3858E9;
    font-family: 'Barlow', sans-serif !important;
}

/*Sección habilidades */
.habilidad {
    background: white;
    font-weight: bold!important;
    border-radius: 2px;
    padding: 0.7rem 1.5rem;
    margin: 0.5rem auto;
    border: 1px solid #3858E9;
    box-shadow: 0 2px 8px rgba(56,88,233,0.08);
    display: inline-block;
    width: 175px;
    text-align: center;
    cursor: default;
    font-size: 14px;
}

.habilidad:hover {
    background: #3858E9;
    color: #fff!important;
}

/* Sección servicios */
.seccion-servicios {
    background-color: #3858E9;
    padding: 60px 0;
    margin-top: 100px;
    box-shadow: 0 0 25px #c1c1c1;
}

.servicio-card {
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    padding: 1.5rem;
    height: 100%;
}

.icon-box {
    width: 45px;
    height: 45px;
    background-color: white;
    border: 2px solid #3858E9;
    color: black!important;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.servicio-card h6 {
    font-size: 1rem;
}

.servicio-card p {
    font-size: .975rem;
}

/* Sección proyectos */
.text-uppercase {
    letter-spacing: 0.5px;
    font-family: 'Barlow', sans-serif !important;
}

.fw-bold, .fw-semibold {
    font-family: 'Barlow', sans-serif !important;
}

.text-muted {
    font-family: 'Inter', sans-serif !important;
}


/*Contacto*/
#form-contacto, #form-contacto input, #form-contacto textarea, #form-contacto label, #form-contacto button {
  font-family: 'Barlow', Arial, sans-serif !important;
  font-weight: 500;
}

#form-contacto input:focus, #form-contacto textarea:focus {
  border-color: #3858E9 !important;
  box-shadow: 0 0 0 2px rgba(56,88,233,0.15);
  outline: none;
}

/*Sección Entradas del blog index*/
.blog-cards-section {
    background: #3858E9;
    box-shadow: 0 0 25px #c1c1c1;
}

.blog-card {
    background: #fff;
    border-radius: 1rem;
    border: 2px solid transparent;
    transition:
        box-shadow 0.3s cubic-bezier(.4,0,.2,1),
        transform 0.3s cubic-bezier(.4,0,.2,1),
        border-color 0.3s cubic-bezier(.4,0,.2,1);
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 12px rgba(56,88,233,0.08);
}

.blog-card:hover, .blog-card:focus-within {
    transform: translateY(-8px) scale(1.025);
    border-color: #eaf0fb;
    box-shadow:
        0 6px 24px 0 rgba(56,88,233,0.13),
        0 0 0 2px #eaf0fb,
        0 0 24px 4px rgba(255,255,255,0.25),
        0 0 0 4px rgba(56,88,233,0.06);
    z-index: 2;
}

.btn-blog {
    background: #3858E9;
    color: #fff;
    font-weight: 600;
    border-radius: 2px;
    padding: 0.5rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-blog:hover, .btn-blog:focus {
    background: #223a8c;
    color: #fff;
}

.blog-card small {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 767.98px) {
  #form-contacto {
    border-radius: 12px;
    padding: 1.5rem 1rem;
    background: #fff;
    box-sizing: border-box;
  }
}

/* Footer */
footer {
    background: #3858E9;
    color: white;
    padding: 40px 0 20px 0;
    min-height: 220px;
    display: flex;
    align-items: center;
}
footer .container {
    max-width: 1100px;
    margin: 0 auto;
}
footer .row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 0;
}
footer .col-lg-4 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 220px;
    flex: 1 1 0;
    margin-bottom: 0 !important;
    text-align: left;
}
footer .col-lg-4 h3, footer .col-lg-4 h5, footer .col-lg-4 h6 {
    margin-bottom: 1rem;
    font-family: 'Barlow', sans-serif;
    font-weight: bold;
}
footer .col-lg-4 p, footer .col-lg-4 a, footer .col-lg-4 span {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
footer .col-lg-4 .d-flex.gap-3 {
    margin-bottom: 0.5rem;
}
footer .col-lg-4 .fs-5 {
    font-size: 2rem !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
footer .col-lg-4 .fs-5:hover {
    transform: translateY(-6px) scale(1.15);
    box-shadow: 0 4px 16px rgba(56,88,233,0.15);
    color: #fff !important;
    text-shadow: 0 2px 8px #223a8c;
}
footer .col-lg-4:last-child {
    align-items: flex-end;
    text-align: right;
}
@media (max-width: 991.98px) {
    footer .row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
    footer .col-lg-4 {
        align-items: center !important;
        text-align: center !important;
    }
    footer .col-lg-4:last-child {
        align-items: center !important;
        text-align: center !important;
    }
}
/*Fin index*/


/* PÁGINA SINGLE PROYECTO */
.contenedor-single-proyecto{
  background-color: #3858E9!important;
  box-shadow: 0 8px 16px -8px #c1c1c1 !important; /* Solo en el bottom */
  color: white;
}

.contenedor-imagen-single-proyecto img{
 border-color: none!important;
}


.sidebar-sugerencias {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    padding:25px!important;
}

@media (max-width: 991.98px) {
    .sidebar-sugerencias {
        align-items: center;
        text-align: center;
    }
    .btn-movil{
        display: block;
        margin: 0 auto !important;
        text-align: center;

    }
}


.sidebar-sugerencias h5 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    width: auto;
    max-width: 100%;
}

.sidebar-sugerencias h5::after {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: #bdbdbd;
    border-radius: 2px;
}

.sugerencia-item {
    position: relative;
    padding-bottom: 0.7rem;
    display: inline-block;
    width: auto;
    max-width: 100%;
}

.sugerencia-item .barra-azul-sugerencia {
    height: 2px;
    width: 100%;
    background: #3858E9;
    border-radius: 2px;
    position: absolute;
    right: 0;
    bottom: 0;
}


.featured-image-wrapper {
  width: 100%;
    height: 300px;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Fin PÁGINA SINGLE PROYECTO */




/*Página de proyectos*/
/* Badge de categoría*/
.badge-cat-proyecto {
  background: #fff !important;
  color: #3858E9 !important;
  border: 1.5px solid #3858E9;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3em 0.7em;
  border-radius: 0.5em;
}


.bg-proyecto-card a.text-white {
  color: #3858E9 !important;
}

/* Cards de proyectos */
.bg-proyecto-card {
  background: white !important;
  border-radius: 8px;
  border: 2px solid #3858E9!important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
transition: box-shadow 0.16s cubic-bezier(.4,0,.2,1), transform 0.16s cubic-bezier(.4,0,.2,1);
}

.bg-proyecto-card:hover {
  box-shadow: 0 4px 12px rgba(56,88,233,0.09), 0 1px 3px rgba(0,0,0,0.05);
  transform: translateY(-2px) scale(1.008);
}

.bg-proyecto-card .card-body {
  padding: 1.2rem 1rem !important;
}

.bg-proyecto-card .img-fluid.mb-3 {
  max-width: 90%;
  min-width: 35%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 0.8rem !important;
  border-radius: 6px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.bg-proyecto-card h5 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem !important;
}

.bg-proyecto-card p {
  font-size: 0.97rem;
  margin-bottom: 0.7rem !important;
  
}








/* BLOG ESTILO PROYECTOS */


/* Entrada destacada fondo azul */
.blog-page .destacada {
  background-color: #3858E9 !important;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
}

.w-90{
    width: 90% !important;
    border-radius: 0.1rem;
}

.blog-page .destacada .badge-cat-proyecto {
  background: #fff !important;
  color: #3858E9 !important;
  border: 1.5px solid #3858E9;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3em 0.7em;
  border-radius: 0.5em;
}
.blog-page .destacada h2,
.blog-page .destacada p,
.blog-page .destacada a {
  color: #fff !important;
}

/* Cards del carrusel igual que proyectos */
.blog-page .blog-card.bg-proyecto-card2 {
  background: white !important;
  border-radius: 8px;
  border: 1.5px solid #3858E9 !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transform: none!important;
}
.blog-page .blog-card.bg-proyecto-card2:hover {
  box-shadow: 0 4px 12px rgba(56,88,233,0.09), 0 1px 3px rgba(0,0,0,0.05);
  transition: none!important;
}
.blog-page .blog-card .badge-cat-proyecto {
  background: #fff !important;
  color: #3858E9 !important;
  border: 1.5px solid #3858E9;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3em 0.7em;
  border-radius: 0.5em;
}
.blog-page .blog-card h5,
.blog-page .blog-card p {
  color: #171A1F !important;
}
.blog-page .blog-card a {
  color: #3858E9 !important;
  font-weight: 600;
  text-decoration: none;
}
.blog-page .blog-card a:hover {
  text-decoration: underline;
}

/* Botones del carrusel solo icono y azul */
.blog-page .carousel-control-prev,
.blog-page .carousel-control-next {
  background: transparent !important;
  border: none !important;
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  z-index: 10;
}
.blog-page .carousel-control-prev i,
.blog-page .carousel-control-next i {
  color: #3858E9 !important;
  font-size: 2rem;
}
.blog-page .carousel-control-prev {
  left: -32px;
}
.blog-page .carousel-control-next {
  right: -32px;
}



@media (max-width: 991.98px) {
  .blog-page .carousel-control-prev,
  .blog-page .carousel-control-next {
    left: 8px !important;
    right: 8px !important;
  }
}