/* ============ RESET ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* ============ NAVBAR ============ */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    z-index: 100;
}

.nav-contenedor {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1e293b;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span, .logo-footer span {
    color: #4f46e5;
}

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.menu a:hover {
    color: #4f46e5;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4f46e5;
    transition: width 0.3s;
}

.menu a:hover::after {
    width: 100%;
}

.hamburguesa {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburguesa span {
    width: 25px;
    height: 3px;
    background: #1e293b;
    border-radius: 3px;
    transition: 0.3s;
}

/* ============ HERO ============ */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 80vh;
}

.hero-contenido h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #0f172a;
}

.destacado {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-contenido p {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 30px;
}

.hero-botones {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primario {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.btn-primario:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.5);
}

.btn-secundario {
    background: white;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.btn-secundario:hover {
    background: #4f46e5;
    color: white;
}

.hero-imagen img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: transform 0.4s;
}

.hero-imagen img:hover {
    transform: scale(1.03) rotate(-1deg);
}

/* ============ SECCIONES ============ */
.seccion {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.titulo-seccion {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 15px;
    color: #0f172a;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.titulo-seccion::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    margin: 15px auto 0;
    border-radius: 2px;
}

.subtitulo {
    text-align: center;
    color: #64748b;
    margin-bottom: 50px;
    font-size: 1.05rem;
}

/* ============ SOBRE MÍ ============ */
.sobre-contenido {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.sobre-contenido img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.sobre-contenido p {
    margin-bottom: 15px;
    color: #475569;
    font-size: 1.05rem;
}

.lista-check {
    list-style: none;
    margin-top: 20px;
}

.lista-check li {
    padding: 8px 0;
    font-size: 1.05rem;
    color: #1e293b;
}

/* ============ TARJETAS ============ */
.tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.tarjeta {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tarjeta:hover {
    transform: translateY(-8px);
    border-color: #4f46e5;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}

.icono {
    font-size: 3rem;
    margin-bottom: 15px;
}

.tarjeta h3 {
    color: #0f172a;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.tarjeta p {
    color: #64748b;
    font-size: 0.98rem;
}

/* ============ GALERÍA ============ */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.galeria img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.galeria img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* ============ FORMULARIO ============ */
.formulario {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formulario input,
.formulario textarea {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.formulario input:focus,
.formulario textarea:focus {
    outline: none;
    border-color: #4f46e5;
}

.formulario button {
    align-self: flex-start;
}

#respuesta {
    text-align: center;
    margin-top: 25px;
    color: #16a34a;
    font-weight: 600;
    font-size: 1.05rem;
}

/* ============ FOOTER ============ */
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 40px 20px 25px;
    margin-top: 60px;
}

.footer-contenido {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.logo-footer {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
}

.redes {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.redes a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.redes a:hover {
    color: #7c3aed;
}

.copyright {
    font-size: 0.9rem;
    color: #64748b;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
}

/* ============ ANIMACIÓN REVELAR ============ */
.revelar {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.revelar.activo {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s;
    }

    .menu.abierto {
        right: 0;
    }

    .hamburguesa {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 20px;
    }

    .hero-contenido h1 {
        font-size: 2.2rem;
    }

    .hero-botones {
        justify-content: center;
    }

    .sobre-contenido {
        grid-template-columns: 1fr;
    }

    .titulo-seccion {
        font-size: 1.8rem;
    }
}