/* Cian dots in the background */
.dots1, .dots2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: -1; /* Detrás del contenido */
    pointer-events: none; /* No bloquea clics */
}

/* ROOT */
:root{
 --primary-color: #1CB4D2;
 --secondary-color: #36DAC0;
 --support-color: #005F73;
 --grey-color: #E6E6E6;
 --screen-phone: 768px;
 --screen-tablet: 1200px;
 --monitores-grandes: 1920px;
}




/* FONTS */
body{
    font-family: "Roboto Slab", serif;
}

h1, h2, h3, h4, h5, h6{
    font-family: "Roboto Slab", serif;
    text-align: center;
 }
p, a, button, li, input, label{
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-size: 18px;
    text-align: start;
    text-wrap: pretty;
  }

p{
    line-height: 1.4;
    padding: 0 2.8rem;
}
a{
    color: var(--primary-color);
}

/* .roboto-slab-<uniquifier> {
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
  } */

  
/* .roboto-<uniquifier> {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    font-variation-settings:
      "wdth" 100;
  } */


/* HEADER */
header {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espaciado entre logo y nav */
    background: white;
    padding: 10px 20px;
    width: 100%;
    max-width: 100vw;
    border-bottom: 1.5px solid var(--grey-color);
    transition: all 0.4s ease-in-out;
    box-sizing: border-box;
    z-index: 1000;
}

/* Sticky header */
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    background-color: white;
    border-bottom: 1px solid var(--grey-color);
    padding: 0px 20px;
    transition: all 0.4s ease-in-out;
    z-index: 1000;
}

/* Ajuste para los anclajes y que el header no los tape */
[id] {
    scroll-margin-top: 3.4rem;
}

/* Estilos para el logo */
.logo {
    height: 50px;
    order: 2; /* En pantallas grandes, el logo va a la derecha */
}

/* Estilos para el menú hamburguesa */
.hamburger-menu {
    display: none; /* Ocultar en pantallas grandes */
    cursor: pointer;
    order: 1; /* En móviles, el menú debe estar antes */
}

/* Estilos del nav */
nav {
    display: flex;
    align-items: center;
    order: 1; /* En pantallas grandes, el nav va a la izquierda */
    transition: all 0.4s ease-in-out;
}

/* Lista del menú */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding: 0;
}

nav ul li {
    display: inline;
    transition: transform 0.4s ease-in-out;
}

nav .active{
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: 4px; /* Ajusta el grosor del subrayado */
    text-underline-offset: 4px; /* Ajusta la distancia del subrayado respecto al texto */
    transition: all 0.4s ease-in-out;
}

@media (min-width: 1201px){
    nav ul li:hover{
        transform: scale(1.1);
    }
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-size: 16px;
}

/* Botón header */
nav .btn {
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: uppercase;
}

/* ========= MEDIA QUERIES PARA PANTALLAS PEQUEÑAS ========= */
@media (max-width: 768px) {
    header {
        justify-content: space-between; /* Logo y menú hamburguesa a la derecha */
    }

    .logo {
        order: 2; /* Mantiene el logo a la derecha */
    }

    .hamburger-menu {
        display: flex; /* Mostrar en pantallas pequeñas */
        order: 3; /* Mantenerlo a la derecha */
        cursor: pointer;
    }

    nav {
        display: none; /* Ocultar el nav por defecto */
        position: absolute;
        top: 100%; /* Ubicar debajo del header */
        left: 0;
        width: 100%;
        background: white;
        padding: 10px 0;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    nav ul li {
        text-align: center; /* Centra el texto dentro de los `li` */
    }
    /* Clases para mostrar el menú al hacer clic */
    nav.show {
        display: flex;
    }
}



/* HERO */
.hero h1{
    display: block; 
    margin-bottom: 0;
}
.hero p,
.subtitle p{
    text-align: center; 
    margin-top: 0.4rem;
    font-weight: 200;
    font-style: italic;
}



/* CONTAINERS */
/* SECCIÓN: Define padding arriba y abajo */
.section-container {
    padding: 1.5rem 0; /* Espaciado vertical */
}

/* CONTENIDO: Centra y limita el ancho */
.content-container {
    max-width: 1200px; /* Ancho máximo */
    margin: 0 auto; /* Centrar horizontalmente */
    padding: 0 1.5rem; /* Espaciado lateral */
    }


.white-background{
    background-color: whitesmoke;
}
.grey-background{
    background-color: var(--grey-color);
}
.black-background{
    color: whitesmoke;
    background-color: black;
}
.contact-background{
    color: whitesmoke;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.75)), url('/assets/img/contact-background.jpg');
    background-size: cover;
    background-position: center;
    background-position-y: top;
    background-repeat: no-repeat;
}
@media (max-width: 768px){
    .contact-background{
        background-image: none;
        background-color: black;
    }
}



