/* =========================
  VARIABLES DE COLOR
========================= */
:root {
  --primary: #00c9a7;
  --secondary: #845ec2;
  --accent: #ff6f91;
  --dark: #111;
  --light: #ffffff;
  --gray: #f5f5f5;
}

:root {
    --azul: #0a76cf;
    --azul-claro: #0067c7;

    --naranja: #5bec12;
    --naranja-claro: #73f139;

    --texto: #000000;
    --gris: #5f5f7a;

    --blanco: #ffffff;
}
/* =========================
   🧠 RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*{
  font-family: 'Jura', sans-serif;
}

body {
   padding-top: 70px;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
  color: var(--dark);
}

h1,h2,h3,h4,h5,h6,
button,
.logo,
.nav-links a{
  font-family: 'Jura', sans-serif;
}
/* =========================
   NAVBAR MODERNO
========================= */

.nav-container{
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-top{
  width: 92%;
  margin: auto;
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */

.logo h1{
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}

.logo span{
  color: #cfcfcf;
  font-size: 11px;
  letter-spacing: 3px;
}

/* MENU */

.nav-links{
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a{
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: .3s;
}

.nav-links a:hover{
  color: #ff9800;
}

/* HAMBURGUESA */

.menu-toggle{
  display: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
}


/* =========================
   TABLET
========================= */

@media(max-width:992px){

  .menu-toggle{
    display: block;
  }

  .nav-links{
    position: absolute;
    top: 85px;
    right: 20px;
    width: 270px;
    background: #111;
    border-radius: 20px;
    padding: 25px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,.4);
  }

  .nav-links.active{
    display: flex;
  }

  .nav-links a{
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
  }

}


/* =========================
   CELULAR
========================= */

@media(max-width:768px){

  .nav-top{
    min-height: 70px;
  }

  .logo h1{
    font-size: 24px;
  }

  .logo span{
    font-size: 9px;
    letter-spacing: 2px;
  }

  .nav-links{
    width: 230px;
    right: 10px;
  }

}


/* =========================
   TITULO BASE
========================= */

.Tituo-base{
  width: 100%;
  text-align: center;
  padding: 120px 20px 40px;
}

.Tituo-base h1{
  font-size: 70px;
  font-weight: 900; /* MÁS NEGRITA */
  color: #1b1b1b;  /* NEGRO CLARO */
  letter-spacing: 3px;
  margin-bottom: 10px;
  line-height: 1.1;
}

.Tituo-base span{
  display: block;
  font-size: 16px;
  color: #2d2d2d; /* NEGRO CLARO */
  letter-spacing: 6px;
  font-weight: 700; /* NEGRITA */
}


/* =========================
   TABLET
========================= */

@media(max-width:992px){

  .Tituo-base{
    padding: 110px 20px 35px;
  }

  .Tituo-base h1{
    font-size: 55px;
  }

  .Tituo-base span{
    font-size: 14px;
    letter-spacing: 4px;
  }

}


/* =========================
   CELULAR
========================= */

@media(max-width:768px){

  .Tituo-base{
    padding: 100px 15px 30px;
  }

  .Tituo-base h1{
    font-size: 40px;
    letter-spacing: 2px;
  }

  .Tituo-base span{
    font-size: 11px;
    letter-spacing: 3px;
    line-height: 1.6;
  }

}


/* =========================
   CELULARES PEQUEÑOS
========================= */

@media(max-width:480px){

  .Tituo-base h1{
    font-size: 32px;
  }

  .Tituo-base span{
    font-size: 10px;
    letter-spacing: 2px;
  }

}

/* =========================
   HERO / HEADER
========================= */

.hero{
    padding: 80px 20px;
    text-align: center;
    background: transparent;
    border-bottom: 2px solid rgba(0,0,0,.08);
}

.hero h1{
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
    position: relative;
}

.hero h1::after{
    content:"";
    width:80px;
    height:4px;
    background: var(--primary);
    display:block;
    margin:12px auto 0;
    border-radius:10px;
}

.hero p{
    color:#555;
    font-size:1.1rem;
    max-width:700px;
    margin:auto;
    line-height:1.8;
}


:root {

    --azul-principal: #1677c8;
    --azul-oscuro: #0b4f8a;
    --azul-claro: #eaf5ff;

    --naranja-principal: #ffb45c;
    --naranja-oscuro: #d9822b;
    --naranja-claro: #fff1df;

    --blanco: #ffffff;
    --texto: #172b4d;
    --gris: #5f6b7a;

}

/* =====================================
   SECCIÓN GALERÍA
===================================== */

.gallery-section {

    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    padding: 35px 25px 60px;

    background: #fffaf4;

}


/* =====================================
   GRID
===================================== */

.grid-gallery {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 35px 25px;

}


/* =====================================
   TARJETA
===================================== */

.art-card {

    min-width: 0;

    background: var(--blanco);

    border: 2px solid var(--azul-claro);

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 8px 20px rgba(
            22,
            119,
            200,
            0.10
        );

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

}


.art-card:hover {

    transform: translateY(-8px);

    border-color: var(--naranja-principal);

    box-shadow:
        0 18px 35px rgba(
            255,
            180,
            92,
            0.30
        );

}


/* =====================================
   CONTENEDOR DE IMAGEN
===================================== */

.art-image-container {

    position: relative;

    width: 100%;

    height: 420px;

    overflow: hidden;

    background: var(--azul-claro);

}


/* =====================================
   IMAGEN
===================================== */

.art-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.5s ease;

}


.art-card:hover .art-image {

    transform: scale(1.06);

}



/* =====================================
   CONTENIDO
===================================== */

.art-content {

    padding: 16px;

}


/* =====================================
   TÍTULO
===================================== */

.art-content h2 {

    margin: 0;

    color: var(--azul-oscuro);

    font-size: 1.35rem;

    font-weight: 700;

    line-height: 1.2;

}


/* =====================================
   TIPO DE OBRA
===================================== */

.art-type {

    margin: 8px 0;

    color: var(--azul-principal);

    font-size: 1rem;

    font-weight: 600;

}


/* =====================================
   DESCRIPCIÓN
===================================== */

.art-description {

    margin: 0;

    color: var(--gris);

    font-size: 0.95rem;

    line-height: 1.5;

}


/* =====================================
   PIE DE TARJETA
===================================== */

.art-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    margin-top: 15px;

}


