/* ===================================
   PICKLE PRO TOUR - ESTILOS PRINCIPALES
   Basado en pickleprotour.com
   =================================== */



@font-face {
    font-family: "Mabry Pro Light";
    src: url(../fonts/Mabry-Pro-Light.woff2)format("woff2"),url(../fonts/Mabry-Pro-Light.woff)format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Mabry Pro Light Italic";
    src: url(../fonts/Mabry-Pro-Light-Italic.woff2)format("woff2"),url(../fonts/Mabry-Pro-Light-Italic.woff)format("woff");
    font-weight: 300;
    font-style: italic;
    font-display: swap
}

@font-face {
    font-family: "Mabry Pro";
    src: url(../fonts/Mabry-Pro.woff2)format("woff2"),url(../fonts/Mabry-Pro.woff)format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Mabry Pro Italic";
    src: url(../fonts/Mabry-Pro-Italic.woff2)format("woff2"),url(../fonts/Mabry-Pro-Italic.woff)format("woff");
    font-weight: 400;
    font-style: italic;
    font-display: swap
}

@font-face {
    font-family: "Mabry Pro Medium";
    src: url(../fonts/Mabry-Pro-Medium.woff2)format("woff2"),url(../fonts/Mabry-Pro-Medium.woff)format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Mabry Pro Medium Italic";
    src: url(../fonts/Mabry-Pro-Medium-Italic.woff2)format("woff2"),url(../fonts/Mabry-Pro-Medium-Italic.woff)format("woff");
    font-weight: 500;
    font-style: italic;
    font-display: swap
}

@font-face {
    font-family: "Mabry Pro Bold";
    src: url(../fonts/Mabry-Pro-Bold.woff2)format("woff2"),url(../fonts/Mabry-Pro-Bold.woff)format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Mabry Pro Bold Italic";
    src: url(../fonts/Mabry-Pro-Bold-Italic.woff2)format("woff2"),url(../fonts/Mabry-Pro-Bold-Italic.woff)format("woff");
    font-weight: 700;
    font-style: italic;
    font-display: swap
}



/* --- RESET Y BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --color-primary: #6ed4ff;
    --color-secondary: #C4D600;
    --color-dark: #1a1a1a;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg-light: #F5F5F5;
    --color-white: #FFFFFF;
    --color-accent: #6ed4ff;
    --color-navy: #0b0c4c;
    --color-blue: #236af8;
    --color-blue-bg: #007aff;
    
    /* Colores header */
    --color-bg-header: #0d0d0d;
    --color-yellow: #f5c518;
    --color-yellow-hover: #ffd700;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-text-gray: #a0a0a0;
    
    /* Margen lateral unificado para secciones */
    --side-margin: 30px;
    
    /* Espaciados */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 100px;
    
    /* Tipografía */
    --font-primary: 'Mabry Pro';
    --font-size-xs: 12px;
    --font-size-sm: 12px;
    --font-size-base: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 42px;
    --font-size-4xl: 56px;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}


/* ============================================
   HEADER - Pickle Pro Tour
   ============================================ */

.header {
    position: fixed;
    top: 30px;
    left: 30px;
    right: 30px;
    width: auto;
    padding: 5px 20px 5px 60px;
    background: #FFF;
    border-radius: 999px;
    transition: all .6s cubic-bezier(.645,.045,.355,1);
    box-shadow: 0 0 20px 10px rgb(35 106 248 / 5%);
    z-index: 1000;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    transition: 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img,
.logo img {
    height: 60px;
    width: auto;
}

/* Navegación principal */
.nav-main ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 28px 20px;
    font-family: var(--font-primary);
    font-size: larger;
    /*! font-weight: 600; */
    color: var(--color-navy);
    letter-spacing: 0.5px;
    transition: 0.3s ease;
    position: relative;
    /*! text-transform: uppercase; */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 0;
    height: 2px;
    background-color: var(--color-navy);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 40px);
}

