/*
Theme Name: debattle.club
Author: Carlos López Colomo
Version: 1.0.0
Text Domain: debattle-club
*/


/* =========================
   RESET BÁSICO
========================= */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    background: #ffffff;
    color: var(--color-black);
}

h1, h2, h3, h4, h5 {
    font-weight:400;
}

h1 {font-size: 2.3rem;}

h2 {font-size: 1.8rem;}

h3 {font-size: 1.4rem;}

h4 {font-size: 1.2rem;}

h5 {font-size: 1rem;}

h6 {font-size: 0.9rem;}

@media (min-width: 1024px) {

    h1 {font-size: 3.2rem; }

    h2 {font-size: 2.4rem; }

    h3 {font-size: 1.8rem;  }

    h4 {font-size: 1.4rem; }

    h5 {font-size: 1.1rem;  }

    h6 {font-size: 1rem;}

}


/* =========================
   ELEMENTOS BASE
========================= */

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}
.legal-link a  {
    text-decoration: underline;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* =========================
   LAYOUT BASE
========================= */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

/* =========================
   PAGES - GENERAL
========================= */

.page .site-main {
    width:1000px;
    max-width:85%;
    margin: 100px auto 150px;
}

.page .site-main .wp-block-heading {
    margin-bottom:30px;
    margin-top:50px;
}

.page .site-main ul {
    margin-left:60px;
}

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

.site-header {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 120px;
    padding: 1.5rem 0;
    background-color: var(--color-sand);
}

/* Desktop adjustment */
@media (min-width: 1024px) {
    .site-header {
        min-height: 100px;
        padding: 2.5rem 0;
    }
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-title {
    font-family: 'Titan One', cursive;
    font-size: 2.5rem;
}

@media (min-width: 1024px) {
    .site-title {
        font-size: 3rem;
    }
}

/* =========================
   MENÚ (preparado para hamburguesa)
========================= */

.site-header {
    width: 100%;
}

.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.main-navigation ul {
    list-style: none;
    display: none;
}

.main-navigation.toggled ul {
    display: block;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .main-navigation ul {
        display: flex;
        gap: 2rem;
    }
}

/* =========================
   SITE-BRANDING
========================= */


:root {
    --color-orange: #F5512E;
    --color-blue: #518E8F;
    --color-clementine: #EFB470;
    --color-sand: #E8DCCE;

    --color-white: #FFFFFF;
    --color-black: #1a1a1a;
}

.brand-black {
    color: var(--color-black);
}

.brand-orange {
    color: var(--color-orange);
    font-size:2em;
    line-height:0;
}

.brand-blue {
    color: var(--color-blue);
}

.brand-white {
    color:#fff;
}

.bold-orange {
    color: var(--color-orange);
    font-weight: 900;
    position: relative;
    display: inline-block;
}




/* =========================
   FOOTER
========================= */

.site-footer {
    background-color: var(--color-black);
    color: var(--color-sand);
    padding:40px 20px;
}

.site-footer ul li {
    list-style:none;
}

.site-footer .container {
    display:flex;
    flex-direction: row;
}
.site-footer .container .footer-right{
    display:flex;
    flex-direction:column;
    gap: 15px;
    margin-left:25px;
    justify-content:flex-end;
}

.footer-brand {
    display: flex;
    align-items: flex-end; /* importante */
    font-family: 'Titan One', cursive;
    font-size: 3rem;
}

.footer-brand .brand-left {
    line-height: 1;
}

.brand-right {
    display: flex;
    align-items: flex-end;
    flex-direction:column-reverse;
    margin-left:-60px;
}

.dot {
    font-size: 2em;
    line-height: 1;
    color: var(--color-orange);
}

.vertical-up {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    line-height: 1;
}

@media (min-width: 1024px) {
    .site-footer {
        padding:20px 80px;
    }
}

/* =========================
   LANDING
========================= */

.page-id-7 .site-main{
    width:100%;
    margin:0;
    max-width:100%;
}

.page-id-7 .hero{
    background-color: var(--color-sand);
    
}
.page-id-7 .hero .container {
    margin:0 auto;
    text-align:center;
}

.page-id-7 .hero .container h1 {
    z-index:9;
    position:relative;
}

.hero .container .hero-sub::before {
    content: "";
    position: absolute;
    left: -110px;              /* distancia desde la palabra */
    top: 50%;
    transform: translateY(-10%);
    width: 80px;              /* tamaño fijo */
    height: 80px;
    background-image: url("https://debattle.club/wp-content/uploads/arrow-right-yellow@4x.png");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.hero .container .bold-orange::after {
    content: "";
    position: absolute;
    right: -110px;
    top: 50%;
    transform: translateY(-80%);
    width: 80px;
    height: 80px;
    background-image: url("https://debattle.club/wp-content/uploads/arrow-left-blue@4x.png");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index:-1;
}

.hero-pre {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
    opacity: 0.5;
    text-transform: lowercase;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.hero-sub {
    font-family: 'Titan One', cursive;
    font-size: 1.4rem;
    color: var(--color-blue);
    margin-top: 20px;
    margin-bottom: 0;
    position:relative;
    display:inline-block;
}

.hero .container .btn-primary {
    position: relative;
    display: block;
    width: fit-content;
    margin: 60px auto;
}

.page-id-7 .hero .container {
    padding: 80px 0 70px;
}

@media (max-width: 600px) {
    .hero .container .bold-orange::after, .hero .container .hero-sub::before {
        display: none;
    }
    .page-id-7 .hero .container {
        padding: 0px 0 50px;
    }
    .hero .container .btn-primary {
        margin: 30px auto;
    }
}

@media (min-width: 1024px) {
    .hero-sub {
        font-size: 1.8rem;
    }
}





/* HOW IT WORKS */
.how-it-works {
    background-color: var(--color-white);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 56px;
    font-family: 'Titan One', cursive;
    color: var(--color-black);
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.step {
    position: relative;
    padding-top: 16px;
    border-top: 3px solid var(--color-orange);
}

.step-number {
    font-family: 'Titan One', cursive;
    font-size: 5rem;
    color: var(--color-sand);
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}

.step h3 {
    font-family: 'Titan One', cursive;
    font-size: 1rem;
    color: var(--color-black);
    margin-bottom: 12px;
    line-height: 1.3;
}

@media (min-width: 1024px) {
    .step h3 {
        font-size: 1.1rem;
    }
}

.step p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.65;
}

/******************************/


.page-id-7 .weekly{
    background-color: var(--color-blue);
    position:relative;
}

.page-id-7 .weekly::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://debattle.club/wp-content/uploads/arrows-background_1.png");
    background-repeat: repeat;
    background-position: center var(--bg-offset, 0px);
    background-size: 400px auto;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}
.page-id-7 .weekly .container{
    position: relative;
    z-index: 1;
}

.page-id-7 .weekly .container {
    margin:0 auto;
    text-align:left;
}

.weekly .dynamic-topic {
    display: inline-block;
    color: #fff;
    font-weight: 900;
    border-right: 3px solid #fff;
    padding-right: 4px;
    white-space: nowrap;
    animation: blinkCursor 0.8s infinite;
    
}

@keyframes blinkCursor {
    0%, 50%, 100% { border-color: var(--color-orange); }
    25%, 75% { border-color: transparent; }
}

.line-1, .line-2 {
    display:block;
}


/* FOR YOU */
.for-you {
    background-color: var(--color-sand);
}

.for-you-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) {
    .for-you-inner {
        grid-template-columns: 3fr 2fr;
        gap: 64px;
        align-items: start;
    }
}

.for-you h2 {
    font-family: 'Titan One', cursive;
    color: var(--color-black);
    margin-bottom: 32px;
}

.for-you h2 em {
    color: var(--color-orange);
    font-style: normal;
}

.for-you-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.for-you-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-black);
}

