/*
Theme Name: Racing Division Child
Theme URI: https://racingdivision.es
Author: Codelia Studio
Author URI: https://codeliastudio.com
Description: Tema hijo personalizado para Racing Division.
Version: 1.0.0
Template: generatepress
Text Domain: racing-division-child
*/

/* ================================
   Racing Division - Global Styles
================================ */

:root {
  --rd-green: #266538;
  --rd-green-dark: #1b4828;
  --rd-black: #050505;
  --rd-bg: #0a0a0a;
  --rd-surface: #111111;
  --rd-surface-2: #181818;
  --rd-border: rgba(255,255,255,.12);
  --rd-text: #ffffff;
  --rd-text-soft: #fff;
  --rd-text-muted: #fff;
  --rd-bronze: #a67c3a;

  --rd-container: 1440px;
  --rd-radius: 16px;
  --rd-radius-sm: 10px;

  --rd-font-title: "Sora", system-ui, sans-serif;
  --rd-font-body: "Manrope", system-ui, sans-serif;
}

/* Base */
html {
  scroll-behavior: smooth;
}

button:hover,html input[type="button"]:hover,input[type="reset"]:hover,input[type="submit"]:hover,a.button:hover,button:focus,html input[type="button"]:focus,input[type="reset"]:focus,input[type="submit"]:focus,a.button:focus,a.wp-block-button__link:not(.has-background):active,a.wp-block-button__link:not(.has-background):focus,a.wp-block-button__link:not(.has-background):hover {
    color: #ffffff;
    background-color: transparent !important;
}


body {
  background: var(--rd-black);
  color: var(--rd-text);
  font-family: var(--rd-font-body);
  font-size: 16px;
  line-height: 1.6;
}

body,
button,
input,
select,
textarea {
  font-family: var(--rd-font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--rd-green);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container global */
.site.grid-container,
.container.grid-container,
.inside-header,
.inside-navigation,
.inside-footer-widgets,
.site-content,
.rd-container {
  max-width: var(--rd-container);
  width: calc(100% - 48px);
  margin-left: auto;
  margin-right: auto;
}

/* Fondo general GeneratePress */
.site,
.site-content,
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .site-content {
  background: transparent;
}

/* Tipografía */
h1,
h2,
h3,
h4,
h5,
h6,
.main-title,
.entry-title {
  font-family: var(--rd-font-title);
  color: var(--rd-text);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

h1,
.entry-title {
  font-size: clamp(42px, 5vw, 72px);
}

h2 {
  font-size: clamp(32px, 3.5vw, 48px);
}

h3 {
  font-size: clamp(24px, 2.4vw, 32px);
}

h4 {
  font-size: clamp(18px, 1.6vw, 24px);
}

p {
  color: var(--rd-text-soft);
  margin-bottom: 1.2em;
}

/* Texto destacado verde */
.rd-green,
.has-rd-green-color {
  color: var(--rd-green);
}

/* Botones */
button,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: linear-gradient(135deg, var(--rd-green), var(--rd-green-dark));
  color: #fff;
  /*border: 1px solid rgba(0,200,83,.65);*/
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: all .2s ease;
}

button:hover,
.button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  color: #fff;
}

/* Botón secundario */
.rd-btn-secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--rd-text);
  border: 1px solid var(--rd-green);
}

/* Tarjetas */
.rd-card,
.wp-block-group.rd-card,
.woocommerce ul.products li.product {
  background: linear-gradient(180deg, var(--rd-surface-2), var(--rd-surface));
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius);
  overflow: hidden;
}

/* Inputs */
input,
textarea,
select {
  background: #101010;
  color: var(--rd-text);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius-sm);
  padding: 13px 14px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--rd-green);
  outline: none;
}

/* Header base */
.site-header {
  background: rgba(0,0,0,.88);
  border-bottom: 1px solid var(--rd-border);
}

.main-navigation {
  background: transparent;
}