/* =====================================
   AÑO
===================================== */

.art-year {

    padding: 7px 12px;

    border-radius: 8px;

    background: var(--naranja-claro);

    color: var(--naranja-oscuro);

    border: 1px solid var(--naranja-principal);

    font-size: 0.85rem;

    font-weight: 700;

}


/* =====================================
   BOTÓN VER OBRA
===================================== */

.view-btn {

    border: none;

    padding: 9px 16px;

    border-radius: 20px;

    background: var(--naranja);

    color: var(--azul);

    font-weight: 600;

    cursor: pointer;

}


.view-btn:hover {

    background: var(--naranja);

    color: var(--azul-oscuro);

}
@media (max-width: 600px) {

    .gallery-section {

        padding: 25px 12px 50px;

    }


    .grid-gallery {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 25px 16px;

    }


    .art-card {

        border-radius: 20px;

    }


    .art-image-container {

        height: 300px;

    }


    .favorite-btn {

        width: 38px;

        height: 38px;

        font-size: 21px;

    }


    .art-content {

        padding: 12px;

    }


    .art-content h2 {

        font-size: 1.05rem;

    }


    .art-type {

        font-size: 0.85rem;

    }


    .art-description {

        font-size: 0.8rem;

    }


    .art-footer {

        display: block;

    }


    .art-year {

        display: inline-block;

        margin-bottom: 10px;

    }


    .view-btn {

        width: 100%;

    }

}

@media (min-width: 601px)
       and (max-width: 1000px) {

    .grid-gallery {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 30px 20px;

    }


    .art-image-container {

        height: 380px;

    }

}
/* =========================
   🌟 OVERLAY
========================= */

.card-overlay,
.art-overlay{
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,.92), transparent);
  color: white;
}

.art-overlay{
  opacity: 0;
  transition: .4s;
}

.art-card:hover .art-overlay{
  opacity: 1;
}

.art-overlay h3,
.card-overlay h3{
  margin-bottom: 5px;
  font-size: 18px;
}

