*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Roboto Slab", serif;
    color: #333;
    line-height: 1.6;
}
html {
    scroll-behavior: smooth;
}
/*===============
  header-navegacion
  ================= */
.header {
    background-color: rgba(154, 135, 238, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(146, 21, 21, 0.1);
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: #e74c3c;
}
/* =================
   HERO SECTION
   ===============*/
.hero {
    height: 100vh;
    background: 
            linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
            url('../img/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(69, 18, 189);
    position: relative;
}
.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}
.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    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 {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.6s backwards;
}
/* =====================================
   BOTON
   ===============================*/
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.8s backwards;
}
.btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}
/* ===================================
   ANIMATION
   ================================*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(0);
    }
}
/* =======================================
   BOTON 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;
}
/* Animacion 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: rgb(252, 227, 255);
    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);
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 90%;
    height: 90%;
    /*object-fit: cover;*/
    transform: scale(1.4); /* Agranda la imagen 40% */  
}
/* PORTFOLIO SECTION */
.portfolio {
    padding: 5rem 2rem;
    background: rgb(231, 189, 250);
}

.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 MOVILES
   ==================================*/
@media(max-width: 760px) {
    .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;
    }
    .about-image {
        width: 90%;
        height: 100%;
        padding-right: 1.8rem;
        margin: auto;
    }
}
/* ====================================
   RESPONSIVE - MOVILES PQUEÑ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;
    }
   }