﻿/* FUENTES Y RESET */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #222;
    background-color: #fff;
    line-height: 1.6;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 15px 8%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff385c;
}

    .logo span {
        color: #222;
    }

/* El nav principal, visible en escritorio */
nav ul.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    transition: all 0.3s ease-in-out;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

    nav ul li a:hover,
    nav ul li a.active {
        color: #ff385c;
        font-weight: 600;
        border-bottom: 2px solid #ff385c;
        padding-bottom: 3px;
        transition: all 0.3s ease;
    }
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #222;
    padding: 5px;
    line-height: 1;
}

.hero {
    position: relative;
    height: 100vh;
    background: url('https://concepto.de/wp-content/uploads/2020/08/Programacion-informatica-scaled-e1724960033513.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    color: #fff;
    overflow: hidden;
}

    /* Overlay oscuro sobre la imagen */
    .hero .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1;
    }

/* Contenido encima de la imagen */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 30px;
    border-radius: 15px;
    animation: fadeInUp 1s ease-out;
}

/* Animación de entrada suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Animación de entrada suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BOTONES */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary {
    background-color: #ff385c;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #e22b4f;
    }

.btn-secondary {
    background-color: #f7f7f7;
    color: #222;
    border: 1px solid #ccc;
}

    .btn-secondary:hover {
        background-color: #eee;
    }

/* SECCIONES */
section {
    padding: 80px 8%;
}

    section h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        color: #222;
        text-align: center;
    }

    section p {
        color: #555;
        text-align: center;
    }

/* QUIÉNES SOMOS */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

    .card:hover {
        transform: translateY(-10px);
    }

    .card img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        margin-bottom: 15px;
    }
.about-me p {
    text-align: center;
    max-width: 700px;
    margin: 10px auto;
    color: #555;
    font-size: 1.05rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap; /* Permite que las tarjetas salten a la siguiente fila */
    gap: 20px;
    margin-top: 30px;
    justify-content: center; /* Centra las tarjetas horizontalmente */
}

.skill-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s;
    /* Ajusta el ancho para que se asemeje a tu diseño grid original */
    min-width: 220px;
    flex-grow: 1;
    flex-basis: 0;
}

    .skill-card:hover {
        transform: translateY(-8px);
    }

    .skill-card h3 {
        color: #ff385c;
        margin-bottom: 8px;
    }
/* PRECIOS */
.pricing-grid {
    display: flex;
    flex-wrap: wrap; /* Permite que las tarjetas salten a la siguiente fila */
    gap: 25px;
    margin-top: 30px;
    justify-content: center; /* Centra las tarjetas horizontalmente */
}

.pricing-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    /* Ajusta el ancho para que se asemeje a tu diseño grid original */
    min-width: 280px;
    flex-grow: 1;
    flex-basis: 0;
}

    .pricing-card:hover {
        transform: scale(1.05);
    }

    .pricing-card.featured {
        border: 2px solid #ff385c;
    }

.price {
    font-size: 2rem;
    color: #ff385c;
    margin: 15px 0;
}

.pricing-card ul {
    list-style: none;
    margin: 15px 0;
}

    .pricing-card ul li {
        margin: 8px 0;
        color: #555;
    }
/* CONTACTO */
form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    form input,
    form textarea {
        padding: 12px;
        border-radius: 10px;
        border: 1px solid #ccc;
        font-size: 1rem;
    }

    form textarea {
        resize: vertical;
        min-height: 120px;
    }

/* FOOTER */
footer {
    background-color: #f7f7f7;
    padding: 20px;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
    margin-top: 30px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        padding: 15px 5%;
    }

    /* Ocultar el menú de navegación por defecto */
    nav ul.nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Asegúrate de que este valor sea la altura de tu header */
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

        /* Mostrar el menú cuando tiene la clase 'active' */
        nav ul.nav-links.active {
            display: flex;
        }

    /* Mostrar el botón de hamburguesa */
    .hamburger-menu {
        display: block;
    }

    /* Ajustes de estilo para los enlaces en la lista móvil */
    nav ul li {
        width: 100%;
        text-align: center;
    }

        nav ul li a {
            display: block;
            padding: 15px 0;
            border-bottom: 1px solid #eee;
        }

        nav ul li:last-child a {
            border-bottom: none; /* Elimina la línea en el último elemento */
        }
}/* Estado inicial de los elementos ocultos */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

    /* Cuando aparecen */
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

/* Animación escalonada */
.skills-grid .reveal:nth-child(1) {
    transition-delay: 0s;
}

.skills-grid .reveal:nth-child(2) {
    transition-delay: 0.15s;
}

.skills-grid .reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.skills-grid .reveal:nth-child(4) {
    transition-delay: 0.45s;
}

.pricing-grid .reveal:nth-child(1) {
    transition-delay: 0s;
}

.pricing-grid .reveal:nth-child(2) {
    transition-delay: 0.15s;
}

.pricing-grid .reveal:nth-child(3) {
    transition-delay: 0.3s;
}
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.btn.disabled, .btn:disabled, fieldset:disabled .btn {
    color: #fff;
    pointer-events: none;
    background-color: #ff385c;
    border-color: #ff385c;
    opacity: var(--bs-btn-disabled-opacity);
}