*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, sans-serif;
}
#menu {
    background-color: rgba(32, 178, 170, 0.5);;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: background-color .3s, padding .3s;
    position: relative;
     width: 100%;
    z-index: 1000;
}
#menu.fixed{
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(32, 178, 170, 0.5);
    padding: 10px 0;
    backdrop-filter: blur(4px);
}
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1250px;
    margin: 0 auto;
}

.logo img {
    max-height: 40px;
}

.lista-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.lista-nav ul li {
    margin-left: 10px;
}

.lista-nav ul li a {
    text-decoration: none;
    color: #0D3F3D;
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 15px;
}

.lista-nav ul li a:hover {
    color: white;
}
.listah-nav {
    display: none;
    position: absolute;
    font-family: Arial, Helvetica, sans-serif;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(32, 178, 170, 0.5);;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    text-align: center;
        margin-bottom: 15px;
}
.listah-nav ul li a {
    text-decoration: none;
    color: #0D3F3D;
    font-weight: bold;
}
.listah-nav li {
    margin-bottom: 15px;
}


/*Boton hamburguesa*/
.hamburger-menu {
    width: 30px;
    height: 22px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    margin: 15px;
    
}

.hamburger-menu span {
    display: block;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

section{
    height: 100vh;
}

.seccion-hero {
    position: relative;
    text-align: center;
    padding: 80px 20px 80px; 
    color: #005858;
    overflow: hidden;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-contenido {
    position: relative;
    z-index: 1;
}

.texto-bienvenida {
    font-weight: 400;
    font-size: 1.5vw;
    color: #005858;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

h1 {
    font-weight: 400;
    font-size: 4vw; 
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
}

.logogrande {
    width: 35%;
    max-width: 1100px;
    margin:  auto;
    animation: float 3s ease-in-out infinite;
}
.sobremi {
    background: linear-gradient(to right, #004d4d, #04BFBF);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
}

.sobremi h2 {
    font-weight: 400;
    font-size: 2.5rem; 
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    margin-bottom: 2rem; 
}

.sobremi p {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    padding: 15px;
    font-size: 1.3rem;
    font-family: Arial, Helvetica, sans-serif;
}
.btn-toggle{
    background-color: #04BFBF;
    color: white;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgb(0,0,0, 0.1);
    font-size: 15px;
}

.seccion1{
    background: #fff;
    height: auto;
    padding: 10px 10px; 
    overflow: auto;
}
.section-tiin{
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    color: #04BFBF;
    text-align: center;
    margin-bottom: 40px;
}

.perfil-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.perfil-card {
    background-color: #004d4d;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.perfil-card h2{
    text-transform: uppercase;
    font-size: 1.5rem;

}
.pinfo{
    color: white;
    font-size: 1rem;
}


/* proyectos */
.proyectos{
    height: auto;
    background:#04BFBF; 
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    overflow: auto;
    align-items: center;
    justify-content: center;
}
.contenedor-cards{
    background: #04BFBF;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    overflow: auto;
}


.cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px; 
}

.card {
    width: 300px;
    box-shadow: 5px 5px 20px rgb(29, 86, 104);
    overflow: hidden;
    position: relative;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card img {
    width: 100%;
    height: 400px;
    border-radius: 3px;
    transition: .5s;
    object-fit: cover;
}

.intro {
    position: absolute;
    padding: 6px;
    bottom: 0;
    color: white;
    background: rgba(27, 27, 27, .5);
    transition: .5s;
    left: 0;
    right: 0;
    width: auto;
    height: 60px;
}

h4 {
    margin: 5px;
    font-size: 1.5rem;
}

.infocards {
    text-align: center;
    font-size: 0.9rem;
    padding: 10px;
    visibility: hidden;
    opacity: 0;
}

.card:hover{
    cursor: pointer;
}
.card:hover .intro{
    height: 55%;
    background: black;
    opacity: .8;
}
.card:hover p{
    opacity: 1;
    visibility: visible;
}
.card:hover img {
    transform: scale(1.1) rotate(-3deg);
}

/* Ilustraciones */
.ilustraciones {
    background-color: #04BFBF;
    height: auto;
    padding: 50px 20px; 
}

.section-title {
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.ilustracion-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap; 
}

.imagen-container {
    width: 300px;
    max-width: 90%; 
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.imagen-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.texto-container {
    flex-grow: 1;
    max-width: 600px;
    text-align: left; 
}

.item-title {
    color: #004d4d;
    margin-bottom: 5px;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.item-texto {
    color: white;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-top: 0;
}

.fotografias {
    background-color: #04BFBF;
    height: auto; 
    text-align: center;
    padding: 50px 20px;
}

.fotoss {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.foto-item {
    width: calc(50% - 20px);
    margin-bottom: 30px;
    text-align: center;
}

.foto-container {
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.foto-container img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}
/* contactos */
.contacto{
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 10px;
    background-color: white;
    gap: 50px;
}
.info-contenedor{
    flex: 1;
    max-width: 400px;
    color: #0D3F3D;
}
.titulo-contacto{
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.descripcion{
    color: #0D3F3D;
    font-size: 1.3rem;
    line-height: 1.6;
}
.form-contenedor{
    flex: 1;
    max-width: 500px;
}
.contact-form{
    display: flex;
    flex-direction: column;
}
.form-row{
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}
.form-datos{
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
.form-datos label{
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #0D3F3D;
}
.form-datos input,
.form-datos textarea{
    padding: 5px;
    border: 1px solid #004d4d;
    border-radius:5px;
    font-size: 1rem;
}
.form-datos textarea{
    resize: vertical;
}
.submit-button{
    padding: 12px 25px;
    background-color: #005858;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    align-self: flex-start;
}
.footer{
    background-color: #005858;
    color: white;
    padding: 20px 20px;
    text-align: center;
}
.contenido-footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.footer-social{
    display: flex;
    gap: 20px;
}
.social-icons{
    margin-top: 20px;
}
.social-icons a {
    color: #04BFBF;
    margin: 0 10px;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: #fff;
}
.textdefooter p{
    font-size: 1rem;
    margin: 0;

}
@keyframes float{
    0%, 100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-10px);
    }
}
@keyframes fadeIn{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}
@media (max-width: 768px) {
    .lista-nav {
        display: none;
    }
    .hamburger-menu {
        display: flex;
    }
    .mobile-nav li {
        margin: 0 0 15px 0;
    }
}
@media (max-width: 768px) {
    .perfil-container {
        flex-direction: column;
        align-items: center;
    }

}
@media (max-width: 768px) {
 
    /* --- Seccion Hero --- */
    .seccion-hero {
        padding: 40px 15px;
        min-height: 70vh;
    }

    .texto-bienvenida {
        font-size: 12px;
    }

    h1 {
        font-size: 2em;
    }

    .logogrande {
        width: 80%;
        max-width: 300px;
        margin: 20px auto;
    }

    /* --- Seccion Sobre Mi --- */
  .sobremi {
        min-height: auto; 
        padding: 2rem 1rem; 
    }

    .sobremi h2 {
        font-size: 2rem; 
        margin-bottom: 1rem; 
    }

    .sobremi p {
        padding: 10px; 
        font-size: 0.9rem; 
        width: 100%; 
    }
    .btn-toggle{
    padding: 0.5rem 1rem;
    margin-top: 15px;
    font-size: 13px;
    }

    /* --- Seccion Perfil --- */
   .perfil-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .perfil-card {
        width: 90%;
        max-width: 400px;
        padding: 10px;
    }

    .perfil-card h2 {
        font-size: 1rem;
    }

    .pinfo {
        font-size: 1rem;
    }
    
    /* --- Seccion Proyectos --- */
    .proyectos {
        padding: 2rem 1rem;
    }

    .proyectos h2 {
        font-size: 2.5rem;
    }

    .cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .card {
        width: 90%; 
        margin: 10px 0;
    }

    .card img {
        height: 400px;
    }

    .intro {
        height: 80px;
    }

    .intro h4 {
        font-size: 30px;
    }

    .infocards {
        font-size: 18px;
        padding: 20px;
    }

    /* --- Seccion Ilustraciones --- */
    .section-title {
        font-size: 2.5rem;
    }

    .ilustracion-item {
        flex-direction: column;
        text-align: center;
    }

    .imagen-container {
        width: 100%;
        max-width: 100%;
    }

    .texto-container {
        max-width: 100%;
        text-align: center;
    }

    .item-title {
        font-size: 30px;
    }

    .item-texto {
        font-size: 20px;
    }
    
    /* --- Seccion Fotos --- */
    .fotografias {
        padding: 30px 10px;
    }

    .fotoss {
        flex-direction: column;
        gap: 10px;
    }

    .foto-item {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Sección Contacto */
    .contacto {
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        padding: 30px 10px; 
        height: auto; 
        gap: 30px; 
    }

    .info-contenedor, .form-contenedor {
        max-width: 100%; 
    }

    .titulo-contacto {
        font-size: 35px; 
        margin-bottom: 15px; 
    }

    .descripcion {
        font-size: 18px; 
    }

    .form-row {
        flex-direction: column; 
        gap: 0; 
    }

    .form-datos label {
        font-size: 18px; 
    }

    .form-datos input, .form-datos textarea {
        font-size: 16px; 
    }

    .submit-button {
        align-self: center; 
        font-size: 20px; 
    }
       .footer {
        padding: 20px 10px; 
    }

    .contenido-footer {
        flex-direction: column; 
        align-items: center; 
        gap: 15px; 
    }

    .social-icons a {
        font-size: 28px; 
    }

    .textdefooter p {
        font-size: 18px;
    }
}
