/* --------------------------
   RESET BÁSICO
--------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Futura', 'Century Gothic', sans-serif;
    background-color: #242b37;
    color: #fbf2e3;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

/* --------------------------
   ESTILO DEL HEADER Y MENÚ
--------------------------- */
header {
    background-color: #242b37;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3c180;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Century Gothic', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ef0660;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fbf2e3;
    font-family: 'Futura', sans-serif;
    font-variant-caps: normal; /* --- Después probar el: font-variant-caps: petite-caps; --- */
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f3c180;
}

/* --------------------------
   HOME (INDEX)
--------------------------- */
.home {
    position: relative;
    text-align: center;
}

.home img {
    width: 100%;
    height: 90vh;
    object-fit: cover;
    filter: brightness(60%);
}

.home .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fbf2e3;
}

.home h1 {
    font-family: 'Century Gothic', sans-serif;
    font-size: 3rem;
    font-variant-caps: normal; /* --- Después probar el: font-variant-caps: all-petite-caps; --- */
    margin-bottom: 10px;
}

.home p {
    font-family: 'Futura', sans-serif;
    font-size: 1.2rem;
}

.home .overlay h1,
.home .overlay p {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s ease forwards;
}

.home .overlay h1 {
    animation-delay: 0.8s;
}

.home .overlay p {
    animation-delay: 1.2s;
}

/* --------------------------
   SECCIONES GENERALES
--------------------------- */
main {
    padding: 40px;
}

main h2 {
    font-family: 'Century Gothic', sans-serif;
    font-size: 2rem;
    color: #ef0660;
    margin-bottom: 20px;
    border-bottom: 2px solid #f3c180;
    display: inline-block;
    padding-bottom: 5px;
}

main h3 {
    font-family: 'Futura', sans-serif;
    color: #f3c180;
    margin-top: 20px;
}

main p, main li {
    font-size: 1rem;
}

/* --------------------------
   FOOTER
--------------------------- */
footer {
    background-color: #242b37;
    border-top: 1px solid #f3c180;
    text-align: center;
    padding: 20px;
}

footer p {
    margin-bottom: 10px;
}

footer .socials {
    font-size: 0.9rem;
    color: #fbf2e3;
}

/* --------------------------
   REDES SOCIALES
--------------------------- */
.socials a {
    color: #fbf2e3;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.socials a:hover {
    color: #ef0660;
}

/* --------------------------
   SKILLS
--------------------------- */
.skills-container {
    display: flex;
    gap: 80px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.skills-column ul {
    list-style: none;
}

.skills-column li {
    margin: 10px 0;
    font-size: 1.1rem;
}

.skills-column i {
    margin-right: 10px;
    color: #ef0660;
}

/* --------------------------
   KEYFRAMES
--------------------------- */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------
   MASONRY GRID
--------------------------- */
.masonry {
    column-count: 3;
    column-gap: 24px;
}
@media (max-width: 1024px) { .masonry { column-count: 2; } }
@media (max-width: 640px)  { .masonry { column-count: 1; } }

.card {
    display: inline-block;
    width: 100%;
    margin: 0 0 24px;
    background: rgba(251,242,227,0.04);
    border: 1px solid #3a4353;
    border-radius: 14px;
    overflow: hidden;
    break-inside: avoid;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card { 
  text-decoration: none; 
  color: inherit; 
}
.card * { 
  text-decoration: none; 
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
}
.card-thumb img {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(1.05) contrast(1.02);
    transition: transform .4s ease;
}
.card:hover .card-thumb img { transform: scale(1.03); }

.play-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .25s ease;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35));
}
.card:hover .play-badge { opacity: 1; }
.play-badge i {
    font-size: 2.6rem;
    color: #ef0660;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.card-body {
    padding: 14px 16px 18px;
}
.card-title {
    font-family: 'Century Gothic', sans-serif;
    font-size: 1.05rem;
    color: #fbf2e3;
}
.card-title a {
    text-decoration: none; /* Quita el subrayado */
    color: #fbf2e3; /* Color de texto claro */
}

.card-title a:hover {
    color: #f3c180; /* Cambia el color al pasar el mouse */
}

.card-meta {
    margin-top: 6px;
    font-size: .9rem;
    color: #f3c180;
    opacity: .85;
}

.card-title {
    color: #fbf2e3;
    font-family: 'Century Gothic', sans-serif;
    font-size: 1.05rem;
}

.card-title:hover {
    color: #f3c180;
}

/* --------------------------
   MODAL VIDEO
--------------------------- */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}
.video-modal.open { display: flex; }

.video-modal-content {
    width: min(1100px, 100%);
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid #3a4353;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.video-modal .close-btn {
    position: absolute;
    top: -42px;
    right: 0;
    background: #ef0660;
    color: #fbf2e3;
    border: none;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

/* Asegura que el iframe llene el modal */
.video-modal-content iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Opcional: Lo siguiente sirve para suavizar el scroll al abrir/cerrar */
html { scroll-behavior: smooth; }

/* --------------------------
   RESPONSIVO (CELULAR)
--------------------------- */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .home h1 {
        font-size: 2rem;
    }

    main {
        padding: 20px;
    }

    .skills-container {
        flex-direction: column;
    }
}
