@import url('../typography-responsive.css');

:root {
            --yellow: #FFBD59;
            --red:    #FF3131;
            --white:  #FFFEF8;
            --black:  #080517;
            --font-display: 'Archivo Black', sans-serif;
            --font-body:    'Archivo', sans-serif;
        }

        body {
            background-color: var(--black);
            color: var(--white);
            font-family: var(--font-body), sans-serif;
            overflow-x: hidden;
        }

        /* VIDEO WRAPPERS */
        .vid-wrap {
            position: relative;
            width: 100%;
            overflow: hidden;
            background-color: var(--black);
        }
        .vid-916 { aspect-ratio: 9 / 16; }
        .vid-169 { aspect-ratio: 16 / 9; }
        .vid-11  { aspect-ratio: 1 / 1;  }

        .vid-wrap video {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .vid-poster {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            cursor: pointer;
            z-index: 2;
            transition: opacity 0.3s ease;
        }
        .vid-poster.hidden { opacity: 0; pointer-events: none; }

        .vid-overlay {
            position: absolute;
            inset: 0;
            z-index: 3;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s ease;
            background: rgba(8, 5, 23, 0.35);
        }

        .card-inner:hover .vid-overlay { opacity: 1; }
        .card-inner.is-paused .vid-overlay { opacity: 1; }

        .vid-icon {
            font-style: normal;
            font-size: 2rem;
            color: var(--white);
            line-height: 1;
            pointer-events: none;
            text-shadow: 0 2px 8px rgba(0,0,0,0.6);
        }

        .vid-icon-pause { display: block; }
        .vid-icon-play  { display: none;  }
        .card-inner.is-paused .vid-icon-pause { display: none;  }
        .card-inner.is-paused .vid-icon-play  { display: block; }

        /* WhatsApp flotante */
        .whatsapp-float {
            position: fixed;
            bottom: 28px;
            right: 28px;
            z-index: 999;
            width: 54px;
            height: 54px;
            background-color: #25D366;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            text-decoration: none;
            border: 2px solid var(--black);
            transition: transform 0.2s ease;
        }
        .whatsapp-float svg { width: 28px; height: 28px; }
        .whatsapp-float:hover { transform: scale(1.1); }


        /* ══════════════════════════════════════════
           SECCIÓN DISEÑOS WEB — PROYECTO DESTACADO
           ══════════════════════════════════════════ */

        .web-section {
            padding: 72px 0 100px;
        }

        /* ── Badge destacado ── */
        .featured-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            background: var(--yellow);
            color: var(--black);
            font-family: var(--font-display);
            font-size: 0.72rem;
            letter-spacing: 0.13em;
            padding: 5px 13px;
            border-radius: 2px;
            margin-bottom: 28px;
        }
        .featured-badge::before { content: '★'; }

        /* ── Card principal ── */
        .featured-project {
            background: rgba(255,255,248,0.025);
            border: 1px solid rgba(255,255,248,0.08);
            border-radius: 6px;
            overflow: hidden;
        }

        /* ── PORTADA del sitio (imagen hero arriba) ── */
        .featured-cover {
            position: relative;
            width: 100%;
            overflow: hidden;
            background: #0d0b1e;
            cursor: zoom-in;
        }

        .featured-cover-bar {
            background: #1a1730;
            padding: 9px 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .browser-dots {
            display: flex;
            gap: 5px;
            flex-shrink: 0;
        }
        .browser-dot { width: 9px; height: 9px; border-radius: 50%; }
        .dot-red    { background: #FF5F57; }
        .dot-yellow { background: #FFBD2E; }
        .dot-green  { background: #28CA41; }

        .browser-url {
            flex: 1;
            background: rgba(255,255,255,0.07);
            border-radius: 4px;
            padding: 3px 10px;
            font-size: 0.7rem;
            color: rgba(255,255,248,0.45);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .featured-cover-img {
            display: block;
            width: 100%;
            max-width: 1868px;
            height: auto;
            margin-left: auto;
            margin-right: auto;
            transition: transform 0.5s ease;
        }
        .featured-cover:hover .featured-cover-img { transform: scale(1.015); }

        .featured-cover-hint {
            position: absolute;
            bottom: 14px;
            right: 16px;
            background: rgba(8,5,23,0.72);
            color: rgba(255,255,248,0.85);
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            padding: 5px 12px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 6px;
            opacity: 0;
            transition: opacity 0.2s ease;
            pointer-events: none;
        }
        .featured-cover-hint svg { width: 13px; height: 13px; }
        .featured-cover:hover .featured-cover-hint { opacity: 1; }

        /* ── Layout info: izq texto · der link ── */
        .featured-body {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: start;
            gap: 20px;
            padding: 28px 32px 24px;
            border-bottom: 1px solid rgba(255,255,248,0.07);
        }
        @media (max-width: 600px) {
            .featured-body {
                grid-template-columns: 1fr;
                padding: 22px 20px 18px;
                gap: 16px;
            }
        }

        .featured-category {
            font-size: 0.72rem;
            letter-spacing: 0.11em;
            text-transform: uppercase;
            color: var(--yellow);
            font-weight: 600;
            display: block;
            margin-bottom: 8px;
        }

        .featured-title {
            font-family: var(--font-display);
            font-size: clamp(1.5rem, 4vw, 2.2rem);
            line-height: 1.1;
            margin: 0 0 12px;
        }

        .featured-desc {
            font-size: 0.9rem;
            line-height: 1.7;
            color: rgba(255,255,248,0.65);
            margin: 0;
        }

        .featured-url {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255,255,248,0.05);
            border: 1px solid rgba(255,255,248,0.11);
            color: var(--white);
            text-decoration: none;
            font-size: 0.78rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            padding: 9px 16px;
            border-radius: 3px;
            white-space: nowrap;
            flex-shrink: 0;
            transition: background 0.2s, border-color 0.2s, color 0.2s;
        }
        .featured-url:hover {
            background: rgba(255,189,89,0.1);
            border-color: var(--yellow);
            color: var(--yellow);
        }
        .featured-url svg { width: 13px; height: 13px; opacity: 0.7; }

        /* ── Tags ── */
        .featured-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            padding: 16px 32px;
            border-bottom: 1px solid rgba(255,255,248,0.07);
        }
        @media (max-width: 600px) { .featured-tags { padding: 14px 20px; } }

        .tag {
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(255,255,248,0.55);
            background: rgba(255,255,248,0.04);
            border: 1px solid rgba(255,255,248,0.09);
            padding: 4px 11px;
            border-radius: 2px;
        }

        /* ── Highlights ── */
        .featured-highlights {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            border-bottom: 1px solid rgba(255,255,248,0.07);
        }
        @media (max-width: 700px) {
            .featured-highlights { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 380px) {
            .featured-highlights { grid-template-columns: 1fr; }
        }

        .highlight-item {
            padding: 18px 24px;
            border-right: 1px solid rgba(255,255,248,0.07);
        }
        .highlight-item:last-child { border-right: none; }
        @media (max-width: 700px) {
            .highlight-item:nth-child(2) { border-right: none; }
            .highlight-item:nth-child(1),
            .highlight-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,248,0.07); }
        }
        @media (max-width: 600px) {
            .highlight-item { padding: 14px 20px; }
        }

        .highlight-label {
            font-size: 0.67rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: rgba(255,255,248,0.35);
            font-weight: 600;
            display: block;
            margin-bottom: 5px;
        }
        .highlight-value {
            font-family: var(--font-display);
            font-size: 0.95rem;
            color: var(--white);
            line-height: 1.25;
        }

        /* ── Admin intro strip ── */
        .admin-section-intro {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 20px 32px;
            background: rgba(255,189,89,0.03);
            border-top: 1px solid rgba(255,189,89,0.12);
            flex-wrap: wrap;
        }
        @media (max-width: 600px) { .admin-section-intro { padding: 16px 20px; } }

        .admin-intro-eyebrow {
            font-size: 0.67rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--yellow);
            font-weight: 700;
            display: block;
            margin-bottom: 3px;
        }
        .admin-intro-text {
            margin: 0;
            font-size: 0.85rem;
            color: rgba(255,255,248,0.6);
            line-height: 1.5;
        }
        .admin-intro-pill {
            flex-shrink: 0;
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.07em;
            text-transform: uppercase;
            color: var(--yellow);
            background: rgba(255,189,89,0.09);
            border: 1px solid rgba(255,189,89,0.22);
            padding: 5px 13px;
            border-radius: 2px;
        }

        /* ── Grilla de screenshots 2×2 ── */
        .screenshot-gallery {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2px;
            background: rgba(255,255,248,0.04);
        }
        @media (max-width: 500px) {
            .screenshot-gallery { grid-template-columns: 1fr; }
        }

        .screenshot-item {
            background: var(--black);
            overflow: hidden;
            position: relative;
        }

        /* ── Barra de admin dentro de cada screenshot ── */
        .admin-bar {
            background: #12101f;
            padding: 8px 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid rgba(255,255,248,0.05);
        }
        .admin-label {
            font-size: 0.62rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--yellow);
            font-weight: 700;
            background: rgba(255,189,89,0.11);
            padding: 2px 8px;
            border-radius: 2px;
        }
        .admin-url {
            flex: 1;
            font-size: 0.68rem;
            color: rgba(255,255,248,0.3);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* ── Imagen + zoom hint ── */
        .screenshot-img-wrap {
            position: relative;
            overflow: hidden;
            cursor: zoom-in;
        }
        .screenshot-img {
            display: block;
            width: 100%;
            height: auto;
            transition: transform 0.4s ease;
        }
        .screenshot-item:hover .screenshot-img { transform: scale(1.025); }

        .screenshot-zoom-hint {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: rgba(8,5,23,0.52);
            color: var(--white);
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            opacity: 0;
            transition: opacity 0.2s ease;
            pointer-events: none;
        }
        .screenshot-zoom-hint svg { width: 26px; height: 26px; }
        .screenshot-item:hover .screenshot-zoom-hint { opacity: 1; }
        /* ════════════ CARRUSEL ADMIN ════════════ */
        .adm-carousel {
            border-top: 1px solid rgba(255,255,248,0.07);
            overflow: hidden;
        }

        .adm-bar {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 14px;
            background: #12101f;
            border-bottom: 1px solid rgba(255,255,248,0.06);
        }

        .adm-arrows {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }

        .adm-btn {
            width: 28px; height: 28px;
            background: rgba(255,255,248,0.07);
            border: 1px solid rgba(255,255,248,0.12);
            border-radius: 4px;
            color: #fff;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s;
        }
        .adm-btn:hover { background: rgba(255,255,248,0.16); }

        .adm-counter {
            font-size: 0.68rem;
            color: rgba(255,255,248,0.4);
            font-weight: 600;
            letter-spacing: 0.05em;
            min-width: 28px;
            text-align: center;
        }

        .adm-img-wrap {
            width: 100%;
            aspect-ratio: 16 / 9;
            overflow: hidden;
            position: relative;
            background: #0a0820;
        }

        .adm-img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top left;
            display: block;
        }

        .adm-dots {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            padding: 10px 0;
            background: #12101f;
            border-top: 1px solid rgba(255,255,248,0.05);
        }
        .adm-dots button {
            width: 7px; height: 7px;
            border-radius: 50%;
            border: none;
            background: rgba(255,255,248,0.2);
            cursor: pointer;
            padding: 0;
            transition: background 0.15s, transform 0.15s;
        }
        .adm-dots button.on {
            background: #FFBD59;
            transform: scale(1.35);
        }
