/* ==========================================================================
   WaveDriving Online — ajustes propios sobre la plantilla SEOZ.
   Solo añade; no se modifica main.css para poder actualizar la plantilla.
   ========================================================================== */

:root {
    --wd-azul: #0b5ed7;
    --wd-oscuro: #10213a;
    /* Colores de la plantilla, para que lo propio herede su paleta. */
    --wd-tema: #6C57D2;
    --wd-tema-2: #FF792E;
}

/* --- Logo de cabecera --------------------------------------------------- */
.wd-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wd-logo img {
    width: 48px;
    height: auto;
}

.wd-logo span {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: var(--wd-oscuro);
}

.wd-logo small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .7;
}

/* --- Hero --------------------------------------------------------------- */
.wd-hero::before {
    position: absolute;
    content: "";
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .82) 45%, rgba(255, 255, 255, .35) 100%);
    z-index: 0;
}

.wd-hero .container {
    position: relative;
    z-index: 1;
}

.wd-hero-img img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(16, 33, 58, .28);
}

/* Enlaces a las versiones regionales */
.wd-regions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 22px 0 28px;
}

.wd-regions span {
    font-size: 15px;
    font-weight: 600;
    color: var(--wd-oscuro);
}

.wd-regions img {
    width: 32px;
    height: auto;
    transition: opacity .3s ease, transform .3s ease;
}

.wd-regions a:hover img {
    opacity: .7;
    transform: translateY(-2px);
}

/* --- Tarjetas de la Órbita WD ------------------------------------------- */
.wd-orbit-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 26px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.wd-orbit-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(16, 33, 58, .12);
}

/* Los iconos originales son siluetas blancas sobre transparente: en el sitio
   antiguo iban sobre un banner oscuro. Aqui se les pone un disco de color
   para que sigan siendo visibles sobre la tarjeta blanca. */
.wd-orbit-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wd-tema) 0%, #4b38a6 100%);
    box-shadow: 0 10px 22px rgba(108, 87, 210, .28);
    transition: background .3s ease;
}

.wd-orbit-card:hover .wd-orbit-icon {
    background: linear-gradient(135deg, var(--wd-tema-2) 0%, #e05c12 100%);
}

.wd-orbit-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.wd-orbit-card h3 {
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.wd-orbit-card p {
    flex: 1;
    font-size: 15px;
    margin-bottom: 16px;
}

.wd-orbit-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.wd-orbit-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--wd-azul);
}

.wd-orbit-links a:hover {
    text-decoration: underline;
}

/* --- Tarjetas con imagen (aula / simulador) ----------------------------- */
.wd-media-card {
    height: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(16, 33, 58, .18);
}

.wd-media-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.wd-media-content {
    padding: 28px 26px 32px;
}

.wd-media-content h3 {
    margin-bottom: 10px;
}

.wd-media-content p {
    margin-bottom: 20px;
}

/* --- Datos de contacto --------------------------------------------------- */
.wd-contact-data {
    height: 100%;
    padding: 34px 30px;
    background: var(--wd-oscuro);
    border-radius: 16px;
    color: #fff;
}

.wd-contact-data h3 {
    margin-bottom: 22px;
    color: #fff;
}

.wd-contact-data ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wd-contact-data li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.wd-contact-data li:last-child {
    border-bottom: 0;
}

.wd-contact-data img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.wd-contact-data span,
.wd-contact-data a {
    color: #fff;
    font-size: 15px;
}

.wd-contact-data a:hover {
    text-decoration: underline;
}

/* --- Formularios: etiquetas y casilla ----------------------------------- */
.contact-form-box .form-clt label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.wd-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.wd-check-center {
    justify-content: center;
}

.wd-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--wd-azul);
}

.wd-check label {
    margin: 0;
    font-size: 15px;
    cursor: pointer;
}

/* --- Bloque de inscripción ---------------------------------------------- */
.wd-register-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 50px 45px;
    background: rgba(255, 255, 255, .96);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(16, 33, 58, .22);
}

/* --- Aviso de cookies ---------------------------------------------------- */
.wd-cookie-banner {
    display: none;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 18px 24px;
    background: var(--wd-oscuro);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}

.wd-cookie-banner p {
    margin: 0;
    color: #fff;
    font-size: 15px;
}

.wd-cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 575px) {
    .wd-register-wrapper {
        padding: 32px 20px;
    }

    .wd-media-card img {
        height: 210px;
    }

    .wd-logo span {
        font-size: 17px;
    }
}

/* --- Accesibilidad: sin animaciones si el sistema lo pide ---------------- */
@media (prefers-reduced-motion: reduce) {

    .wow,
    .char-animation,
    .char-animation div,
    .char-animation span {
        visibility: visible !important;
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }
}

/* --- Contraste sobre fondos oscuros ------------------------------------- */

/* El logo combina negro y plata: sobre el pie oscuro necesita una placa clara. */
.footer-section .widget-head img {
    padding: 10px 14px;
    background: #fff;
    border-radius: 10px;
}

/* La casilla del formulario de contacto va sobre una fotografía. */
.contact-section .wd-check label {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

/* Subtitulo del hero: recoge el claim que en el sitio original iba bajo el H1. */
.wd-hero-claim {
    font-size: 20px;
    color: var(--wd-oscuro);
    margin-bottom: 14px;
}

.wd-hero-claim b {
    font-weight: 700;
}