/* =========================
   🎛 BOTONES
========================= */

.acciones{
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.acciones button{
  flex: 1;
  border: none;
  padding: 10px;
  border-radius: 10px;
  background: #ff3c00;
  color: white;
  cursor: pointer;
  transition: .3s;
  font-size: 14px;
}

.acciones button:hover{
  background: #ffcc00;
  color: #111;
}





/* EFECTO HOVER */

.close:hover {

    background: #ff4757;

    transform: rotate(90deg) scale(1.1);

    box-shadow:
        0 0 25px rgba(255, 71, 87, 0.6);

}


/* ================================
   BOTONES ANTERIOR / SIGUIENTE
================================ */

.prev,
.next {

    position: fixed;

    top: 50%;

    transform: translateY(-50%);

    z-index: 10000;

    width: 55px;

    height: 55px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    color: white;

    font-size: 32px;

    cursor: pointer;

    transition: all 0.3s ease;

}


.prev {

    left: 25px;

}


.next {

    right: 25px;

}



.prev:hover,
.next:hover {

    background: #069dcc;

    transform: translateY(-50%) scale(1.15);

}


/* ================================
   RESPONSIVE TABLET
================================ */

@media (max-width: 900px) {

    .modal {

        padding: 20px;

    }


    .modal-box {

        grid-template-columns: 1fr;

        width: 90%;

        max-height: 90vh;

        overflow-y: auto;

    }


    .modal-img {

        height: 420px;

        min-height: auto;

    }


    .modal-info {

        padding: 35px;

    }


    .modal-info h2 {

        font-size: 2rem;

    }

}


/* ================================
   RESPONSIVE MÓVIL
================================ */

@media (max-width: 600px) {

    .modal {

        padding: 15px;

        align-items: flex-start;

        padding-top: 70px;

    }


    .modal-box {

        width: 100%;

        border-radius: 20px;

        max-height: calc(100vh - 90px);

    }


    .modal-img {

        height: 280px;

        object-fit: cover;

    }


    .modal-info {

        padding: 25px 22px 30px;

    }


    .modal-info h2 {

        font-size: 1.6rem;

        margin-bottom: 15px;

    }


    .modal-info p {

        font-size: 0.95rem;

    }


    /* X MÁS PEQUEÑA EN MÓVIL */

    .close {

        top: 15px;

        right: 15px;

        width: 42px;

        height: 42px;

        font-size: 27px;

    }


    /* FLECHAS LATERALES */

    .prev,
    .next {

        width: 40px;

        height: 40px;

        font-size: 24px;

        background: rgba(0, 0, 0, 0.55);

    }


    .prev {

        left: 8px;

    }


    .next {

        right: 8px;

    }

}

/* =========================
   📱 RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .contenedor {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .contenedor {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .contenedor {
    grid-template-columns: 1fr;
  }
}



/* =========================
   🎭 ANIMACIONES
========================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* =========================
   📩 CONTACTO
========================= */
.contact-section {
  background: var(--gray);
  padding: 80px 20px;
  text-align: center;
}

.contact-section h2 {
  font-size: 30px;
  margin-bottom: 30px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-contact {
  padding: 15px 25px;
  text-decoration: none;
  color: white;
  border-radius: 30px;
  font-size: 16px;
  transition: 0.3s;
}

/* CORREO */
.email {
  background: #333;
}

.email:hover {
  background: #000;
}

/* WHATSAPP */
.whatsapp {
  background: #25D366;
}

.whatsapp:hover {
  background: #1ebe5d;
}
/* ACCIONES */
.acciones {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.acciones button {
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}


/* BARRA SUPERIOR */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ddd;
  padding: 10px 20px;
  background: #f9f9f9;
}

.top-bar .left,
.top-bar .right {
  display: flex;
  gap: 10px;
}

/* BOTONES DE FILTRO SUPERIOR */
.btn-bar {
  background: transparent;
  border: none;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 10px;
}

.btn-bar:hover {
  color: #666;
}

/* BOTONES DE VISTA */
.view-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
}

.view-btn.active {
  color: black;
}

.view-btn:hover {
  color: gray;
}

/* FILTROS */
.filtros {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.filtros button {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

.filtros button.active {
  background: black;
  color: white;
}

.item {
  position: relative;
}

.btn-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}
/* BUSCADOR */
.buscador {
  display: block;
  margin: 0 auto 20px;
  padding: 10px;
  width: 80%;
  max-width: 400px;
  border: 1px solid #ccc;
}


/* GALERÍA */
.gallery-section {
  padding: 40px;
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

/* CARD */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  background: #111;
  transition: all 0.4s ease;
}

/* IMAGEN */
.card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* HOVER (solo desktop) */
.card:hover img {
  transform: scale(1.08);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* OVERLAY */
.card-overlay {
  position: absolute;
  color: white;
  bottom: 0;
  width: 100%;
  padding: 18px;

  /* 🔥 MÁS OSCURO Y PROFESIONAL */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.2) 80%,
    transparent 100%
  );

  color: #fff;
}

/* TEXTO */
.card-overlay h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.card-overlay p {
  font-size: 14px;
  margin: 4px 0;
  color: #fff;
  opacity: 0.9;
}

.card-overlay h3,
.card-overlay p {
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.card-info {
  font-size: 13px;
  opacity: 0.85;
}
.card-info span {
  color: white; /* 🔥 año y tipo en blanco */
}

/* BOTONES */
.acciones {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.acciones button {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.9);
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.acciones button:hover {
  background: #fff;
  transform: scale(1.05);
}
/* =========================
  VARIABLES DE COLOR
========================= */
:root {
  --primary: #00c9a7;
  --accent: #ff6f91;
  --dark: #111;
  --light: #ffffff;
  --gray: #f5f5f5;
}

/* =========================
   🧠 RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ... TODO TU CSS ... */


/* =========================
   👤 SOBRE MÍ
========================= */
.about-section {
  padding: 80px 10%;
  background: linear-gradient(120deg, #f5f5f5, #ffffff);
}

.about-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.about-container h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--primary);
}

.about-container > p {
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
}

/* CONTENIDO */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;

  /* EFECTO TARJETA */
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* IMAGEN */
.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 280px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: 0.4s;
}

.about-image img:hover {
  transform: scale(1.05) rotate(1deg);
}

/* TEXTO */
.about-text {
  flex: 1;
  text-align: left;
  max-width: 500px;
}

.about-text h2 {
  font-size: 26px;
  margin-bottom: 10px;
  color: var(--primary);
}

.about-text p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}