.check {
    font-family: 'Titan One', cursive;
    color: var(--color-blue);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.check-no {
    font-family: 'Titan One', cursive;
    color: var(--color-orange);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.not-list li {
    opacity: 0.65;
}

/*--FORM--*/
#form-landing {
    background-color: var(--color-clementine);
    margin: 0 auto;
}

#form-landing .container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

#form-landing .form-group {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
}

.form-sub {
    font-size: 0.9rem;
    color: var(--color-black);
    opacity: 0.7;
    margin-top: 12px;
    margin-bottom: 0;
    text-align: center;
}

@media (min-width: 1024px) {

    #form-landing .container {
        width: 600px;
    }

    #form-landing .form-group {
        width: 400px;
        margin: 30px auto;
    }

}

#form-landing .container .lead-form .form-group .btn-primary {
    position: relative;
    display: inline-block;
}

#form-landing .container .lead-form .form-group .btn-primary::before {
    content: "";
    position: absolute;
    left: -70px;
    top: 50%;
    transform: translateY(-80%);
    width: 55px;
    height: 55px;
    background-image: url("https://debattle.club/wp-content/uploads/arrow-right-blue-cta@4x.png");
    background-repeat: no-repeat;
    background-size: contain;

    pointer-events: none;
}

#form-landing .container .lead-form .form-group .btn-primary::after {
    content: "";
    position: absolute;
    right: -70px;
    top: 50%;
    transform: translateY(20%);
    width: 55px;
    height: 55px;
    background-image: url("https://debattle.club/wp-content/uploads/arrow-left-blue-cta_1@4x.png");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}




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

.thank-you-hero {
    background-color: var(--color-sand);
    min-height:100vh;
}


/* =========================
   UTILIDADES MÍNIMAS
========================= */

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

.btn-primary {
    display: inline-block;
    padding: 0.9rem 4rem;
    min-height: 48px;
    background-color: var(--color-orange);
    color: #fff;
    font-family: 'Titan One', cursive;
    font-size: 1rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    margin-top:50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background-color: #ff633f; /* un poco más claro que tu naranja */
}
.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.input-email {
    display: block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    min-height: 48px;
    font-size: 1.05rem;
    font-weight: 500;
    border: none;
    border-radius: 999px;
    background-color: #fff;
    color: var(--color-black);
    outline: none;
}

.input-email:focus {
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(245, 81, 46, 0.2);
}