* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    background: #000;
    color: #fff;
}


/* CABECERA */

.header {
    height: 100px;
    background: #fff;
    color: #222;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5%;

    position: relative;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: block;
}

.logo img {
    height: 55px;
    display: block;
}

.name {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #333;
}

.profession {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.5px;
    color: #999;
}


/* BOTÓN HAMBURGUESA */

.menu-button {
    width: 34px;
    height: 22px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    cursor: pointer;
}

.menu-button span {
    display: block;
    height: 2px;
    width: 100%;
    background: #333;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-button.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}


/* MENÚ EN LÍNEA */

.inline-menu {
    display: flex;
    align-items: center;
    gap: 0;

    max-width: 0;
    overflow: hidden;
    white-space: nowrap;

    transition: max-width 0.35s ease, margin-right 0.35s ease;
}

.inline-menu.open {
    max-width: 600px;
    margin-right: 40px;
}

.inline-menu a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    padding: 0 18px;
    transition: color 0.2s ease;
}

.inline-menu a:hover {
    color: #999;
}


/* FOTOGRAFÍA PRINCIPAL */

.hero {
    width: 100%;
    height: calc(100vh - 100px);
    padding: 28px 5% 40px;
    box-sizing: border-box;
}

.hero img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    display: block;
}


/* SLIDESHOW DE PORTADA */

.hero-slideshow {
    position: relative;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    opacity: 0;
    transition: opacity 1.6s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slides::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-overlay-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 60px;
    z-index: 2;

    text-align: center;
    padding: 0 5%;
}

.hero-name {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 6px;
}

.hero-tagline {
    margin-top: 14px;
    color: #ddd;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-cta {
    display: inline-block;
    margin-top: 32px;

    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;

    padding: 16px 36px;
    border: 1px solid #fff;
    border-radius: 30px;

    transition: background 0.25s ease, color 0.25s ease;
}

.hero-cta:hover {
    background: #fff;
    color: #111;
}


/* PÁGINA DE CONTACTO */

.contact-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;

    padding: 20px 5% 100px;
}

.contact-info {
    flex: 1;
    max-width: 480px;
}

.contact-item {
    margin-bottom: 36px;
}

.contact-item h3 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 12px;
    color: #fff;
}

.contact-item p {
    color: #999;
    font-size: 15px;
}

.contact-item a {
    color: #ccc;
    text-decoration: none;
    border-bottom: 1px solid #444;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-item a:hover {
    color: #fff;
    border-color: #fff;
}

.contact-call-btn {
    background: none;
    border: 1px solid #444;
    color: #ccc;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;

    padding: 14px 26px;
    cursor: pointer;

    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-call-btn:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

.contact-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.contact-whatsapp-btn:hover {
    border-color: #25D366;
    color: #25D366;
    background: none;
}

.contact-qr {
    flex: 0 0 260px;
    text-align: center;
}

.contact-qr img {
    width: 100%;
    cursor: pointer;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    transition: border-color 0.2s ease;
}

.contact-qr img:hover {
    border-color: #666;
}

.contact-qr-label {
    display: block;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ccc;
}

.contact-qr-label a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #555;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-qr-label a:hover {
    color: #fff;
    border-color: #fff;
}

.contact-qr-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #777;
}


/* PÁGINA SOBRE MÍ */

.about-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;

    padding: 20px 5% 100px;
}

.about-photo {
    flex: 0 0 320px;
}

.about-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.about-photo figcaption {
    margin-top: 10px;

    color: #777;
    font-size: 11px;
    letter-spacing: 1px;
}

.about-photo figcaption a {
    color: #999;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.about-photo figcaption a:hover {
    color: #fff;
}

.about-text {
    flex: 1;
    max-width: 640px;

    color: #ccc;
    font-size: 15px;
    line-height: 1.9;
}

.about-text p {
    margin-bottom: 22px;
}

.about-text strong {
    color: #fff;
    font-weight: 600;
}


/* PÁGINA DE INSECTOS: fondo verde intenso, a juego con el fondo de las fotos */

.page-insectos {
    background: #16260d;
}


/* GALERÍA PRIVADA DEL EQUIPO: pantalla de contraseña */

.login-box {
    max-width: 380px;
    margin: 60px auto 100px;
    padding: 0 24px;
}

.login-text {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.login-input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;

    font-family: inherit;
    font-size: 14px;
    padding: 13px 14px;

    margin-bottom: 16px;
    transition: border-color 0.2s ease;
}

.login-input::placeholder {
    color: #666;
}

.login-input:focus {
    outline: none;
    border-color: #777;
}

