* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;    
}
body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.header {
  background-color: #f8f8f8;
  padding: 1rem 0;


  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navegación */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Menú */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-menu a {
  text-decoration: none;
  color: #333;
}

.nav-menu a:hover {
  color: #e74c3c;
}


/* HERO */
.hero {
    height: 100vh;    
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('../img/hero.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;

    /*LE AGREGAMOS UN DETALLE A LA IMAGEN DENTRO DEL HERO*/
    background-attachment: fixed;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-description {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.6s backwards;
}
/* BOTÓN */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s;
    animation: fadeInUp 1s ease 0.8s backwards;
}
.btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}
/* ANIMACIÓN */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================================
   BOTÓN HAMBURGUESA
   ========================================== */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}
.hamburger .bar {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: all 0.3s;
    border-radius: 3px;
}
/* Animación del hamburguesa */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================
   ABOUT SECTION 
   ========================================== */
.about {
    background: #f8f9fa;
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.about p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.info {
    list-style: none;
}

.info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
    color: #666;
}

.info strong {
    color: #2c3e50;
}

.about-image {
    width: 100%;
    max-width: 50vh; /* Tamaño del contenedor */
    height: 50vh; /* Altura del contenedor */
    margin: 0 auto;
    overflow: hidden; /* Oculta lo que se salga */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.4); /* Agranda la imagen 40% */  
}

/* PORTFOLIO SECTION */
.portfolio {
    padding: 5rem 2rem;
    background: white;
}

.portfolio h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}
.portfolio .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

/* GRID RESPONSIVO */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
/* PORTFOLIO ITEM */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
/* EFECTO HOVER EN LA IMAGEN */
.portfolio-item:hover img {
    transform: scale(1.1);
}
/* OVERLAY (LA CAPA OSCURA CON TEXTO) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* OVERLAY VISIBLE AL HOVER */
.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.overlay p {
    color: #e74c3c;
    font-weight: 500;
}







/* ==========================================
   RESPONSIVE - TABLETS Y MÓVILES
   ========================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 0;
    }
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }


 /* ABOUT SECTION */
    .about {
        padding: 3rem 1rem;
    }
    
    .about h2 {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .portfolio-item img {
        height: 250px;
    }

}


/* ==========================================
   RESPONSIVE - MÓVILES PEQUEÑOS
   ========================================== */
@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }    
    .hero-subtitle {
        font-size: 0.95rem;
    }    
    .hero-description {
        font-size: 0.9rem;
    }    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }


}




















