/* ===============================
   VARIABLES
================================= */
:root {
    --primary-color: #FFC83D;
    --dark-color: #1E1E1E;
    --text-color: #555;
    --background: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===============================
   RESET
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--dark-color);
    line-height: 1.6;
}

/* ===============================
   UTILIDADES
================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
}

/* ===============================
   HEADER
================================= */
.header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.logo{
    font-size: 1.5rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: none; /* oculto en móvil */
    flex-direction: column;
    gap: 15px;
    position: absolute;
    top: 70px;
    right: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
}

/* ===============================
MENU HAMBURGUESA
================================= */
.menu_hamburguesa{
    display:none;
}


.label_hamburguesa{
    cursor:pointer;
    display:block;
}

.list_icon{
    color:var(--dark-color);
    cursor: pointer;
}

.nav-menu{
    width:100%;
    background:var(--white);
    position:absolute;
    top:70px;
    left:0;
    height:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:55px;
    transition:all .3s;
}

.menu_hamburguesa:checked + .nav-menu{
    height:300px;
}

@media(min-width:768px){
    .label_hamburguesa{
        display:none;
    }
    .nav-menu{

        display:flex;
        position:static;
        flex-direction:row;
        height:auto;
        overflow:visible;
        background:none;
    }

}

/* ===============================
   HERO (Mobile First)
================================= */
.hero {
    padding: 60px 0;
}

.intro{
    font-size: 170%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 40px;
}

.hero-text h2 {
    font-size: 3rem;
    margin: 5px 0;
}

.hero-text{
    text-align: center;
}

.hero-image{
    mask-image: linear-gradient(#F5F7FA 60%, transparent);
    height:auto;
    max-width: 45%;
    margin: auto;
    border-radius: 20% ;
}

/* ===============================
   FEATURES
================================= */
.features {
    display: grid ;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 60px auto;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: 0.3s ease;
}

.card a{
    display: grid;
    color: #000000;
}


.card:hover {
    transform: translateY(-5px);
}

.icono{
    width: auto;
    height: 200px;
    margin: auto;
}

/* ===============================
   SKILLS
================================= */
.skills {
    padding: 60px 0;
    text-align: center;
}

.skills-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.skill-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.skill-img{
    margin: auto;
    height: auto;
}

/* ===============================
   CTA
================================= */
.cta {
    text-align: center;
    padding: 60px 0;
}

/* ===============================
   FOOTER
================================= */
.footer {
    background: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.social-icons img {
    width: 30px;
    margin: 0 10px;
}

/* ==========================================
   📲 TABLET (min-width: 768px)
============================================= */
@media (min-width: 768px) {

    .hero-text h2 {
        font-size: 2.5rem;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
        padding: 0;
    }
}

/* ==========================================
   💻 DESKTOP (min-width: 1024px)
============================================= */
@media (min-width: 1024px) {

    .hero-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        align-items: center;
    }

    .hero-text {
        flex: 1;
    }

    .hero-image {
        flex: 1;
        text-align: right;
    }

    .hero-text h2 {
        font-size: 3rem;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================
   🖥 PANTALLAS GRANDES (min-width: 1400px)
============================================= */
@media (min-width: 1400px) {

    .container {
        max-width: 1400px;
    }

    .hero-text h2 {
        font-size: 3.5rem;
    }
}