.main-navigation .main-nav ul li a {
  color: var(--rd-text);
  font-family: var(--rd-font-title);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-navigation .main-nav ul li a:hover {
  color: var(--rd-green);
}

/* WooCommerce básico */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
  color: var(--rd-text);
  font-weight: 700;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--rd-text);
  font-family: var(--rd-font-title);
  text-transform: uppercase;
}

.woocommerce span.onsale {
  background: var(--rd-green);
  color: #fff;
  border-radius: 999px;
}

/* Espaciados */
.rd-section {
  padding: 96px 0;
}

.rd-section-sm {
  padding: 64px 0;
}

.rd-grid {
  display: grid;
  gap: 24px;
}

.rd-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.rd-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

/* Responsive */
@media (max-width: 1439px) {
  :root {
    --rd-container: 1280px;
  }
}

@media (max-width: 1023px) {
  :root {
    --rd-container: 100%;
  }

  .site.grid-container,
  .container.grid-container,
  .inside-header,
  .inside-navigation,
  .inside-footer-widgets,
  .site-content,
  .rd-container {
    width: calc(100% - 40px);
  }

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

  .rd-section {
    padding: 72px 0;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .site.grid-container,
  .container.grid-container,
  .inside-header,
  .inside-navigation,
  .inside-footer-widgets,
  .site-content,
  .rd-container {
    width: calc(100% - 32px);
  }

  h1,
  .entry-title {
    font-size: clamp(36px, 11vw, 48px);
  }

  h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .rd-grid-4,
  .rd-grid-3,
  .rd-grid-2 {
    grid-template-columns: 1fr;
  }

  .rd-section {
    padding: 56px 0;
  }

  button,
  .button,
  .wp-block-button__link {
    width: 100%;
    text-align: center;
  }
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --rd-font-title: "Sora", sans-serif;
  --rd-font-body: "Sora", sans-serif;
}

body {
  font-family: var(--rd-font-body);
}

h1, h2, h3, h4, h5, h6,
.main-navigation a,
.button,
.wp-block-button__link {
  font-family: var(--rd-font-title);
}

@media(max-width: 768px){
  .rd-cart-trust span {
   display: none;
}

.rd-cart-drawer__header {padding: 15px !important;}
.rd-cart-drawer__footer.is-sticky-checkout .rd-cart-footer-actions{display: flex !important;flex-direction: column;}.rd-cart-btn--full{text-align: center !important}
}



@media(max-width:768px){
  .rd-cart-trigger__icon{
    height:22px;
  }

  .rd-cart-qty{
    overflow: visible !important;
  }

  .rd-cart-qty input{
    padding: 0px !important;
  }
}

/* ==========================================================
   RACING DIVISION · 404
   Utiliza las variables globales del Child Theme
========================================================== */


/* ----------------------------------------------------------
   RESET ESPECÍFICO 404
---------------------------------------------------------- */

body.error404 {
    background: var(--rd-black);
    color: var(--rd-text);
}

body.error404 .site,
body.error404 .site-content,
body.error404 .content-area,
body.error404 #primary,
body.error404 main.site-main,
body.error404 .inside-article {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

body.error404 .site-content {
    width: 100%;
}

body.error404 .entry-header,
body.error404 .page-header {
    display: none;
}

.rd-404-page,
.rd-404-page *,
.rd-404-page *::before,
.rd-404-page *::after {
    box-sizing: border-box;
}

.rd-404-page {
    width: 100%;
    overflow: hidden;

    background: var(--rd-black);
    color: var(--rd-text);

    font-family: var(--rd-font-body);
}


/* ----------------------------------------------------------
   CONTAINER
   Mismo sistema global de Racing Division
---------------------------------------------------------- */

.rd-404-container {
    width: calc(100% - 48px);
    max-width: var(--rd-container);

    margin-left: auto;
    margin-right: auto;
}


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

.rd-404-hero {
    position: relative;
    isolation: isolate;

    min-height: 650px;

    overflow: hidden;

    border-bottom: 1px solid var(--rd-border);

    background: var(--rd-black);
}


/* Imagen */

.rd-404-hero__bg {
    position: absolute;
    z-index: -3;
    inset: 0;
    background: url("https://racingdivision.es/wp-content/uploads/2026/09/IMG_1188.jpg");
    background-position: center right;
    background-repeat: no-repeat;
    background-size: cover;

    transform: scale(1.01);
}


/* Degradado oscuro lateral */

.rd-404-hero::before {
    content: "";

    position: absolute;
    z-index: -2;
    inset: 0;

    background:linear-gradient(
            90deg,
            var(--rd-black) 0%,
            rgba(5, 5, 5, .68) 15%,
            rgba(5, 5, 5, .60) 32%,
            rgba(5, 5, 5, .0) 50%,
            rgba(5, 5, 5, .0) 72%,
            rgba(5, 5, 5, .00) 100%
        );
}


/* Fundido inferior */

.rd-404-hero::after {
    content: "";

    position: absolute;
    z-index: -1;
    inset: 0;

    background:
        linear-gradient(
            0deg,
            var(--rd-black) 0%,
            rgba(5,5,5,.78) 6%,
            transparent 31%
        );
}


.rd-404-hero .rd-404-container {
    display: flex;
    align-items: center;

    min-height: 650px;
}


/* ----------------------------------------------------------
   GRID HERO
---------------------------------------------------------- */

.rd-404-content {
    display: grid;

    grid-template-columns:
        minmax(0, 760px)
        minmax(150px, 1fr);

    align-items: center;

    width: 100%;

    gap: clamp(50px, 8vw, 140px);
}


.rd-404-copy {
    padding: 90px 0;
}


/* ----------------------------------------------------------
   EYEBROW
---------------------------------------------------------- */

.rd-404-eyebrow {
    display: block;

    margin: 0 0 18px;

    color: var(--rd-green);

    font-family: var(--rd-font-title);

    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: .18em;

    text-transform: uppercase;
}


/* ----------------------------------------------------------
   TÍTULO
---------------------------------------------------------- */

.rd-404-copy h1 {
    max-width: 820px;

    margin: 0;

    color: var(--rd-text);

    font-family: var(--rd-font-title);

    font-size: clamp(58px, 6.4vw, 104px);
    font-weight: 700;

    line-height: .9;

    letter-spacing: -.055em;

    text-transform: uppercase;
}


.rd-404-copy h1 span {
    display: block;

    color: rgba(255,255,255,.40);
}


/* ----------------------------------------------------------
   TEXTO
---------------------------------------------------------- */

.rd-404-description {
    max-width: 590px;

    margin: 28px 0 0;

    color: var(--rd-text-soft);

    font-size: 16px;

    line-height: 1.65;
}


/* ==========================================================
   ACCIONES
========================================================== */

.rd-404-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 36px;
}


.rd-404-button {
    display: inline-flex;
    min-width: 220px;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 20px 0 24px;
    border-radius: var(--rd-radius-sm);
    font-family: var(--rd-font-title);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}


.rd-404-button svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Primary */

.rd-404-button--primary {
    border: 1px solid var(--rd-green);

    background:
        linear-gradient(
            135deg,
            var(--rd-green),
            var(--rd-green-dark)
        );

    color: #fff;
}


.rd-404-button--primary:hover {
    border-color: var(--rd-green);

    background:
        linear-gradient(
            135deg,
            var(--rd-green),
            var(--rd-green-dark)
        );

    color: #fff;

    filter: brightness(1.1);

    transform: translateY(-1px);
}


/* Secondary */

.rd-404-button--secondary {
    border: 1px solid var(--rd-border);

    background: rgba(5,5,5,.38);

    color: var(--rd-text);
}


.rd-404-button--secondary:hover {
    border-color: var(--rd-green);

    background: rgba(38,101,56,.10);

    color: var(--rd-text);

    transform: translateY(-1px);
}


/* ==========================================================
   DECORACIÓN 404 DERECHA
========================================================== */

.rd-404-number {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: clamp(20px, 4vw, 60px);
    border-left: 1px solid #ffffff57;
}


.rd-404-number strong {
    display: block;
    margin: 0;
    color: rgba(255,255,255,.37);
    font-family: var(--rd-font-title);
    font-size: clamp(76px, 8vw, 140px);
    font-weight: 700;
    line-height: .8;
    letter-spacing: -.07em;
}


.rd-404-number__line {
    display: block;

    width: 34px;
    height: 3px;

    margin: 34px 0 28px;

    background: var(--rd-green);
}


.rd-404-number p {
    margin: 0;

    color: rgba(255,255,255,.40);

    font-family: var(--rd-font-title);

    font-size: 13px;

    line-height: 1.35;

    letter-spacing: .06em;
}


/* ==========================================================
   ACCESOS RÁPIDOS
========================================================== */

.rd-404-links {
    padding: 54px 0 80px;

    background:
        radial-gradient(
            circle at 50% 0,
            rgba(38,101,56,.08),
            transparent 45%
        ),
        var(--rd-black);
}


.rd-404-links__header {
    margin-bottom: 24px;
}


.rd-404-links__header .rd-404-eyebrow {
    margin-bottom: 10px;
}


.rd-404-links__header h2 {
    margin: 0;

    color: var(--rd-text);

    font-family: var(--rd-font-title);

    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;

    line-height: 1;

    letter-spacing: -.04em;

    text-transform: none;
}


/* ----------------------------------------------------------
   GRID
---------------------------------------------------------- */

.rd-404-links__grid {
    display: grid;

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

    gap: 14px;
}


/* ----------------------------------------------------------
   CARD
---------------------------------------------------------- */

.rd-404-link-card {
    display: grid;

    grid-template-columns:
        46px
        minmax(0, 1fr)
        28px;

    min-height: 96px;

    align-items: center;

    gap: 15px;

    padding: 18px;

    overflow: hidden;

    border: 1px solid var(--rd-border);

    border-radius: var(--rd-radius-sm);

    background:
        linear-gradient(
            180deg,
            var(--rd-surface-2),
            var(--rd-surface)
        );

    color: var(--rd-text) !important;

    text-decoration: none !important;

    transition:
        border-color .2s ease,
        transform .2s ease,
        background-color .2s ease;
}


.rd-404-link-card:hover {
    border-color: rgba(38,101,56,.8);

    color: var(--rd-text) !important;

    transform: translateY(-2px);
}


/* Icon */

.rd-404-link-card__icon {
    display: grid;

    width: 46px;
    height: 46px;

    place-items: center;

    border: 1px solid rgba(38,101,56,.55);

    border-radius: 50%;

    background: rgba(38,101,56,.08);

    color: var(--rd-text);
}


.rd-404-link-card__icon svg {
    width: 23px;
    height: 23px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Text */

.rd-404-link-card__content {
    min-width: 0;
}


.rd-404-link-card strong {
    display: block;

    margin-bottom: 4px;

    color: var(--rd-text);

    font-family: var(--rd-font-title);

    font-size: 13px;
    font-weight: 700;

    line-height: 1.25;
}


.rd-404-link-card small {
    display: block;

    overflow: hidden;

    color: rgba(255,255,255,.62);

    font-size: 11px;

    line-height: 1.4;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* Arrow */

.rd-404-link-card__arrow {
    display: grid;

    width: 28px;
    height: 28px;

    place-items: center;

    color: rgba(255,255,255,.75);

    transition: color .2s ease;
}


.rd-404-link-card__arrow svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform .2s ease;
}


.rd-404-link-card:hover .rd-404-link-card__arrow {
    color: var(--rd-green);
}


.rd-404-link-card:hover .rd-404-link-card__arrow svg {
    transform: translateX(3px);
}


/* ==========================================================
   <= 1439
   Sigue tu sistema global: container 1280px
========================================================== */

@media (max-width: 1439px) {

    .rd-404-content {
        grid-template-columns:
            minmax(0, 700px)
            minmax(140px, 1fr);
    }

}


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

@media (max-width: 1023px) {

    .rd-404-container {
        width: calc(100% - 40px);
        max-width: 100%;
    }

    .rd-404-content {
        grid-template-columns:
            minmax(0, 1fr)
            130px;

        gap: 35px;
    }

    .rd-404-number {
        padding-left: 25px;
    }

    .rd-404-copy h1 {
        font-size: clamp(55px, 8vw, 78px);
    }

    .rd-404-links__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .rd-404-container {
        width: calc(100% - 32px);
    }


    /* Hero */

    .rd-404-hero,
    .rd-404-hero .rd-404-container {
        min-height: 680px;
    }


    .rd-404-hero__bg {
        background-position: 64% center;
    }


    .rd-404-hero::before {
        background:
            linear-gradient(
                90deg,
                rgba(5,5,5,.96) 0%,
                rgba(5,5,5,.80) 48%,
                rgba(5,5,5,.40) 100%
            );
    }


    .rd-404-hero::after {
        background:
            linear-gradient(
                0deg,
                var(--rd-black) 0%,
                rgba(5,5,5,.92) 10%,
                rgba(5,5,5,.20) 52%,
                transparent 100%
            );
    }


    .rd-404-content {
        display: block;
    }


    .rd-404-copy {
        width: 100%;

        padding: 160px 0 52px;
    }


    .rd-404-copy h1 {
        max-width: 590px;

        font-size: clamp(46px, 13vw, 68px);

        line-height: .91;
    }


    .rd-404-description {
        max-width: 490px;

        margin-top: 22px;

        font-size: 14px;
    }


    /* Botones */

    .rd-404-actions {
        display: grid;

        grid-template-columns: 1fr;

        width: 100%;

        margin-top: 30px;
    }


    .rd-404-button {
        width: 100%;
        min-width: 0;
    }


    /* Ocultamos decoración */

    .rd-404-number {
        display: none;
    }


    /* Accesos */

    .rd-404-links {
        padding: 46px 0 60px;
    }


    .rd-404-links__grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }

}


/* ==========================================================
   MOBILE SMALL
========================================================== */

@media (max-width: 480px) {

    .rd-404-container {
        width: calc(100% - 32px);
    }


    .rd-404-hero,
    .rd-404-hero .rd-404-container {
        min-height: 620px;
    }


    .rd-404-copy {
        padding-top: 130px;
    }


    .rd-404-copy h1 {
        font-size: clamp(43px, 13.5vw, 60px);
    }


    .rd-404-eyebrow {
        margin-bottom: 14px;
    }


    .rd-404-link-card {
        grid-template-columns:
            42px
            minmax(0, 1fr)
            24px;

        min-height: 86px;

        padding: 14px;
    }


    .rd-404-link-card__icon {
        width: 42px;
        height: 42px;
    }


    .rd-404-link-card__icon svg {
        width: 21px;
        height: 21px;
    }

}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .rd-404-page *,
    .rd-404-page *::before,
    .rd-404-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

}

.tax-product_cat .rd-container , .tax-product_cat .rd-category__container{
    padding: 0px !important;
}

.rd-category__summary .woocommerce-result-count{display: none}


.gdpr_lightbox{
    background: #00000096 !important;
}

#moove_gdpr_cookie_modal *{color:#fff !important}

#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-left-content ,#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content, #moove_gdpr_cookie_modal .moove-gdpr-modal-content.moove_gdpr_modal_theme_v1 .moove-gdpr-modal-right-content, #moove_gdpr_cookie_modal .moove-gdpr-modal-content.moove_gdpr_modal_theme_v1 .moove-gdpr-tab-content, #moove_gdpr_cookie_modal .moove-gdpr-modal-content.moove_gdpr_modal_theme_v1 .moove-gdpr-tab-main{
    background: #1c1c1c !important;
}

#moove_gdpr_cookie_modal .moove-gdpr-modal-content{border: 1px solid #656565;}

.change-settings-button{border:1px solid #fff !important;}
.change-settings-button:hover, .change-settings-button:focus{
    border:1px solid #fff !important;
    color:#fff !important;
}

p > .change-settings-button, p > .change-settings-button:hover, p > .change-settings-button:focus{
    border:0px !important;
}