/* BOTONES */
.hero button {
    display: inline-block;
    font-weight: bold;
    text-align: center;
    padding: 1rem 1rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color); 
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

/* Efecto hover: los botones sobresalen */
@media (min-width: 769px){
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: scale(1.1);
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    } 
}

.container-buttons {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    gap: 1rem; /* Espacio entre botones */
}

.about-buttons{
    justify-content: start;
    margin-left: 45px;
}

/* Diseño responsive: Si la pantalla es menor a 768px, los botones se apilan */
@media (max-width: 768px) {
    .container-buttons {
        flex-direction: column; /* Cambia de horizontal a vertical */
    }
}


/* ICONOS */
.social-media-icons a{
    display: inline-block; /* Asegura que los enlaces se comporten como bloques en línea */
    margin-right: 15px; /* Espaciado entre los íconos */
}

@media (min-width: 769px){
    .social-media-icons img,
    .social-media-icons button {
        opacity: 0.6;
        transition: all 0.3s ease-in-out;
    } 
    .social-media-icons img:hover,
    .social-media-icons button:hover {
        transform: scale(1.2);
        opacity: 1;
        transition: all 0.3s ease-in-out;
    } 
}


.social-media-icons img {
    height: 25px; /* Ajusta el alto fijo */
    width: auto; /* Mantiene la proporción de la imagen */
    vertical-align: middle; /* Alineación vertical */
}

/* Elimina el margen del último ícono */
.social-media-icons a:last-child {
    margin-right: 0;
}

.social-media-icons img .footer{
    height: 205px; /* Ajusta el alto fijo */
    transition: all 0.3s ease-in-out;
    opacity: 0.9;
}


#social-media-container2 img{
    height: 40px;
    opacity: 0.9;
}






/* ABOUT */
.content-1-3 {
    display: flex;
    align-items: center;
    gap: 20px; /* Espacio entre imagen y texto */
}

.img-1-3 {
    width: 280px; /* Ajusta según necesidad */
    height: auto;
    padding-top: 18px;
}

/* Diseño responsivo */
@media (max-width: 768px) {
    .content-1-3 {
        flex-direction: column;
        align-items: center;        
    }
    
    .img-1-3 {
        width: 120px; /* Imagen más pequeña en móviles */
        max-width: 90%; /* Imagen más pequeña en móviles */
        border-radius: 50%; /* Bordes redondeados opcionales */
    }
    
    .only-pc{
        display: none;
    }
}

@media (max-width: 400px) {
    .img-1-3 {
        display: none;
    }
}

/* FOOTER */
footer{
    border-top: 1.5px solid var(--grey-color);
    padding: 10px 20px;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#social-media-container2 {
    text-align: left;
}

.footer p {
    text-align: right;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
    } 
    .footer p{
        text-align: center;
    }
}


/* PROJECTS */
@media (min-width: 950px) {
    .project-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 5px;
    }

    .first-flex, .last-flex {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        padding: 25px; 
    }
    .last-flex a, .last-flex p, .last-flex ul {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

.project-container a{
    color: var(--primary-color);
}
.project-container li{
    line-height: 1.3;
}


#project h2,
#project h3,
#project h4,
#project h5,
#project h6{
    text-align: start;
}


/* CARGA PROYECTOS */
#project-container-dashboard {
    position: relative;
    width: 100%;
    min-height: 500px; /* Reserva espacio */
    margin: 50px auto; /* Margen arriba y abajo */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ddd;
    padding: 20px 0;
}

#loader {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    z-index: 10;
}

#loading-logo {
    width: 80px;
    height: auto;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}


/* PORFOLIO SECTION */
.portfolio-grid-container {
    display: flex;
    flex-wrap: wrap; /* Los elementos se moverán a la siguiente fila si exceden el ancho */
    gap: 30px;
    justify-content: center; /* Centra los elementos dentro del contenedor */
    margin-top: 20px;
}

