﻿/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #1E1E2C; /* fondo general sobrio */
    color: #f5f5f5;
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    background: #2C2C3E;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center; /* <-- centra los items */
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

    .navbar a {
        color: #F6CE98; /* dorado */
        text-decoration: none;
        font-weight: 600;
        margin: 0 1rem; /* <-- espacio uniforme entre links */
        transition: color 0.3s ease;
    }

        .navbar a:hover {
            color: #fff;
        }



/* HERO IMAGE */
.hero-image {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 12/5;
    margin: 20px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .hero-image::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.25);
        z-index: 1;
    }

.hero-text {
    position: absolute;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    text-align: center;
    z-index: 2;
    padding: 0 1rem;
}
/* INTRO */
#contenido-intro {
    max-width: 900px;
    margin: 4rem auto;
    text-align: center;
    padding: 0 1.5rem;
}

    #contenido-intro h2 {
        font-size: 2rem;
        color: #F6CE98;
        margin-bottom: 1rem;
    }

    #contenido-intro p {
        font-size: 1.1rem;
        color: #ddd;
    }

/* CARDS */
.cards-section {
    padding: 4rem 2rem;
    background: #2C2C3E;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en escritorio */
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.card-green {
    background: #1E1E2C;
    color: #fff;
    text-decoration: none;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card-green:hover {
        transform: translateY(-0.5rem);
        box-shadow: 0 1rem 2rem rgba(0,0,0,0.4);
    }

    .card-green .card-icon {
        font-size: 3.5rem;
        color: #F6CE98; /* dorado */
        margin-bottom: 1rem;
    }

    .card-green h4 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        text-align: center;
        font-weight: 700;
    }

    .card-green p {
        font-size: 1rem;
        text-align: center;
        color: #ccc;
    }
/* Animación de rebote sutil */
@keyframes bounce-elegante {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* Animación de rebote sutil */
@keyframes bounce-elegante {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Animación de rayo alrededor */
@keyframes lightning-border {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 300% 300%;
    }
}

.intro-card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #2C2C3E 0%, #1E1E2C 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-width: 500px;
    margin: 2rem auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: bounce-elegante 3s ease-in-out infinite;
    overflow: hidden;
}

    /* Borde animado tipo rayo */
    .intro-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 20px;
        padding: 2px;
        background: linear-gradient(270deg, #F6CE98, #ED733F, #A81926, #ED733F, #F6CE98);
        background-size: 300% 300%;
        animation: lightning-border 4s linear infinite;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

    .intro-card:hover {
        transform: scale(1.03);
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
        animation: none;
    }

.intro-content h3 {
    color: #F6CE98;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.intro-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #ccc;
}


.btn-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    background-color: #ED733F;
    color: #fff;
    font-weight: 600;
    border-radius: 50px; /* redondeado elegante */
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

    .btn-portfolio:hover {
        background-color: #F6CE98;
        color: #2C2C3E;
        transform: translateY(-2px);
    }
/* Tablets -> 2 columnas */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-green {
        aspect-ratio: auto; /* dejamos que crezca un poco si es necesario */
        padding: 1rem;
    }

        .card-green h4 {
            font-size: 1.1rem;
        }

        .card-green p {
            font-size: 0.9rem;
        }
}

/* Teléfonos -> 1 columna */
@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr; /* ✅ una por fila */
    }

    .card-green {
        aspect-ratio: auto;
    }
}