@charset "utf-8";
/* CSS Document */

@font-face {
    font-family: 'italic_regular';
    src: url('fonts/barlowcondensed-italic-webfont.woff2') format('woff2'),
         url('fonts/barlowcondensed-italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'italic_light';
    src: url('fonts/barlowcondensed-lightitalic-webfont.woff2') format('woff2'),
         url('fonts/barlowcondensed-lightitalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'italic_bold';
    src: url('fonts/barlowcondensed-bolditalic-webfont.woff2') format('woff2'),
         url('fonts/barlowcondensed-bolditalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'regular';
    src: url('fonts/lexend-variablefont_wght-webfont.woff2') format('woff2'),
         url('fonts/lexend-variablefont_wght-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'titulo_escrito';
    src: url('fonts/heaters-webfont.woff2') format('woff2'),
         url('fonts/heaters-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

body {
	font-family: "regular";
	background-color: blanchedalmond;
	
	
	}



.cita {
	font-family: "italic_light";
	color: black;
	
}

.titulo{
	font-family: "courier new";
	width: 100%;
	color: #2601AD;
	overflow: hidden;
	white-space: nowrap;
    border-right: .15em solid #646464;
    animation: typing 4s steps(50, end) forwards, blink-caret 1s steps(50, end) 1s forwards;
    font-weight:bold;
}

h1 {
	font-family: "titulo_escrito";
	
}

                                                               /*Menu principal  */

header {
    background-color:#333333;
    color: white;
    padding: 20px;
    text-align: center;
    position: fixed;
	height: 80px;
}


header h1 {
    margin: 0;
}

nav {
    display: flex;
    align-items: center;
}

.menu-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    position: relative;
	align-items: center;
}

.bar {
    background-color: white;
    height: 4px;
    width: 30px;
    transition: 0.3s;
    position: absolute;
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
	width: 75%;
}

.bar:nth-child(3) {
    bottom: 0;
}

.menu-icon.open .bar:nth-child(1) {
    top: 50%;
    transform-origin: center;
    transform: rotate(45deg) translateY(-50%);
}

.menu-icon.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.open .bar:nth-child(3) {
    bottom: 48%;
    transform-origin: center;
    transform: rotate(-45deg) translateY(50%);
}

.nav-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 50vw;
    height: calc(100vh - 80px);
    position: fixed;
    top: 80px;
    left: -50vw;
    background-color: rgba(99,98,98,0.68);
    transition: left 0.5s ease;
    z-index: 9999;
    overflow-x: hidden;
}

.nav-links.show {
    left: 0;
	display: flex;
}

.nav-links li {
    padding: 20px;
    text-align: left;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.nav-links li a:hover {
    text-decoration: underline;
}

@media (min-width: 769px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -250px;
        width: 250px; 
        height: calc(100vh - 80px);
        background-color: rgba(99,98,98,0.68);
        transition: left 0.5s ease;
        z-index: 9999;
        overflow-y: auto;
    }

    .nav-links li {
        margin: 0 15px;
    }

    .nav-links li a {
        color: white;
    }

    .nav-links.show {
       left: 0;
    }
}

#cabecero {
    background-color: rgba(254, 164, 16, 1);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
	align-items: center;
	position:fixed;
	z-index: 1000;
	width: 100%;
	transition: background-color 0.5s ease;
}

.opciones_menu{
	flex: 1;
    display: flex;
    flex-direction: column;
}

.opciones_menu li {
	flex: 1;
}

.RRSS {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.flags {
    padding: 10px;
    padding-top:0px;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-right: 15px;
}



                                                       /*Fotos de la portada  */

.foto_portada {
    width: 75%;
    padding: 2px;
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 1s;
	height: auto;
}

.foto_portada.active{
	opacity: 1;
}

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

.container {
    width: 100%;
    display: flex;
	flex-direction: column;
    justify-content: center;
	align-items: center;
    padding: 20px;
    position: relative;
	height: 500px;
	margin-bottom: 250px;
}

#formulario .container{
	margin-bottom: auto;
}

                                                   /*Textos de la portada  */

.titulo_container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 12px;
}

.titulo {
    margin: 0;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 700;
    white-space: normal;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background-color: #646464;
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: bottom;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

@media (min-width: 768px) {
    .titulo {
        font-size: 2.2rem;
    }

    .titulo_container {
        padding: 24px;
    }
}

@media (min-width: 1200px) {
    .titulo {
        font-size: 2.8rem;
    }
}

.introduction {
  text-align: center;
  margin: 150px auto 50px;
  max-width: 1000px;
}

@media (max-width: 768px) {
  .introduction {
    margin: 60px 20px;
    text-align: left;
  }

  .introduction h2 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .introduction p {
    text-align: center;
    margin-top: 20px;
    letter-spacing: 0.2em;
  }
}

                                                            /* Formulario */
.formulario_contenedor {
    padding: 20px;
    z-index: 1;
    position: relative;
    background: #512AB1;
	background-opacity: 50%;
}

form {
    display: inline-block;
    text-align: left;
}

input {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.asterisco {
    color: #FF0004;
    margin-right: 5px;
}

                                                            /* Footer */

.footer{
	text-align: center;
	
}

                                                       /* Botones del centro */

.botones_centrados{
	text-align: center;
    margin-top: 20px;
	margin-right: 20px;
	margin-left: 20px;
	margin-bottom: 50px;
}

.botones_centrados button {
    font-size: 45px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    background-color: #4CAF50;
    color: white;
    transition: background-color 0.3s ease;
}

.botones_centrados button:hover {
    background-color: #45a049;
}

                                                        /* Cuerpo de la web */

main{
	padding-top: 80px;
}

                                                        /* PAGINA ABOUT ME */


.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
}

.about-image {
    width: 50%;
    display: flex;
    justify-content: flex-start;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.about-image.visible img {
    opacity: 1;
    transform: translateY(0);
}

.about-text {
    width: 50%;
    text-align: left;
    justify-content: flex-end;
}

                                                                    /* Pagina Portfolio */
.portfolio_section {
    text-align: center;
    margin: 40px auto;
    max-width: 80%;
}

                                                                  /* Carrusel contenedor */

.carousel-container {
    position: relative; /* Asegura que los elementos internos respeten su posición */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.carousel-description {
    text-align: center;
    font-size: 16px;
    margin-bottom: 20px; /* Espacio entre el texto y el carrusel */
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40%;
    margin: auto;
    margin-top: 20px; /* Ajusta este valor según lo necesites */
}

.carousel-track {
    display: flex;
    align-items: center;
    transition: transform 0.5s ease-in-out;
    padding-left: 50px;
}

.carousel-slide {
    flex: 0 0 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img
{
    width: 70%;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    border-radius: 10px;
}

.carousel-slide.active img 
{
    transform: scale(1.2);
    opacity: 1;
}

/* Ajuste de los botones */
button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10; /* Asegura que esté por encima de las imágenes */
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

button:hover {
    background: rgba(0, 0, 0, 0.8);
}