/*
Theme Name: Revelado24 Theme
Template: storefront
Version: 1.0
*/

/* =========================
   RESET GENERAL
========================= */

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

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    text-decoration: none !important;
}

a:focus,
a:active,
a:focus-visible,
button:focus,
button:active,
button:focus-visible {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* =========================
   BASE STOREFRONT
   Mantiene ocultos el header/footer originales del tema padre.
========================= */

.site-header,
.site-footer,
#secondary {
    display: none !important;
}

#primary,
.content-area {
    width: 100% !important;
    max-width: 100% !important;
}

/* =========================
   OCULTAR TÍTULO AUTOMÁTICO DE PÁGINAS
========================= */

body.page article.page > header.entry-header,
body.page article.page > .entry-header,
body.page .site-main > article.page > header.entry-header,
body.page .site-main > article.page > .entry-header {
    display: none !important;
}

/* =========================
   HOME CATEGORÍAS
========================= */

.r24-categorias {
    max-width: 1180px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 42px 28px;
}

.r24-cat {
    text-align: center;
    color: #6f6f6f;
    display: block;
}

.r24-cat img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    transition: transform .25s ease;
}

.r24-cat:hover img {
    transform: translateY(-4px);
}

.r24-cat-title {
    margin-top: 18px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .r24-categorias {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }
}

@media (max-width: 768px) {
    .r24-categorias {
        grid-template-columns: 1fr;
    }
}

/* =========================
   SOBRE NOSOTROS
========================= */

.r24-nosotros {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 20px 70px;
}

.r24-nosotros h1 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 40px;
}

.r24-nosotros-imgs {
    display: flex;
    gap: 22px;
    margin-bottom: 55px;
}

.r24-nosotros-imgs img {
    width: calc(50% - 11px);
    height: 230px;
    object-fit: cover;
    display: block;
}

.r24-nosotros-texto {
    max-width: 700px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.7;
}

.r24-nosotros-texto h2 {
    font-size: 42px;
    color: #0b4d7a;
    margin: 45px 0 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
}

.r24-nosotros-texto ul {
    padding-left: 20px;
    margin-bottom: 35px;
}

.r24-nosotros-texto li {
    margin-bottom: 12px;
}

.r24-nosotros-final {
    font-size: 13px;
    color: #555;
    margin-top: 35px;
}

@media (max-width: 768px) {
    .r24-nosotros h1 {
        font-size: 34px;
    }

    .r24-nosotros-imgs {
        flex-direction: column;
    }

    .r24-nosotros-imgs img {
        width: 100%;
        height: auto;
    }

    .r24-nosotros-texto h2 {
        font-size: 34px;
    }
}

/* =========================
   LOGIN / REGISTRO
========================= */

.login-register-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.login-form,
.register-form {
    width: 48%;
}

.login-form h2,
.register-form h2 {
    font-size: 1.5rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .login-register-container {
        flex-direction: column;
    }

    .login-form,
    .register-form {
        width: 100%;
    }
}

/* =====================================================
   PÁGINAS INFORMATIVAS - REVELADO24
   Aviso legal, envíos, privacidad, cookies, condiciones...
===================================================== */

.r24-info-page,
.r24-legal-page {
    width: 100%;
    background: #f6f6f6;
    padding: 42px 20px 70px;
}

.r24-info-hero,
.r24-legal-hero {
    max-width: 1180px;
    margin: 0 auto 28px;
    background: #303030;
    border-radius: 20px;
    padding: 42px 34px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.r24-info-label,
.r24-legal-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 8px 14px;
    background: rgba(201, 162, 39, .15);
    border: 1px solid rgba(201, 162, 39, .55);
    border-radius: 999px;
    color: #e7cf83;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.r24-info-hero h1,
.r24-legal-hero h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
}

.r24-info-hero p,
.r24-legal-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #eeeeee;
    font-size: 16px;
    line-height: 1.7;
}

.r24-info-content,
.r24-legal-content {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

.r24-info-card,
.r24-legal-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.r24-info-card h2,
.r24-legal-card h2 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
    color: #303030;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
}