/* =========================
   📱 TABLET Y CELULAR
========================= */
@media (max-width: 768px) {

  .about-section{
    padding: 70px 20px;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 35px;
    padding: 25px;
  }

  .about-container h2{
    font-size: 28px;
  }

  .about-container > p{
    font-size: 15px;
    margin-bottom: 30px;
  }

  .about-text {
    text-align: center;
    max-width: 100%;
  }

  .about-text h2{
    font-size: 24px;
  }

  .about-text p{
    font-size: 15px;
    line-height: 1.7;
  }

  .about-image img{
    width: 240px;
  }

}


/* =========================
   📲 CELULARES PEQUEÑOS
========================= */
@media(max-width:480px){

  .about-section{
    padding: 60px 15px;
  }

  .about-content{
    padding: 20px 15px;
    gap: 25px;
    border-radius: 18px;
  }

  .about-container h2{
    font-size: 26px;
    line-height: 1.2;
  }

  .about-container > p{
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
  }

  .about-image{
    width: 100%;
  }

  .about-image img{
    width: 100%;
    max-width: 220px;
    border-radius: 18px;
  }

  .about-text{
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .about-text h2{
    font-size: 22px;
    margin-bottom: 12px;
  }

  .about-text p{
    font-size: 14px;
    line-height: 1.8;
    padding: 0 5px;
  }

}


/* =========================
   📱 EXTRA PEQUEÑOS
========================= */
@media(max-width:360px){

  .about-content{
    padding: 18px 12px;
  }

  .about-container h2{
    font-size: 22px;
  }

  .about-text h2{
    font-size: 20px;
  }

  .about-text p{
    font-size: 13px;
  }

  .about-image img{
    max-width: 180px;
  }

}



/* =========================================================
   🎬 SECCIÓN DE ENTRENAMIENTOS / VIDEOS
========================================================= */

.video-section {

    width: 100%;

    padding: 90px 20px;

    background: #ffffff;
}


.video-content {

    width: 100%;

    max-width: 1250px;

    margin: 0 auto;
}


/* =========================================================
   🎨 ENCABEZADO
   ESTILO GALERÍA DE ARTE
========================================================= */

.video-header {

    text-align: center;

    margin-bottom: 55px;
}


/* =========================================================
   ENTRENAMIENTOS
========================================================= */

.video-label {

    display: block;

    margin-bottom: 12px;

    color: #8359C5;

    font-size: 17px;

    font-weight: 500;

    letter-spacing: 3px;

    line-height: 1.4;

    text-transform: uppercase;
}


/*
   Ocultamos el emoji 🎬 para que el encabezado
   tenga el mismo estilo limpio de "GALERÍA DE ARTE"
*/

.video-label-icon {

    display: none;
}


/* =========================================================
   TÍTULO PRINCIPAL
========================================================= */

.video-header h2 {

    margin: 0;

    color: #8359C5;

    font-family:
        "Trebuchet MS",
        Arial,
        Helvetica,
        sans-serif;

    font-size: clamp(38px, 5vw, 58px);

    font-weight: 300;

    letter-spacing: 2px;

    line-height: 1.15;

    text-transform: uppercase;
}


/* =========================================================
   LÍNEA DECORATIVA TURQUESA
========================================================= */

.video-divider {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100px;

    height: 5px;

    margin: 22px auto 20px;
}


/*
   Ocultamos las líneas laterales originales
*/

.video-divider span {

    display: none;
}


/*
   Convertimos el punto en una línea turquesa
*/

.video-divider b {

    display: block;

    width: 100px;

    height: 5px;

    margin: 0;

    padding: 0;

    border-radius: 10px;

    background: #12C9A5;

    color: transparent;

    font-size: 0;

    line-height: 0;
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.video-header p {

    max-width: 650px;

    margin: 0 auto;

    color: #777777;

    font-size: 15px;

    font-weight: 400;

    line-height: 1.7;
}


/* =========================================================
   🎬 GRID DE VIDEOS
========================================================= */

.videos-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;

    align-items: stretch;
}


/* =========================================================
   TARJETA DE VIDEO
========================================================= */

.video-card {

    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e8e3ec;

    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(40, 25, 60, 0.07);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


/* =========================================================
   EFECTO HOVER TARJETA
========================================================= */

.video-card:hover {

    transform: translateY(-6px);

    border-color: #d9c7e6;

    box-shadow:
        0 18px 38px rgba(40, 25, 60, 0.12);
}


/* =========================================================
   ÁREA DEL VIDEO
========================================================= */

.video-media {

    position: relative;

    width: 100%;

    height: 400px;

    overflow: hidden;

    background: #17151c;
}


/* =========================================================
   VIDEO
========================================================= */

.video-media video {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    background: #17151c;
}


/* =========================================================
   INFORMACIÓN DEL VIDEO
========================================================= */

.video-info {

    display: flex;

    align-items: center;

    gap: 16px;

    min-height: 150px;

    padding: 24px 20px;

    background: #ffffff;
}


/* =========================================================
   🎨 ICONO DEL VIDEO
========================================================= */

.video-icon {

    flex-shrink: 0;

    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #f3eaf8;

    color: #8359C5;

    font-size: 22px;

    box-shadow:
        inset 0 0 0 1px #e8d9f0;

    transition:
        transform .3s ease,
        background .3s ease;
}


/* Efecto del icono al pasar el mouse */

.video-card:hover .video-icon {

    transform: scale(1.08);

    background: #eee2f6;
}


/* =========================================================
   TEXTO DEL VIDEO
========================================================= */

.video-text {

    flex: 1;

    min-width: 0;
}


/* =========================================================
   TÍTULO DEL VIDEO
========================================================= */

.video-text h3 {

    margin: 0 0 7px;

    color: #202536;

    font-size: 17px;

    font-weight: 800;

    line-height: 1.3;
}


/* =========================================================
   DESCRIPCIÓN DEL VIDEO
========================================================= */

.video-text p {

    margin: 0;

    color: #858993;

    font-size: 13px;

    line-height: 1.55;
}


/* =========================================================
   🎬 BOTÓN VER VIDEO / PAUSAR
========================================================= */

.video-button {

    flex-shrink: 0;

    width: 120px;

    height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 0 14px;

    border: 1px solid #c8a9df;

    border-radius: 25px;

    background: #f8f4fb;

    color: #8359C5;

    font-family: inherit;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .3px;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}


/* =========================================================
   TEXTO DEL BOTÓN
========================================================= */

.video-button .texto-boton {

    display: inline-block;

    min-width: 60px;

    text-align: center;

    white-space: nowrap;
}


/* =========================================================
   FLECHA / PAUSA
========================================================= */

.video-button .flecha {

    width: 18px;

    height: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: currentColor;

    font-size: 21px;

    line-height: 1;
}


/* =========================================================
   HOVER BOTÓN
========================================================= */

.video-button:hover {

    background: #8359C5;

    border-color: #8359C5;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 6px 16px rgba(131, 89, 197, .22);
}


/* =========================================================
   CLICK
========================================================= */

.video-button:active {

    transform: translateY(0);

    box-shadow: none;
}


/* =========================================================
   ⏸️ ESTADO PAUSAR
========================================================= */

.video-button.pausando {

    background: #8359C5;

    border-color: #8359C5;

    color: #ffffff;
}


/* =========================================================
   HOVER CUANDO ESTÁ EN PAUSA
========================================================= */

.video-button.pausando:hover {

    background: #7049ad;

    border-color: #7049ad;
}


/* =========================================================
   ACCESIBILIDAD
========================================================= */

.video-button:focus-visible {

    outline: 3px solid rgba(131, 89, 197, .20);

    outline-offset: 3px;
}


/* =========================================================
   🖥️ TABLET / PANTALLAS MEDIANAS
========================================================= */

@media (max-width: 1100px) {

    .video-section {

        padding: 75px 20px;
    }


    .videos-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 24px;
    }


    .video-media {

        height: 360px;
    }


    .video-info {

        gap: 12px;

        padding: 20px 16px;
    }


    .video-icon {

        width: 48px;

        height: 48px;

        font-size: 20px;
    }


    .video-text h3 {

        font-size: 16px;
    }


    .video-text p {

        font-size: 12px;
    }


    .video-button {

        width: 110px;

        font-size: 11px;
    }
}


/* =========================================================
   📱 TABLET PEQUEÑA
========================================================= */

@media (max-width: 750px) {

    .video-section {

        padding: 65px 16px;
    }


    .video-header {

        margin-bottom: 38px;
    }


    .video-header h2 {

        font-size: 42px;

        letter-spacing: 1.5px;
    }


    .video-label {

        font-size: 15px;

        letter-spacing: 2.5px;
    }


    .video-divider {

        width: 85px;
    }


    .video-divider b {

        width: 85px;
    }


    .videos-grid {

        grid-template-columns: 1fr;

        max-width: 650px;

        margin: 0 auto;
    }


    .video-media {

        height: 380px;
    }
}


/* =========================================================
   📱 MÓVIL
========================================================= */

@media (max-width: 550px) {

    .video-section {

        padding: 55px 14px;
    }


    .video-header {

        margin-bottom: 32px;
    }


    .video-label {

        font-size: 13px;

        letter-spacing: 2px;

        margin-bottom: 10px;
    }


    .video-header h2 {

        font-size: 31px;

        letter-spacing: 1px;
    }


    .video-divider {

        width: 75px;

        height: 4px;

        margin-top: 18px;

        margin-bottom: 18px;
    }


    .video-divider b {

        width: 75px;

        height: 4px;
    }


    .video-header p {

        font-size: 13px;

        padding: 0 10px;
    }


    .videos-grid {

        gap: 20px;
    }


    .video-card {

        border-radius: 14px;
    }


    .video-media {

        height: 280px;
    }


    .video-info {

        display: grid;

        grid-template-columns:
            auto 1fr;

        gap: 14px;

        min-height: auto;

        padding: 20px;
    }


    .video-icon {

        width: 48px;

        height: 48px;
    }


    .video-text h3 {

        font-size: 16px;
    }


    .video-text p {

        font-size: 12px;
    }


    .video-button {

        grid-column: 1 / -1;

        width: 100%;

        height: 44px;

        margin-top: 2px;
    }
}


/* =========================================================
   📱 MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 380px) {

    .video-section {

        padding-left: 12px;

        padding-right: 12px;
    }


    .video-label {

        font-size: 12px;

        letter-spacing: 1.8px;
    }


    .video-header h2 {

        font-size: 28px;

        letter-spacing: .8px;
    }


    .video-media {

        height: 240px;
    }


    .video-info {

        padding: 18px;
    }


    .video-icon {

        width: 44px;

        height: 44px;

        font-size: 18px;
    }
}


/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}



.modal.active {
    display: flex;
}

/* CONTENIDO */
.modal-content {
  margin: auto;
  width: 80%;
  max-width: 500px;
  background: #fff;
  padding: 20px;
  border-radius: 15px;
}

/* BOTÓN CERRAR */
.cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}