/* Botón header */
.btn-header {
    position: relative;
    overflow: hidden;
    border: 0;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    border-radius: 999px;
    background-color: var(--color-blue);
    border: 1px solid var(--color-blue);
    padding: 14px 24px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-header:hover {
    border: 1px solid var(--color-blue);
    background-color: transparent;
    color: var(--color-blue);
}

/* Hamburguesa */
/*.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid var(--color-navy);
    cursor: pointer;
    padding: 12px;
    gap: 6px;
    transition: 0.3s ease;
}

.hamburger:hover {
    border-color: var(--color-blue);
}

.hamburger:hover .hamburger-line {
    background-color: var(--color-blue);
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-navy);
    transition: 0.3s ease;
    transform-origin: center;
}*/

.hamburger {
    display: none; /* se muestra solo en mobile via media query */
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    align-items: center;
    justify-content: center;
}

.hamburger-img {
    width: 60px;
    height: 60px;
    display: block;
    /* Si la imagen es oscura y el fondo del header es oscuro, puedes invertirla: */
    /* filter: invert(1); */
}

/* Menú mobile */
.mobile-menu {
    position: fixed;
    top: 110px;
    left: 30px;
    right: 30px;
    width: auto;
    background-color: white;
    border-radius: 30px;
    transform: translateX(-150%);
    transition: transform 0.4s ease;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 140px);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav {
    padding: 20px 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-navy);
    transition: 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--color-primary);
    background-color: rgba(35, 106, 248, 0.05);
}

.mobile-cta {
    padding: 20px 30px 30px;
}

.mobile-cta .btn-cta {
    display: block;
    width: 100%;
    padding: 16px 28px;
    background-color: var(--color-blue);
    color: white;
    text-align: center;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--color-blue);
}

.mobile-cta .btn-cta:hover {
    background-color: transparent;
    color: var(--color-blue);
}