.contact-form {
    max-width: 340px;
}

.contact-form textarea.login-input {
    resize: vertical;
    min-height: 100px;
}


/* PANEL DE REGISTRO (/admin) */

.registro-titulo {
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin: 40px 0 14px;
}

.registro-tabla {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 13px;
}

.registro-tabla th,
.registro-tabla td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #222;
    color: #ccc;
}

.registro-tabla th {
    color: #888;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px;
}

.registro-tabla tr:hover td {
    background: #111;
}

.login-error {
    color: #e69a9a;
    font-size: 13px;
    margin: -6px 0 16px;
}

.login-btn {
    width: 100%;
    background: #fff;
    color: #111;
    border: none;
    padding: 16px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;

    transition: background 0.2s ease;
}

.login-btn:hover {
    background: #ddd;
}


/* PÁGINA DE PORTFOLIO */

.page-title {
    padding: 60px 8% 30px;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 3px;
}

.back-link {
    display: inline-block;
    margin-top: 14px;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #fff;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;

    padding: 20px 5% 80px;
}

.category-tile {
    position: relative;
    display: block;
    flex: 0 0 calc((100% - 60px) / 4);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 12px;

    text-decoration: none;
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.category-tile:hover img {
    transform: scale(1.06);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%);
}

.tile-label {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;

    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}

.tile-label-small {
    font-size: 13px;
    letter-spacing: 1px;
}

.tile-count {
    position: absolute;
    left: 18px;
    bottom: -2px;
    opacity: 0;
    z-index: 2;

    color: #ccc;
    font-size: 11px;
    letter-spacing: 1.5px;

    transition: bottom 0.3s ease, opacity 0.3s ease;
}

.category-tile:hover .tile-label {
    bottom: 38px;
}

.category-tile:hover .tile-count {
    bottom: 18px;
    opacity: 1;
}


/* GALERÍAS PRIVADAS: icono de candado sobre la portada */

.tile-lock {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;

    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-lock svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}


/* LISTADO DE COMPETICIONES */

.tile-date {
    position: absolute;
    left: 18px;
    bottom: 44px;
    z-index: 2;

    color: #bbb;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    transition: bottom 0.3s ease;
}

.category-tile:hover .tile-date {
    bottom: 62px;
}


/* GALERÍA */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 4px;

    padding: 0 4px 60px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.select-circle {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 3;

    /* Zona táctil grande e invisible: fácil de tocar en móvil sin agrandar el punto visual */
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.select-circle-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(0, 0, 0, 0.35);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.2s ease, transform 0.15s ease;
}

.select-circle:hover .select-circle-dot {
    transform: scale(1.12);
}

.select-circle.selected .select-circle-dot {
    background: #fff;
    border-color: #fff;
}

.select-circle.selected .select-circle-dot::after {
    content: "✓";
    color: #111;
    font-size: 13px;
    font-weight: 700;
}

.gallery-item.selected::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 3px solid #fff;
    pointer-events: none;
}


/* BOTÓN FLOTANTE DE CESTA */

.cart-button {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 90;

    background: #fff;
    color: #111;
    border-radius: 30px;
    padding: 14px 22px;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);

    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cart-button.visible {
    transform: translateY(0);
    opacity: 1;
}

.cart-count {
    background: #111;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
}


/* PANEL DE CESTA */

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 105;

    background: rgba(0, 0, 0, 0.6);
    display: none;
}