/* =====================================
   MODAL GALERÍA
===================================== */

.modal {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 9999;

    align-items: center;

    justify-content: center;

    padding: 25px;

    background:
        radial-gradient(
            circle at center,
            rgba(20, 55, 65, .65),
            rgba(0, 0, 0, .94)
        );

    backdrop-filter: blur(10px);

    overflow-y: auto;
}


/* MODAL ACTIVO */

.modal.active {

    display: flex;

    animation: modalFade .35s ease;
}


/* =====================================
   CAJA PRINCIPAL
===================================== */

.modal-box {

    position: relative;

    display: grid;

    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr);

    width: min(1150px, 92vw);

    max-height: 88vh;

    background: #ffffff;

    border-radius: 26px;

    overflow: hidden;

    box-shadow:

        0 30px 80px rgba(0, 0, 0, .65);

    animation: modalUp .45s ease;
}


/* =====================================
   IMAGEN
===================================== */

.modal-img {

    display: block;

    width: 100%;

    height: 88vh;

    max-height: 800px;

    object-fit: contain;

    object-position: center;

    padding: 25px;

    background:

        linear-gradient(
            145deg,
            #081d29,
            #173d4b
        );
}


/* =====================================
   INFORMACIÓN
===================================== */

.modal-info {

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 20px;

    padding: 40px 30px;

    background: #ffffff;

    color: #53666d;

    line-height: 1.7;
}