/* --- HERO SECTION --- */
.hero-section {
    margin-top: 145px !important;
    padding: var(--spacing-lg) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    bottom: 0;
    background: url('../img/bg-1.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* YouTube iframe responsivo */
.youtube-wrapper {
    width: 100%;
    max-width: 980px;
    margin: 20px auto 0;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.youtube-wrapper .youtube-player {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

@media (max-width: 768px) {
    .youtube-wrapper {
        width: 100%;
        border-radius: 12px;
    }
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================
   MARQUESINA - Pickle Pro Tour
   ============================================ */

.marquee-container {
    width: 100%;
    background-color: #ff69b4;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.marquee-content {
    display: flex;
    width: fit-content;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    font-size: 68px;
    font-weight: 700;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 68px;
    margin-top: 2px;
}

.marquee-white {
    color: white;
}

.marquee-blue {
    color: var(--color-navy);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* --- SECTION GENERAL --- */
.section {
    padding: var(--spacing-lg) 0;
}

/* --- SECTION TITLES Y LABELS --- */

/* Label pequeño (ACTUALIDAD, TORNEOS, PATROCINADORES) */
.section-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.section-label--dark {
    color: #0b0c4c;
}

.section-label--accent {
    color: var(--color-accent);
}

/* Título de sección */
.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    position: relative;
    /*! padding-bottom: var(--spacing-sm); */
    z-index: 2;
}

.section-title--dark {
    color: #0b0c4c;
}

.section-title--accent {
    color: var(--color-accent);
}


/* ============================================
   SECCIÓN ACTUALIDAD (#actualidad)
   ============================================ */

#actualidad {
    /*! margin-top: 30px; */
    padding: var(--spacing-lg) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#actualidad::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    bottom: 0;
    border-radius: 30px;
    background: var(--color-blue-bg);
}

/* FIX: El contenedor debe estar por encima del ::before */
#actualidad > .container {
    position: relative;
    z-index: 2;
}


/* --- NOTICIAS / ACTUALIDAD GRID --- */

/* Layout principal: grid 3 columnas, featured ocupa 2 columnas */
.noticias-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* La noticia destacada ocupa 2 columnas horizontalmente */
.noticia-card--featured {
    grid-column: 1 / 3;
}

.noticia-card--featured .noticia-imagen-container {
    padding-top: 55%;
}

.noticia-card--featured .noticia-titulo {
    font-size: 22px;
}

.noticia-card--featured .noticia-descripcion {
    font-size: 15px;
}

/* Card base */
.noticia-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.noticia-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Imagen container */
.noticia-imagen-container {
    position: relative;
    width: 100%;
    padding-top: 62%;
    overflow: hidden;
    background: var(--color-bg-light);
}

.noticia-imagen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.noticia-card:hover .noticia-imagen {
    transform: scale(1.05);
}

/* Overlay gradiente */
.noticia-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* Tag (NOTICIA, VÍDEO, GALERÍA) */
.noticia-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--color-blue);
    color: var(--color-white);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 10;
    font-family: var(--font-primary);
}

.noticia-tag.video {
    background: #FF4757;
}

.noticia-tag.galeria {
    background: #5F27CD;
}

.noticia-tag.noticia {
    background: #236af8;
}

/* Icono de play para vídeos */
.noticia-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.noticia-play-icon svg {
    margin-left: 3px;
}

.noticia-card:hover .noticia-play-icon {
    background: rgba(255, 71, 87, 0.85);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Contenido de la card */
.noticia-content {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.noticia-fecha {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 6px;
    font-weight: 600;
    font-family: var(--font-primary);
    letter-spacing: 0.3px;
}

.noticia-titulo {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 6px;
    line-height: 1.3;
    font-family: var(--font-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-descripcion {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    flex: 1;
    font-family: var(--font-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botón "Ver todas las noticias" */
.noticias-ver-todas {
    text-align: center;
    margin-top: 40px;
}

.btn-ver-todas {
    display: inline-block;
    padding: 14px 36px;
    background: var(--color-white);
    color: var(--color-navy);
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    font-family: var(--font-primary);
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-ver-todas:hover {
    background: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}


/* ============================================
   SECCIÓN TORNEOS — replicado de pickleprotour.com
   main.css + kader-hacks (kader-hacks tiene prioridad)
   ============================================ */

/* Contenedor flex — igual que .d-tournaments .block-cards */
.torneos-grid {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ── CARD ── */
a.card {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 72vh;
    width: calc(33.333333% - 20px);
    color: #fff;
}

@media (max-width: 1200px) {
    a.card { height: 56vh; }
}

@media (max-width: 1100px) {
    a.card { width: calc(50% - 20px); }
}

@media (max-width: 768px) {
    a.card { width: 100%; height: 50vh; }
}

/* ── IMAGEN ── */
/* Ocupa la card EXCEPTO los 170px del panel inferior */
a.card .b-img {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    z-index: 1;
    height: calc(100% - 170px);
    opacity: 1;
    transition: all .4s cubic-bezier(.645,.045,.355,1);
    overflow: hidden;
}

@media (max-width: 768px) {
    a.card .b-img { height: calc(100% - 130px); }
}

a.card .b-img picture { display: block; width: 100%; height: 100%; }

a.card .b-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .4s cubic-bezier(.645,.045,.355,1);
}

/* Overlay azul sobre imagen — siempre opacity:0, en hover también 0 (kader-hacks) */
a.card .b-img:before {
    position: absolute;
    content: "";
    top: 0; bottom: 0; left: 0; right: 0;
    z-index: 2;
    background-color: #236af8;
    opacity: 0;
    transition: all .4s cubic-bezier(.645,.045,.355,1);
}

/* Finalizado: fondo navy, imagen semitransparente */
a.card.finalizado .b-img {
    background-color: #0b0c4c !important;
}
a.card.finalizado .b-img img {
    opacity: 0.5;
}

/* ── PANEL DE TEXTO ── */
a.card .b-text {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    color: #fff;
    border-radius: 20px;
    overflow: hidden;
}

a.card .b-text > div {
    position: relative;
    padding: 23px 30px 16px 17px;
}

/* Fondo de color del panel via pseudo-elemento */
a.card .b-text > div:before {
    position: absolute;
    content: "";
    top: 0; bottom: 0; left: 0; right: 0;
    z-index: -1;
    opacity: 1;
    transition: all .4s cubic-bezier(.645,.045,.355,1);
    background-color: #236af8; /* azul: próximo / en curso */
}

a.card.finalizado .b-text > div:before {
    background-color: #88A4F8; /* lavanda: finalizado */
}

/* ── TEXTOS ── */
a.card .b-text .title {
    font-family: 'Mabry Pro', sans-serif;
    font-size: 44px;
    line-height: 100%;
    letter-spacing: -3px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #fff;
}

@media (max-width: 992px) {
    a.card .b-text .title { font-size: 28px; letter-spacing: -1px; }
}

@media (max-width: 768px) {
    a.card .b-text .title { font-size: 28px; line-height: 28px; letter-spacing: -1px; }
}

a.card .b-text .d-date {
    font-family: 'Mabry Pro Light', 'Mabry Pro', sans-serif;
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 0;
    color: #fff;
}

@media (max-width: 768px) {
    a.card .b-text .d-date { font-size: 16px; line-height: 18px; }
}

/* ── CIUDAD + ICONO ── */
a.card .b-text .d-link {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #fff;
}

@media (max-width: 768px) {
    a.card .b-text .d-link { margin-top: 20px; }
}

a.card .b-text .d-link span {
    font-family: 'Mabry Pro Light', 'Mabry Pro', sans-serif;
    font-size: 24px;
    line-height: 28px;
    color: #fff;
}

@media (max-width: 768px) {
    a.card .b-text .d-link span { font-size: 16px; line-height: 18px; }
}

/* Icono flecha — SVG mask igual que el original */
a.card .b-text .d-link i,
a.card .b-text .d-link .ico-link {
    background-color: #fff;
    width: 16px;
    height: 28px;
    display: inline-block;
    flex-shrink: 0;
    -webkit-mask-image: url('img/icons/arrow.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    font-style: normal;
}

/* ── HOVER (valores reales del kader-hacks) ──────────────────
   - Imagen: escala 1.05, mantiene altura original (NO sube a 100%)
   - Overlay azul sobre imagen: NO aparece (opacity: 0)
   - Panel inferior: SE MANTIENE visible (opacity: 1)
   ─────────────────────────────────────────────────────────── */
a.card:hover .b-img {
    transform: scale(1.05);
    height: calc(100% - 170px); /* mantiene la misma altura */
}

@media (max-width: 768px) {
    a.card:hover .b-img {
        height: calc(100% - 130px);
    }
}

a.card:hover .b-img img {
    transform: scale(1); /* la imagen no escala por separado */
}

a.card:hover .b-img:before {
    opacity: 0; /* overlay azul no aparece */
}

a.card:hover .b-text > div:before {
    opacity: 1; /* panel se mantiene visible */
}

/* Compatibilidad con clases legacy */
.torneo-card { display: none !important; }

/* ============================================
   SECCIÓN CIRCUITO (con imagen de fondo)
   ============================================ */

.circuito-section {
    position: relative;
    padding: var(--spacing-xxl) 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
}

.circuito-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.circuito-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.circuito-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.circuito-descripcion {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* ============================================
   SECCIÓN SOCIAL / INSTAGRAM
   ============================================ */

.social-section {
    background: var(--color-bg-light);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

.instagram-item {
    position: relative;
    padding-top: 100%; /* Cuadrado */
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--color-white);
}

.instagram-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 212, 170, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}


/* ============================================
   SECCIÓN PATROCINADORES
   ============================================ */

/* ============================================================
   PATROCINADORES — main.css + kader-hacks (versión definitiva)
   ============================================================ */

.patrocinadores-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .patrocinadores-section { padding: 40px 0; }
}

.patrocinadores-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--side-margin, 20px);
    right: var(--side-margin, 20px);
    bottom: 0;
    border-radius: 20px;
    background-image: url('../img/bg-3.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

@media (max-width: 768px) {
    .patrocinadores-section::before { left: 5px; right: 5px; }
}

.patrocinadores-section > .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.patrocinadores-section .section-label,
.patrocinadores-section .section-title { color: #6ed4ff; }
.patrocinadores-section .section-title { margin-bottom: 60px; }

/* ── Base de todas las listas ── */
.b-logos { padding: 0; margin: 0; }

.b-logos ul {
    list-style: none;
    margin: 0 0 64px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.b-logos ul li img {
    display: block;
    object-fit: contain;
    width: auto;
    transition: opacity .3s ease;
}

.b-logos ul li img:hover { opacity: 0.75; }

/* ── ul:nth-child(1) — PATROCINADOR PRINCIPAL ─────────────
   Banner panorámico: ancho completo, alto automático
   ─────────────────────────────────────────────────────── */
.b-logos ul:nth-child(1) { margin-bottom: 64px; }
.b-logos ul:nth-child(1) li { width: 100%; }
.b-logos ul:nth-child(1) li img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

/* ── ul:nth-child(2) — PREMIUM ────────────────────────────
   3 logos medianos, espaciados uniformemente
   ─────────────────────────────────────────────────────── */
.b-logos ul:nth-child(2) {
    justify-content: space-evenly;
    gap: 80px;
}
.b-logos ul:nth-child(2) li img { height: 90px; }

/* ── ul:nth-child(3) — OFICIALES ──────────────────────────
   6 logos en una fila centrada
   ─────────────────────────────────────────────────────── */
.b-logos ul:nth-child(3) {
    justify-content: center;
    gap: 85px;
}
.b-logos ul:nth-child(3) li img { height: 52px; }

/* ── ul:nth-child(4) — COLABORADORES ─────────────────────
   8 logos en 2 filas de 6 y 2, logos más grandes
   ─────────────────────────────────────────────────────── */
.b-logos ul:nth-child(4) {
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.b-logos ul:nth-child(4) li {
    flex: 0 0 calc(16.666% - 40px);
    display: flex;
    justify-content: center;
}
.b-logos ul:nth-child(4) li img { height: 44px; }

/* ── ul:nth-child(5) — ORGANIZA / COMERCIALIZA / RFET ────
   Cada li en columna: label celeste arriba + logo abajo
   ─────────────────────────────────────────────────────── */
.b-logos ul:nth-child(5) {
    align-items: flex-start;
    justify-content: center;
    gap: 100px;
    margin-bottom: 0;
}
.b-logos ul:nth-child(5) li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    min-width: 100px;
}
.b-logos ul:nth-child(5) li p {
    font-family: 'Mabry Pro', sans-serif;
    font-size: 18px;
    line-height: 18px;
    color: #6ed4ff;
    margin-bottom: 0;
    white-space: nowrap;
}
.b-logos ul:nth-child(5) li img { height: 56px; }

/* ── 1550px ── */
@media (max-width: 1550px) {
    .b-logos ul { margin-bottom: 50px; }
    .b-logos ul:nth-child(2) { gap: 66px; }
    .b-logos ul:nth-child(2) li img { height: 74px; }
    .b-logos ul:nth-child(3) { gap: 53px; }
    .b-logos ul:nth-child(3) li img { height: 44px; }
    .b-logos ul:nth-child(4) li img { height: 26px; }
    .b-logos ul:nth-child(5) { gap: 53px; }
    .b-logos ul:nth-child(5) li img { height: 44px; }
}

/* ── 1200px ── */
@media (max-width: 1200px) {
    .b-logos ul { margin-bottom: 35px; }
    .b-logos ul:nth-child(2) { gap: 51px; }
    .b-logos ul:nth-child(2) li img { height: 58px; }
    .b-logos ul:nth-child(3) { gap: 20px; }
    .b-logos ul:nth-child(3) li img { height: 40px; }
    .b-logos ul:nth-child(4) li img { height: 22px; }
    .b-logos ul:nth-child(5) { gap: 41px; }
    .b-logos ul:nth-child(5) li img { height: 44px; }
}

/* ── 992px TABLET ─────────────────────────────────────────
   Todos los ul pasan a flex-wrap excepto ul4 que sigue en
   1 fila pero con logos más pequeños
   ─────────────────────────────────────────────────────── */
@media (max-width: 992px) {

    .b-logos ul {
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 40px;
    }

    .b-logos ul li { width: auto; text-align: center; }
    .b-logos ul li img { display: inline-block; }

    .b-logos ul:nth-child(1) li img { height: auto; max-height: 120px; }

    /* Premium: 2-3 por fila */
    .b-logos ul:nth-child(2) li { flex: 1 1 33%; }
    .b-logos ul:nth-child(2) li img { height: 58px; }

    /* Oficiales: 2 por fila */
    .b-logos ul:nth-child(3) li { flex: 1 1 40%; }
    .b-logos ul:nth-child(3) li:nth-child(n+3) { flex: 1 1 33%; }
    .b-logos ul:nth-child(3) li img { height: 40px; }

    /* Colaboradores: 2 por fila en tablet */
    .b-logos ul:nth-child(4) { justify-content: center; gap: 2rem; }
    .b-logos ul:nth-child(4) li { flex: 1 1 40%; }
    .b-logos ul:nth-child(4) li img { height: 38px; margin: 0 auto; }

    /* Organización */
    .b-logos ul:nth-child(5) { gap: 1rem; }
    .b-logos ul:nth-child(5) li img { height: 43px; }
    .b-logos ul:nth-child(5) li p { font-size: 14px; line-height: 14px; }
}

/* ── 768px MÓVIL ── */
@media (max-width: 768px) {
    .b-logos ul:nth-child(1) li img { max-height: 80px; }
    .b-logos ul:nth-child(2) li img { height: 50px; }
    .b-logos ul:nth-child(3) li img { height: 36px; }
    .b-logos ul:nth-child(4) li img { height: 32px; }
    .b-logos ul:nth-child(5) li img { height: 50px; }
}

/* ── 450px ── */
@media (max-width: 450px) {
    .b-logos ul:nth-child(5) li img { height: 36px; }
}




/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: transparent;
    padding: 0 var(--side-margin) var(--side-margin) var(--side-margin);
}

.footer-wrapper {
    background: var(--color-navy);
    border-radius: 30px;
    padding: 60px 80px 40px 80px;
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo-col {
    flex: 0 0 auto;
    max-width: 450px;
    padding-top: 50px;
}

.footer-logo-img {
    width: 100%;
    max-width: 430px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-right-col {
    flex: 0 0 auto;
    line-height: 1.2;
    margin-top: 80px;
}

.footer-links-row {
    display: flex;
    gap: 80px;
    margin-bottom: 40px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    font-size: 15px;
    /*! font-weight: 600; */
    font-family: var(--font-primary);
    transition: opacity 0.3s ease;
    font-size: var(--font-size-base);
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social-icon {
    width: 48px;
    height: 48px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background: #ffffff;
    color: var(--color-navy);
    transform: translateY(-3px);
}

.footer .footer-bottom {
    border-top: none;
    padding-top: 20px;
    text-align: left;
}

.footer .footer-bottom p {
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: var(--font-primary);
}


/* ============================================
   BOTÓN SCROLL TO TOP
   ============================================ */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}


/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}


/* ============================================
   LOADING SKELETON
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ============================================
   EXTRAS / UTILIDADES
   ============================================ */

.subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
}

.instagram-link {
    color: var(--color-primary);
    font-weight: 600;
    transition: color var(--transition-base);
}

.instagram-link:hover {
    color: var(--color-secondary);
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .nav-link {
        padding: 28px 15px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .noticias-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    /* torneos: responsive en el bloque a.card */
}

@media (max-width: 992px) {
    .nav-main {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }
    
    .footer-wrapper {
        padding: 50px 40px 30px 40px;
    }

    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-logo-col {
        max-width: 300px;
    }

    .footer-right-col {
        width: 100%;
    }

    .footer-links-row {
        justify-content: center;
        gap: 50px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer .footer-bottom {
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --side-margin: 10px;
    }

    .header {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 8px 16px;
    }

    .logo img {
        height: 80px;
        padding: 8px;
    }
    
    .mobile-menu {
        top: 90px;
        left: 10px;
        right: 10px;
        max-height: calc(100vh - 100px);
    }
    
    .mobile-nav-link {
        font-size: 16px;
        padding: 16px 20px;
    }
    
    .hero-section {
        margin-top: 100px !important;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .noticias-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .noticia-card--featured {
        grid-column: auto;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section {
        padding: var(--spacing-sm) 0;
    }
    
    .circuito-section {
        background-attachment: scroll;
    }
    
    .marquee-item {
        /*! font-size: 1.5rem; */
        /*! margin-right: 30px; */
    }
    
    .marquee-container {
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .footer-wrapper {
        padding: 40px 24px 24px 24px;
        border-radius: 20px;
    }

    .footer-links-row {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-social-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    :root {
        --side-margin: 6px;
        --font-size-4xl: 32px;
        --font-size-3xl: 28px;
        --font-size-2xl: 24px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-section {
        margin-top: 100px !important;
        padding: var(--spacing-sm) 0;
    }
    
    .header {
        top: 6px;
        left: 6px;
        right: 6px;
        padding: 6px 12px;
    }

    .logo img {
        height: 75px;
        padding: 10px;
    }

    /*.hamburger {
        width: 40px;
        height: 40px;
        padding: 8px;
        border-width: 1px;
    }*/
    
    
    .mobile-menu {
        top: 80px;
    }
    
    .mobile-nav-link {
        font-size: 14px;
        padding: 14px 16px;
    }
    
    .mobile-cta {
        padding: 16px;
    }
    
    .marquee-item {
        font-size: 3.2rem;
        margin-right: 20px;
    }
}



/* ============================================
   Paginas dinamicas
   ============================================ */
#pagina {
    margin-top: 130px;
    padding: var(--spacing-lg) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--color-navy);
}

#pagina::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    bottom: 0;
    border-radius: 30px;   
}

#pagina.cyan::before{
    background: #6ed4ff;
}

/* FIX: El contenedor debe estar por encima del ::before */
#pagina.cyan > .container {
    position: relative;
    z-index: 2;
}

.imgNoti img, .img-ciudad{
    border-radius: 20px;
}

.pagina {
    margin-top: 150px;
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--color-navy);
}

.pagina::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    bottom: 0;
    border-radius: 30px;   
}

.pagina.grey::before{
    background:#eee;
}

/* FIX: El contenedor debe estar por encima del ::before */
.pagina.grey > .container {
    position: relative;
    z-index: 2;
}


/* ============================================
   PÁGINA DE VÍDEO - Pickle Pro Tour
   Depende de styles.css (variables, header, footer)
   ============================================ */

.video-page {
    padding-top: 160px;
    padding-bottom: var(--spacing-xl);
    background: var(--color-bg-light);
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: var(--spacing-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
}

.breadcrumb a {
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--color-blue);
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-current {
    color: var(--color-navy);
    font-weight: 600;
}

/* Tarjeta de vídeo */
.video-card {
    background: var(--color-white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px -8px rgba(11, 12, 76, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Player responsive */
.video-player {
    position: relative;
    width: 100%;
    background: #000;
}

.video-player video {
    display: block;
    width: 100%;
    max-height: 75vh;
    background: #000;
}

/* Info debajo del vídeo */
.video-info {
    padding: 40px 48px;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.video-tag {
    background: #FF4757;
    color: white;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-date {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 500;
}

.video-date i {
    margin-right: 4px;
    color: var(--color-primary);
}

.video-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.video-description {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 800px;
}

/* Responsive */
@media (max-width: 768px) {
    .video-page {
        padding-top: 120px;
    }

    .video-info {
        padding: 28px 24px;
    }

    .video-title {
        font-size: 24px;
    }
    #pagina{
        margin-top: 110px !important;
    }
}

@media (max-width: 480px) {
    .video-page {
        padding-top: 100px;
    }

    .video-card {
        border-radius: 20px;
    }

    .video-info {
        padding: 20px 16px;
    }

    .video-title {
        font-size: 20px;
    }

    .video-description {
        font-size: 14px;
    }
    
     #pagina{
        margin-top: 70px !important;
        /*! padding-top: 60px; */
    }
}


/* ── Separador de año en la sección de torneos ── */

.torneos-year-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0 24px;
}

/* Primer separador sin margen superior */
.torneos-year-divider:first-of-type {
    margin-top: 0;
}

/* Pill con el año */
.torneos-year-pill {
    font-family: 'Mabry Pro', sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -3px;
    color: #0b0c4c;
    background-color: #6ed4ff;
    border-radius: 999px;
    padding: 10px 28px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Línea que acompaña la pill hasta el borde derecho */
.torneos-year-line {
    flex: 1;
    height: 2px;
    background-color: #6ed4ff;
    border-radius: 2px;
    opacity: 0.35;
}

/* Grid de cards por año — igual que .torneos-grid pero con mb para separar del siguiente año */
.torneos-grid--year {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .torneos-year-pill {
        font-size: 24px;
        letter-spacing: -1px;
        padding: 8px 20px;
    }
    .torneos-year-divider {
        margin: 28px 0 16px;
    }
}


.anunciante-img {
    display: block;
    width: 100%;
    height: auto;
}
 
/* Móvil (< 768px): solo imagen móvil */
.anunciante-img--desktop { display: block; }
.anunciante-img--movil   { display: none;  }
 
@media (max-width: 767px) {
    .anunciante-img--desktop { display: none;  }
    .anunciante-img--movil   { display: block; }
}

/* ── CARD SOLO-IMAGEN (calendario, decorativo) ───────────── */
/* Mismas dimensiones que a.card, pero la imagen se ve
   completa (contain) con fondo navy para los huecos       */


div.card-imagen {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 72vh;
    width: calc(33.333333% - 20px);
    cursor: default;
    background: #FFF;        /* fondo para los huecos laterales/verticales */
    border: 2px solid aliceblue;
}

div.card-imagen .b-img {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

div.card-imagen .b-img picture {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

div.card-imagen .b-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;        /* imagen completa, sin recorte */
    object-position: center;
    display: block;
}

/* Breakpoints idénticos a a.card */
@media (max-width: 1200px) {
    div.card-imagen { height: 56vh; }
}

@media (max-width: 1100px) {
    div.card-imagen { width: calc(50% - 20px); }
}

@media (max-width: 768px) {
    div.card-imagen { width: 100%; height: 50vh; }
}