.project-preview {
	cursor: pointer;
	border: 1px solid #ddd;
	background: #fafcfc;
	border-radius: 8px;
	box-sizing: border-box;
    width: 100%;
	max-width: 320px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.4s ease-in-out;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.project-preview img{
    width: 100%;
}
.project-preview a {
	display: block;
	color: black;
	text-decoration: none;
	margin: 0;
	padding: 0;
}
.project-preview h4,
.project-preview p{
	margin: 0;
   padding: 1rem;
}

@media (min-width: 1024px) {
    .project-preview {
        transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    }

    .project-preview:hover {
	transform: scale(1.1);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }
}

@media (max-width: 927px) {
    .project-preview {
        flex-basis: 45%; /* Ajusta el tamaño de los elementos para pantallas más pequeñas */
    }
}

@media (max-width: 426px) {
    .project-preview {
        flex-basis: 100%; /* En pantallas muy pequeñas, cada proyecto ocupará el 100% */
    }
}


/* SKILLS */
.skills-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.skills-container > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.skills-container img {
    max-width: 85px;
    max-height: 85px;
}

.skills-container p {
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 10px; /* Espacio entre la imagen y el texto */
    word-wrap: break-word; /* Permite que el texto haga un salto de línea */
    max-width: 90px; /* Limita el ancho del texto al tamaño de la imagen */
    overflow-wrap: break-word; /* Permite saltos de línea en palabras largas */
    text-align: center;
    display: block;
}


/* CV */
.cv{
    padding: 20px;
    background: #fff;
}

@media (min-width: 780px) {
    .cv{
        max-width: 800px;
        margin: 50px auto;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
}


.cv-data {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Espacio entre los bloques */
  }
  
  .cv-data-block,
  .cv-data-block a {
    display: flex;
    flex-direction: row; /* Alinea la imagen y el párrafo horizontalmente */
    align-items: center; /* Centra la imagen y el texto verticalmente */
    box-sizing: border-box;
  }
  
  .cv-data-block img {
    height: 1.2rem; 
    margin-right: 0;
  }
  
  .cv-data-block p {
    margin: 0; 
    padding: 0 5px 0 5px;
    text-align: left; 
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
  }

  .cv-data-block a {
    color:var(--support-color);
    text-decoration: none;
  }

  .content-cv{
    padding: 16px;
  }
  .content-cv h1{
    padding-top: 1.8rem;
  }
  .content-cv hr{
    margin: 0 38px;
    border: 0; 
    height: 1px; 
    background-color: var(--primary-color); 
  }
  .content-cv li{
    line-height: 1.6;
  }
  .content-cv li,
  .content-cv h2,
  .content-cv h3,
  .content-cv h4,
  .content-cv h5{
    margin: 0 35px 0 40px;
    text-wrap: pretty;
  }

  .content-cv ul ul{
    padding-left: 0;
  }


  .place-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite que los elementos se apilen en pantallas pequeñas */
}

/* Para pantallas pequeñas, los elementos se apilan */
@media (max-width: 600px) {
    .place-date {
        flex-direction: column;
        text-align: center;
    }
}

.content-cv h2{
    padding-top: 10px;
    text-align: start;
}
.place-date h4,
.place-date p {
    margin-top: 0;
    margin-bottom: 0;
}

.education .place-date{
    margin-top: 20px;
    margin-bottom: 0;
}
.education p{
    margin-top: 0;
    margin-bottom: 0;
}
.education h5{
    text-align: start;
}

/* Estilos del botón flotante */
.fixed-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.4s ease-in-out;
}

.fixed-btn:hover {
    transform: scale(1.1);
}


/* CONTACT-FORM */

form {
    padding: 20px;
    width: 350px;
}
@media (max-width: 768px){
    form {
        width: 95%;
        max-width: 350px;
    } 
}

form h3{
    padding: 0px;
    text-align: left;
    text-wrap: pretty;
}

input, textarea, button {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
    box-sizing: border-box; /* Asegura que el padding no afecte el tamaño */
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

form button:hover {
    background: #1fa9c4;
}

.whatsapp-form-group {
    display: flex;
    gap: 5px;
}

.checkbox{
    display: flex;
    margin: 5px 0 0;
}
.checkbox input{
    width: 50px;
}

.prefix {
    width: 20%;
}


#status-message {
    color: red;
    font-size: 14px;
}

form input{
    margin: 5px 0 20px;
    width: 100%;
}
.contact-form-container {
    width: 65%; /* El formulario ocupa el restante 65% */
}
.content-2-3{
    display: flex;
    width: 66%;
    align-items: center;
    gap: 20px; /* Espacio entre imagen y texto */
}
.img-2-3{
    display: flex;
    width: 40%;
    max-width: 350px;
    margin-right: 20px;
}
@media (max-width: 768px) {
    .img-2-3{
        display: none;
    }
}

.cf-turnstile{
    margin: 15px 0 5px;
}
@media (max-width: 480px) {
    .cf-turnstile {
        max-width: 90% !important;
        transform: scale(0.65); /* Reduce el tamaño */
        transform-origin: left;
    }
}