/* TÍTULO DENTRO DEL CAPTION */

.modal-info h2 {

    margin: 0;

    color: #00a6cc;

    font-size: clamp(26px, 3vw, 42px);

    line-height: 1.2;
}


/* DESCRIPCIÓN */

.modal-info p {

    margin: 0;

    padding: 14px 18px;

    border-left: 4px solid #00a6cc;

    border-radius: 10px;

    background: #f2fbfd;

    font-size: 16px;
}


/* =====================================
   BOTÓN CERRAR
===================================== */

.close {

    position: fixed;

    top: 25px;

    right: 30px;

    z-index: 10001;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 54px;

    height: 54px;

    border: 1px solid rgba(255,255,255,.3);

    border-radius: 50%;

    background: rgba(30,30,30,.65);

    color: #ffffff;

    font-size: 32px;

    cursor: pointer;

    backdrop-filter: blur(10px);

    transition: all .3s ease;
}


.close:hover {

    background: #ffad66;

    color: #173d4b;

    transform: rotate(90deg) scale(1.08);
}


/* =====================================
   BOTONES DE NAVEGACIÓN
===================================== */

.prev,
.next {

    position: fixed;

    top: 50%;

    z-index: 10000;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 58px;

    height: 58px;

    border: none;

    border-radius: 50%;

    background: rgba(255,255,255,.15);

    color: #ffffff;

    font-size: 40px;

    cursor: pointer;

    backdrop-filter: blur(10px);

    transform: translateY(-50%);

    transition: all .3s ease;
}