.cart-overlay.open {
    display: block;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 110;

    width: 380px;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;

    background: #111;
    padding: 34px 26px;

    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-panel h2 {
    font-size: 17px;
    letter-spacing: 3px;
    margin-bottom: 28px;
}

.cart-panel-close {
    position: absolute;
    top: 26px;
    right: 26px;

    font-size: 26px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.cart-empty {
    color: #777;
    font-size: 14px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 18px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    font-size: 12px;
    color: #ccc;
    line-height: 1.5;
}

.cart-item-info span {
    display: block;
    color: #888;
    font-size: 11px;
}

.cart-item-remove {
    color: #888;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.cart-item-remove:hover {
    color: #fff;
}

.cart-total {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 15px;
}

.cart-checkout-btn {
    margin-top: 20px;

    background: #fff;
    color: #111;
    border: none;
    padding: 16px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;

    transition: background 0.2s ease;
}

.cart-checkout-btn:hover {
    background: #ddd;
}

.cart-checkout-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.cart-status {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.6;
}

.cart-status:empty {
    display: none;
}

.cart-status-ok {
    color: #9fd8a8;
}

.cart-status-error {
    color: #e69a9a;
}

.cart-note {
    margin-top: 14px;
    color: #666;
    font-size: 11px;
    line-height: 1.6;
}

.aviso-fotos {
    max-width: 640px;
    margin: 0 auto 30px;
    padding: 16px 24px;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #999;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.cart-confirm-btn {
    margin-top: 4px;
}

.cart-email-step {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}

.cart-email-prompt {
    color: #ccc;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.cart-email-input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;

    font-family: inherit;
    font-size: 14px;
    padding: 13px 14px;

    transition: border-color 0.2s ease;
}

.cart-email-input::placeholder {
    color: #666;
}

.cart-email-input:focus {
    outline: none;
    border-color: #777;
}


/* PAGO POR QR EN LA CESTA */

.cart-payment {
    margin-top: 20px;
}

.cart-payment p {
    color: #999;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.cart-qr-options {
    display: flex;
    gap: 14px;
}

.cart-qr-option {
    flex: 1;
    text-align: center;
}

.cart-qr-option img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.cart-qr-option img:hover {
    border-color: #666;
}

.cart-qr-option span {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ccc;
}


/* VISOR DE FOTO (LIGHTBOX) */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;

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

    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;

    font-size: 34px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    font-size: 30px;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    z-index: 2;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lightbox-arrow:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 8px;
}

.lightbox-next {
    right: 8px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    color: #aaa;
    font-size: 12px;
    letter-spacing: 1.5px;
}


/* PIE */

.footer {
    background: #000;
    padding: 60px 8% 70px;

    display: flex;
    justify-content: center;
}

.footer-inner {
    display: flex;
    justify-content: center;
    gap: 100px;

    width: 100%;
    max-width: 900px;

    padding-top: 40px;
    border-top: 1px solid #2a2a2a;
}

.footer-column {
    text-align: left;
}

.footer h3 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 16px;
    color: #fff;
}

.footer p {
    color: #888;
    font-size: 14px;
    font-weight: 400;
}

.footer p a {
    color: #888;
    text-decoration: none;
}

.footer p a:hover {
    color: #fff;
}


/* TABLET */

@media (min-width: 701px) and (max-width: 1024px) {

    .header {
        padding: 0 4%;
    }

    .brand {
        gap: 16px;
    }

    .profession {
        display: none;
    }

    .inline-menu a {
        padding: 0 12px;
        font-size: 12px;
    }

    .inline-menu.open {
        max-width: 380px;
        margin-right: 20px;
    }

    .portfolio-grid {
        gap: 16px;
    }

    .category-tile {
        flex-basis: calc((100% - 16px) / 2);
        aspect-ratio: 4 / 3;
    }

    .about-grid,
    .contact-grid {
        gap: 40px;
    }

    .about-photo {
        flex-basis: 260px;
    }

}


/* MÓVIL */