.r24-info-card h3,
.r24-legal-card h3 {
    margin: 0 0 12px;
    color: #303030;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}

.r24-info-card p,
.r24-legal-card p {
    margin: 0 0 16px;
    color: #555555;
    font-size: 15px;
    line-height: 1.75;
}

.r24-info-card p:last-child,
.r24-legal-card p:last-child {
    margin-bottom: 0;
}

.r24-info-card a,
.r24-legal-card a {
    color: #c9a227 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.r24-info-card a:hover,
.r24-legal-card a:hover {
    color: #d4ad28 !important;
}

.r24-info-highlight,
.r24-legal-highlight {
    border-color: rgba(201, 162, 39, .45);
}

.r24-info-data,
.r24-legal-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.r24-info-data div,
.r24-legal-data div {
    background: #f7f7f7;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    padding: 16px;
}

.r24-info-data span,
.r24-legal-data span {
    display: block;
    margin-bottom: 6px;
    color: #888888;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.r24-info-data strong,
.r24-legal-data strong {
    display: block;
    color: #303030;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 800;
}

.r24-info-subblock,
.r24-legal-subblock {
    margin-top: 22px;
    padding: 22px;
    background: #f7f7f7;
    border: 1px solid #eeeeee;
    border-radius: 16px;
}

.r24-info-subblock:first-of-type,
.r24-legal-subblock:first-of-type {
    margin-top: 18px;
}

.r24-info-card ul,
.r24-legal-card ul {
    margin: 0;
    padding-left: 20px;
    color: #555555;
    font-size: 15px;
    line-height: 1.75;
}

.r24-info-card li,
.r24-legal-card li {
    margin-bottom: 8px;
}

.r24-info-card li:last-child,
.r24-legal-card li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .r24-info-page,
    .r24-legal-page {
        padding: 28px 14px 50px;
    }

    .r24-info-hero,
    .r24-legal-hero {
        padding: 34px 22px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .r24-info-hero h1,
    .r24-legal-hero h1 {
        font-size: 34px;
    }

    .r24-info-hero p,
    .r24-legal-hero p {
        font-size: 15px;
    }

    .r24-info-card,
    .r24-legal-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .r24-info-card h2,
    .r24-legal-card h2 {
        font-size: 23px;
    }

    .r24-info-card h3,
    .r24-legal-card h3 {
        font-size: 19px;
    }

    .r24-info-data,
    .r24-legal-data {
        grid-template-columns: 1fr;
    }

    .r24-info-subblock,
    .r24-legal-subblock {
        padding: 18px;
    }
}

/* =====================================================
   TABLAS EN PÁGINAS INFORMATIVAS
===================================================== */

.r24-info-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #eeeeee;
    background: #ffffff;
}

.r24-info-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    margin: 0;
    background: #ffffff;
}

.r24-info-table th {
    background: #303030;
    color: #ffffff;
    padding: 15px 16px;
    text-align: left;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

.r24-info-table td {
    padding: 15px 16px;
    border-bottom: 1px solid #eeeeee;
    color: #555555;
    font-size: 14px;
    line-height: 1.55;
    vertical-align: top;
}

.r24-info-table tbody tr:last-child td {
    border-bottom: none;
}

.r24-info-table tbody tr:hover td {
    background: #f8f5ec;
}

.r24-info-table td:first-child {
    color: #303030;
    font-weight: 800;
}

@media (max-width: 768px) {
    .r24-info-table-wrap {
        border-radius: 14px;
    }

    .r24-info-table th,
    .r24-info-table td {
        padding: 13px 14px;
        font-size: 13px;
    }
}

/* =====================================================
   SOBRE NOSOTROS - PÁGINA INFORMATIVA
===================================================== */

.r24-about-gallery-card {
    padding: 18px;
}

.r24-about-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.r24-about-gallery img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .r24-about-gallery {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .r24-about-gallery img {
        height: auto;
        max-height: 320px;
    }
}

/* =====================================================
   OCULTA PALABRA OFERTA
===================================================== */

.onsale {
    display: none !important;
}
/* =====================================================
   CONTACTO - FORMULARIO MEJORADO REVELADO24
===================================================== */

.r24-contact-form-card {
    position: relative;
    overflow: hidden;
}

.r24-contact-form-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(201, 162, 39, .16), transparent 68%);
    pointer-events: none;
}