.prev {

    left: 25px;
}


.next {

    right: 25px;
}


.prev:hover,
.next:hover {

    background: #00a6cc;

    transform:

        translateY(-50%)

        scale(1.1);
}


/* =====================================
   ANIMACIONES
===================================== */

@keyframes modalFade {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }

}


@keyframes modalUp {

    from {

        opacity: 0;

        transform: scale(.94) translateY(20px);

    }

    to {

        opacity: 1;

        transform: scale(1) translateY(0);

    }

}


/* =====================================
   TABLET
===================================== */

@media (max-width: 900px) {

    .modal {

        padding: 70px 20px 20px;

    }


    .modal-box {

        grid-template-columns: 1fr;

        width: min(700px, 95vw);

        max-height: 90vh;

        overflow-y: auto;
    }


    .modal-img {

        width: 100%;

        height: 55vh;

        min-height: 350px;

        max-height: 550px;

        padding: 18px;
    }


    .modal-info {

        padding: 28px;

    }


    .prev {

        left: 12px;

    }


    .next {

        right: 12px;

    }

}


/* =====================================
   CELULAR
===================================== */

@media (max-width: 600px) {

    .modal {

        align-items: flex-start;

        padding: 65px 10px 15px;

    }


    .modal-box {

        width: 100%;

        border-radius: 20px;

    }


    .modal-img {

        height: 52vh;

        min-height: 280px;

        max-height: 480px;

        padding: 12px;
    }


    .modal-info {

        gap: 14px;

        padding: 24px 18px 30px;

    }


    .modal-info h2 {

        font-size: 28px;

        text-align: center;

    }


    .modal-info p {

        font-size: 14px;

    }


    .close {

        top: 10px;

        right: 10px;

        width: 44px;

        height: 44px;

        font-size: 26px;

    }


    .prev,
    .next {

        width: 42px;

        height: 42px;

        font-size: 28px;

    }


    .prev {

        left: 7px;

    }


    .next {

        right: 7px;

    }

}