@media (max-width: 700px) {

    .header {
        height: 80px;
        padding: 0 20px;
    }

    .brand {
        gap: 15px;
    }

    .logo img {
        height: 40px;
    }

    .name {
        font-size: 14px;
    }

    .profession {
        font-size: 9px;
        margin-top: 5px;
    }

    .inline-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        flex-direction: column;
        align-items: stretch;

        background: #fff;
        max-width: none;

        max-height: 0;
        overflow: hidden;

        transition: max-height 0.35s ease;
    }

    .inline-menu a {
        padding: 16px 20px;
        font-size: 13px;
        text-align: left;
        border-top: 1px solid #eee;
    }

    .inline-menu.open {
        max-height: 320px;
        margin-right: 0;
        overflow-y: auto;
    }

    .hero {
        height: 70vh;
        padding: 16px 20px 28px;
    }

    .hero-overlay-content {
        bottom: 32px;
    }

    .hero-name {
        font-size: 26px;
        letter-spacing: 3px;
    }

    .hero-tagline {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .hero-cta {
        margin-top: 22px;
        padding: 13px 26px;
        font-size: 11px;
    }

    .footer {
        padding: 50px 30px 60px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-column {
        text-align: center;
    }

    .page-title {
        padding: 40px 20px 20px;
    }

    .page-title h1 {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .portfolio-grid {
        gap: 18px;
        padding: 16px 20px 60px;
    }

    .about-grid {
        flex-direction: column;
        gap: 30px;
        padding: 10px 20px 70px;
    }

    .about-photo {
        flex: none;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }

    .contact-grid {
        flex-direction: column-reverse;
        gap: 40px;
        padding: 10px 20px 70px;
    }

    .contact-qr {
        flex: none;
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }

    .category-tile {
        flex-basis: 100%;
        aspect-ratio: 16 / 10;
    }

    .lightbox-arrow {
        font-size: 22px;
        padding: 10px;
    }

    .lightbox-close {
        top: 14px;
        right: 18px;
        font-size: 28px;
    }

    .cart-panel {
        width: 100%;
        padding: 26px 20px;
    }

    .cart-button {
        bottom: 18px;
        right: 18px;
        padding: 12px 18px;
        font-size: 12px;
    }

}


/* ==== PROTECCIÓN DE DATOS: avisos y páginas legales ==== */

.footer {
    flex-direction: column;
    align-items: center;
}

.footer-legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    width: 100%;
    max-width: 900px;
    margin-top: 40px;
}

.footer-legal a {
    color: #777;
    font-size: 12px;
    letter-spacing: 1px;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #fff;
}

.aviso-privacidad {
    color: #777;
    font-size: 12px;
    line-height: 1.5;
    margin: 12px 0 0;
}

.aviso-privacidad a {
    color: #aaa;
    text-decoration: underline;
}

.registro-borrar {
    max-width: 420px;
    margin: 0 0 40px;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 24px 80px;
    color: #bbb;
    font-size: 15px;
    line-height: 1.7;
}

.legal-content h2 {
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    margin: 40px 0 12px;
}

.legal-content h3 {
    color: #ddd;
    font-size: 14px;
    letter-spacing: 1px;
    margin: 24px 0 8px;
}

.legal-content p,
.legal-content li {
    margin-bottom: 10px;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content a {
    color: #fff;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 12px 0 20px;
}

.legal-content th,
.legal-content td {
    border: 1px solid #333;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.legal-content th {
    color: #fff;
}

.legal-content .legal-fecha {
    color: #666;
    font-size: 12px;
}

@media (max-width: 600px) {
    .legal-content table,
    .legal-content tbody,
    .legal-content tr,
    .legal-content td,
    .legal-content th {
        display: block;
    }
    .legal-content thead {
        display: none;
    }
}

/* Campo trampa anti-spam del formulario de contacto (invisible para personas) */
.campo-trampa {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ==== CIFRAS DE LA PORTADA ==== */

.cifras {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 50px 5% 70px;
    text-align: center;
}

.cifra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 12px;
    border-top: 1px solid #2a2a2a;
}

.cifra-num {
    color: #fff;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.cifra-txt {
    color: #888;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.5;
}

.cifras-link {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 10px;
    color: #aaa;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    border-bottom: 1px solid #444;
    padding-bottom: 4px;
}

.cifras-link:hover {
    color: #fff;
    border-color: #fff;
}

@media (max-width: 800px) {
    .cifras {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 30px 16px 50px;
    }
    .cifra-num {
        font-size: 34px;
    }
}

/* ==== PÁGINA "USO DE LAS FOTOS" ==== */

.uso-fotos {
    max-width: 1000px;
}

.uso-intro {
    color: #ccc;
    font-size: 16px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.uso-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.uso-card {
    background: #151515;
    border: 1px solid #262626;
    border-radius: 14px;
    padding: 26px 26px 14px;
}

.uso-card h2 {
    margin-top: 6px !important;
}

.uso-num {
    color: #555;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

@media (max-width: 700px) {
    .uso-grid {
        grid-template-columns: 1fr;
    }
    .uso-card {
        padding: 20px 18px 8px;
    }
}

.cifras-intro {
    grid-column: 1 / -1;
    color: #bbb;
    font-size: 15px;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 10px;
}

/* ==== SOBRE MÍ: TRAYECTORIA ==== */

.trayectoria {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 24px 80px;
}

.trayectoria-titulo {
    color: #fff;
    font-size: 16px;
    letter-spacing: 3px;
    margin: 50px 0 24px;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 24px;
    border-left: 1px solid #333;
}

.timeline li {
    position: relative;
    padding: 0 0 28px 20px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #000;
    border: 2px solid #fff;
}

.timeline-fecha {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.timeline p {
    color: #aaa;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.trayectoria-datos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
    text-align: center;
}

.trayectoria-datos div {
    border-top: 1px solid #2a2a2a;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trayectoria-datos strong {
    color: #fff;
    font-size: 28px;
}

.trayectoria-datos span {
    color: #888;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.trayectoria-equipo {
    color: #aaa;
    font-size: 15px;
    line-height: 1.7;
}

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

/* ==== LÍNEA DE TIEMPO DEL PARTIDO ==== */

:root {
    --crono-local: #4da3ff;
    --crono-visitante: #ff6b5e;
}

.vista-selector {
    display: inline-flex;
    gap: 4px;
    margin-top: 22px;
    padding: 4px;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
}

.vista-selector button {
    font: inherit;
    font-size: 12px;
    letter-spacing: 1px;
    color: #999;
    background: none;
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
}

.vista-selector button.activo {
    background: #fff;
    color: #000;
}

.cronica {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 16px 80px;
}

.crono-cabecera {
    text-align: center;
    margin-bottom: 30px;
}

.crono-competicion {
    color: #777;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.crono-resultado {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
}

.crono-leyenda {
    color: #aaa;
    font-size: 13px;
    margin: 0;
}

.crono-leyenda .punto {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px 0 16px;
    vertical-align: middle;
}

.punto.equipo-local { background: var(--crono-local); }
.punto.equipo-visitante { background: var(--crono-visitante); }

.crono-aviso {
    color: #777;
    font-size: 12px;
    margin: 12px auto 0;
    max-width: 520px;
}

.crono-fuente {
    color: #555;
    font-size: 11px;
    text-align: center;
    margin-top: 30px;
}

.crono-linea {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* La línea central */
.crono-linea::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: #2a2a2a;
}

.crono-linea > li {
    position: relative;
}

/* Separadores de periodo */
.crono-periodo,
.crono-fin {
    text-align: center;
    padding: 18px 0;
}

.crono-periodo span {
    position: relative;
    display: inline-block;
    background: #fff;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 8px 18px;
    border-radius: 999px;
}

.crono-fin span {
    position: relative;
    display: inline-block;
    background: #000;
    color: #888;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 6px 14px;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
}

/* Eventos del minuto a minuto, sobre la línea */
.crono-evento {
    text-align: center;
    padding: 6px 0;
}

.crono-evento-caja {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 2px 8px;
    max-width: 90%;
    background: #111;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #555;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    color: #bbb;
}

.crono-evento.equipo-local .crono-evento-caja { border-left-color: var(--crono-local); }
.crono-evento.equipo-visitante .crono-evento-caja { border-left-color: var(--crono-visitante); }

.crono-evento.es-gol .crono-evento-caja {
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    padding: 8px 14px;
}

.crono-evento.es-gol.equipo-local .crono-evento-caja { box-shadow: 0 0 0 1px var(--crono-local) inset; }
.crono-evento.es-gol.equipo-visitante .crono-evento-caja { box-shadow: 0 0 0 1px var(--crono-visitante) inset; }

.crono-reloj {
    color: #777;
    font-variant-numeric: tabular-nums;
}

.crono-tipo {
    letter-spacing: 1px;
}

.crono-tipo strong {
    margin-left: 4px;
    font-size: 14px;
}

.crono-jug {
    color: #999;
}

/* Fotos a los lados de la línea */
.crono-item {
    width: 50%;
    padding: 10px 34px;
    box-sizing: border-box;
}

.crono-item.lado-izq { margin-right: 50%; }
.crono-item.lado-der { margin-left: 50%; }

/* Conector de la foto con la línea */
.crono-item::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: #333;
}

.crono-item::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-radius: 50%;
    background: #000;
    border: 2px solid #666;
}

.crono-item.lado-izq::before { right: 4px; }
.crono-item.lado-izq::after { right: -6px; }
.crono-item.lado-der::before { left: 4px; }
.crono-item.lado-der::after { left: -6px; }

.gallery-item.crono-foto {
    aspect-ratio: 3 / 2;
    border-radius: 10px;
    max-width: 360px;
}

.crono-item.lado-izq .crono-foto { margin-left: auto; }

.crono-foto-momento {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

.gallery-item.crono-foto.selected {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Móvil: la línea a la izquierda y todo a la derecha */
@media (max-width: 700px) {
    .crono-linea::before { left: 14px; }

    .crono-periodo,
    .crono-fin,
    .crono-evento {
        text-align: left;
        padding-left: 30px;
    }

    .crono-evento-caja { max-width: 100%; justify-content: flex-start; }

    .crono-item,
    .crono-item.lado-izq,
    .crono-item.lado-der {
        width: auto;
        margin: 0;
        padding: 8px 0 8px 40px;
    }

    .crono-item.lado-izq::before,
    .crono-item.lado-der::before { left: 16px; right: auto; width: 20px; }

    .crono-item.lado-izq::after,
    .crono-item.lado-der::after { left: 9px; right: auto; }

    .crono-item.lado-izq .crono-foto { margin-left: 0; }

    .gallery-item.crono-foto { max-width: none; }
}

/* Vista elegida: lo que no se muestra queda oculto aunque tenga display propio */
.gallery-grid[hidden],
.cronica[hidden] {
    display: none;
}