.r24-contact-form {
    position: relative;
    margin-top: 26px;
}

.r24-contact-form form {
    display: grid;
    gap: 22px;
}

.r24-form-row {
    position: relative;
}

.r24-form-row label {
    display: block;
    margin-bottom: 9px;
    color: #303030;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .2px;
}

.r24-contact-form input[type="text"],
.r24-contact-form input[type="email"],
.r24-contact-form input[type="tel"],
.r24-contact-form textarea {
    width: 100%;
    min-height: 56px;
    padding: 16px 18px;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    background: #fbfbfb;
    color: #303030;
    font-size: 15px;
    line-height: 1.45;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    transition: 
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

.r24-contact-form textarea {
    min-height: 190px;
    resize: vertical;
    border-radius: 20px;
}

.r24-contact-form input[type="text"]::placeholder,
.r24-contact-form input[type="email"]::placeholder,
.r24-contact-form input[type="tel"]::placeholder,
.r24-contact-form textarea::placeholder {
    color: #9b9b9b;
}

.r24-contact-form input[type="text"]:hover,
.r24-contact-form input[type="email"]:hover,
.r24-contact-form input[type="tel"]:hover,
.r24-contact-form textarea:hover {
    background: #ffffff;
    border-color: #dddddd;
}

.r24-contact-form input[type="text"]:focus,
.r24-contact-form input[type="email"]:focus,
.r24-contact-form input[type="tel"]:focus,
.r24-contact-form textarea:focus {
    background: #ffffff;
    border-color: rgba(201, 162, 39, .8);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, .13);
    outline: none;
    transform: translateY(-1px);
}

/* Checkbox privacidad */

.r24-form-privacy {
    margin-top: 2px;
    padding: 16px 18px;
    background: #f8f8f8;
    border: 1px solid #eeeeee;
    border-radius: 18px;
}

.r24-form-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
}

.r24-form-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: #c9a227;
    cursor: pointer;
}

.r24-form-privacy a {
    color: #c9a227 !important;
    font-weight: 800;
}

.r24-form-privacy a:hover {
    color: #d4ad28 !important;
}

/* Botón enviar */

.r24-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 56px;
    margin-top: 4px;
    padding: 0 34px;
    border: 0;
    border-radius: 999px;
    background: #303030;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
    transition: 
        background .22s ease,
        transform .22s ease,
        box-shadow .22s ease;
}

.r24-contact-submit:hover {
    background: #c9a227;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,0,0,.16);
}

.r24-contact-submit:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

/* Mensajes de estado */

.r24-contact-alert {
    margin-bottom: 22px;
    padding: 15px 18px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 800;
}

.r24-contact-alert-ok {
    background: #edf8ef;
    border: 1px solid #b9e2c1;
    color: #276738;
}

.r24-contact-alert-error {
    background: #fff1f1;
    border: 1px solid #f0b8b8;
    color: #9d2525;
}

/* Ajuste para que el bloque respire mejor */

.r24-contact-form-card > p {
    max-width: 620px;
    color: #666666;
}

/* Responsive */

@media (max-width: 768px) {
    .r24-contact-form {
        margin-top: 22px;
    }

    .r24-contact-form form {
        gap: 18px;
    }

    .r24-contact-form input[type="text"],
    .r24-contact-form input[type="email"],
    .r24-contact-form input[type="tel"],
    .r24-contact-form textarea {
        min-height: 54px;
        padding: 15px 16px;
        border-radius: 16px;
        font-size: 14px;
    }

    .r24-contact-form textarea {
        min-height: 165px;
    }

    .r24-form-privacy {
        padding: 15px 16px;
        border-radius: 16px;
    }

    .r24-contact-submit {
        width: 100%;
        min-height: 54px;
    }
}