/* =====================================
   CELULARES PEQUEÑOS
===================================== */

@media (max-width: 380px) {

    .modal-img {

        height: 45vh;

        min-height: 250px;

    }


    .modal-info h2 {

        font-size: 24px;

    }


    .modal-info p {

        font-size: 13px;

    }

}



/* ==========================================
   🎨 GALERÍA
========================================== */

.gallery-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 70px;
}


/* ==========================================
   GRID DE OBRAS
========================================== */

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}


/* ==========================================
   TARJETA DE OBRA
========================================== */

.artwork-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.artwork-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.10);
}


/* ==========================================
   IMAGEN
========================================== */

.artwork-card img {
    width: 100%;
    height: 320px;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.artwork-card:hover img {
    transform: scale(1.03);
}


/* ==========================================
   INFORMACIÓN
========================================== */

.artwork-info {
    padding: 20px;
}

.artwork-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
}

.artwork-info p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.75;
}

.artwork-info small {
    font-size: 13px;
    opacity: 0.55;
}


/* ==========================================
   CONTROLES DE GALERÍA
========================================== */

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 45px;
}


/* ==========================================
   BOTONES
========================================== */

.gallery-controls button {
    min-width: 130px;
    padding: 12px 22px;

    border: 1px solid #222;
    border-radius: 8px;

    background: #222;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* Hover */

.gallery-controls button:hover:not(:disabled) {
    background: #ffffff;
    color: #222;
    transform: translateY(-2px);
}


/* Botón desactivado */

.gallery-controls button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}


/* ==========================================
   NÚMERO DE PÁGINA
========================================== */

#paginaInfo {
    min-width: 100px;

    text-align: center;

    font-size: 14px;
    font-weight: 600;

    color: #333;
}


/* ==========================================
   RESPONSIVE - TABLET
========================================== */

@media (max-width: 900px) {

    .grid-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .artwork-card img {
        height: 280px;
    }

}


/* ==========================================
   RESPONSIVE - MÓVIL
========================================== */

@media (max-width: 600px) {

    .gallery-section {
        padding: 30px 15px 50px;
    }

    .grid-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .artwork-card img {
        height: 300px;
    }

    .gallery-controls {
        gap: 10px;
        margin-top: 30px;
    }

    .gallery-controls button {
        min-width: auto;
        padding: 10px 15px;
        font-size: 13px;
    }

    #paginaInfo {
        min-width: 75px;
        font-size: 13px;
    }

}