/*
Theme Name: Idento Base Theme
Theme URI: https://idento.es
Author: Idento
Author URI: https://idento.es
Description: Tema base de Idento. Compatible con WooCommerce. Diseñado para ser extendido mediante child themes.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: idento-base-theme
Tags: woocommerce, custom-colors, custom-fonts
*/


/* =============================================================================
   RESET
   Basado en Eric Meyer Reset + normalize
============================================================================= */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

html {
    scroll-behavior: smooth;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

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

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

:focus:not(:focus-visible) {
    outline: none;
}

html {
    overflow-x: hidden;
}

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


/* =============================================================================
   VARIABLES — sobreescribir en el child theme
============================================================================= */

:root {
    /* Colores principales — redefinir en el child theme */
    --primary: #000000;
    --primary-hover: #333333;
    --secondary: #444444;
    --secondary-hover: #222222;
    --thirty: #666666;
    --thirty-hover: #444444;

    /* Alias (compatibilidad con clases del tema) */
    --main-color: var(--primary);
    --main-color-hover: var(--primary-hover);
    --degradado: linear-gradient(90deg, var(--primary-hover) 0%, var(--primary) 100%);
    --degradado-hover: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);

    /* Neutros */
    --black-color: #222222;
    --light-color: #ffffff;
    --grey-color: #646464;
    --grey-light-color: #929090;
    --bg-light: #f5f5f5;
    --border-color: #eeeeee;

    /* Tipografía — ajusta aquí el tamaño/interlineado base de todo el tema */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 18px;
    --line-height-base: 1.4;

    /* Espaciados de sección */
    --section-padding: 100px;
    --section-padding-sm: 60px;

    /* Header */
    --header-bg: #ffffff;
    --header-topbar-bg: #f2f2f2;
    --header-shadow: 0 2px 6px rgba(51, 51, 51, 0.3);

    /* Footer */
    --footer-bg: #222222;
    --footer-color: #929090;
}


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

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--black-color);
    background: var(--light-color);
    padding: 0 !important;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

p,
li,
a,
span,
strong {
    font-size: var(--font-size-base);
    font-weight: 400;
}

strong {
    font-weight: 700;
    line-height: 120%;
}

i {
    font-style: italic;
}

a {
    text-decoration: none;
    color: var(--main-color);
    line-height: 1em;
}

a:hover {
    text-decoration: none;
    color: var(--main-color-hover);
}

a:focus {
    outline: thin dotted;
}

a:active,
a:hover {
    outline: 0;
}

h1,
.h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 120%;
}

h2,
.h2 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 120%;
}

h3,
.h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: 0.5em;
}

h4,
.h4 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: 0.5em;
}

h5,
.h5 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: 0.5em;
}

h6,
.h6 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: 0.5em;
}

::selection {
    background: #cccccc;
    color: #fff;
    text-shadow: none;
}

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

.full-height {
    height: 100%;
}

.centrado-verticalmente {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.separador {
    width: 75px;
    height: 1px;
    color: var(--grey-color);
    opacity: 1;
}

.no-destacado {
    font-weight: 400;
    color: var(--black-color);
}

.icono-lista {
    padding-left: 30px;
}

.icono-lista li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.icono-lista li p {
    margin: 0;
}

.icono-lista li i {
    margin-right: 15px;
}




.card-link::after {

    margin-left: 8px;
    display: inline-block;
}

.card-link:hover {
    opacity: 0.8;
}


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

/* Barra superior */
#top-menu,
.header-topbar {
    background-color: var(--header-topbar-bg);
    padding: 0.5rem 0;
}

/* Cabecera principal */
#site-header,
header#masthead {
    background: var(--header-bg);
    padding: 0;
    width: 100%;
    z-index: 99;
    box-shadow: 0 8px 46.4px 0 rgba(0, 0, 0, 0.10);
}

header#masthead {
    box-shadow: var(--header-shadow);
    position: fixed;
    top: 0;
    transition: 0.5s;
}

header .site-branding {
    padding: 12px 0;
    transition: 0.5s;
}

img.logo-img {
    max-height: 80px;
    width: auto;
    transition: 0.5s;
}

li.nav-item.dropdown.menu-item-object-product_cat {
    display: flex;
    align-items: center;
}

/* Sticky */
.fixed-header.sticky-topbar {
    display: block;
    position: fixed;
    background: var(--header-bg);
    top: 0;
    width: 100%;
    z-index: 999;
}

.sticky-topbar.fixed-header .hide-fixed {
    display: none;
}

.sticky-topbar.sticky-on-return.animate {
    transition: transform ease 0.2s;
}

/* Variantes de color */
.menu-transparente {
    background-color: transparent;
}

.menu-solido {
    background-color: var(--light-color);
}

/* Menú pre-header */
ul#menu-pre-menu {
    display: flex;
    justify-content: flex-end;
}

ul#menu-pre-menu li {
    padding: 10px 15px;
}

ul#menu-pre-menu li a {
    text-transform: uppercase;
    font-size: 14px;
}

/* Navegación principal */
.main-navigation {
    clear: both;
    display: block;
    width: 100%;
    text-align: right;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.main-navigation ul ul {
    position: absolute;
    display: none;
    min-width: 175px;
    z-index: 9;
    text-align: left;
}

.main-navigation li {
    display: inline-block;
    position: relative;
    padding-left: .5rem;
    cursor: pointer;
}

.main-navigation a {
    display: block;
    text-decoration: none;
}

.main-navigation .sub-menu li {
    display: block;
    z-index: 999999;
}

.main-navigation .menu-item-has-children>a::after {
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    content: "\f107";
    display: inline-block;
    margin-left: 5px;
    font-size: 1em;
    vertical-align: middle;
    transition: ease 0.2s;
}

li.menu-item-has-children a {
    display: inline-block;
}

.menu-toggle {
    display: inline-block;
    background: none;
    border: 0;
    box-shadow: none;
    cursor: pointer;
}

.menu-toggle:focus {
    outline: 0;
}

.menu-toggle i {
    font-size: 1.9rem;
}

.menu-toggle[aria-expanded="true"] i::before {
    content: '\f00d';
}

/* Teléfono en menú */
a.phone-menu {
    background: var(--degradado);
    color: var(--light-color) !important;
    height: fit-content;
    padding: 6px 12px 6px 2px;
    border-radius: 999px;
}

a.phone-menu i.fa-solid.fa-phone {
    background-color: var(--light-color);
    padding: 8px;
    border-radius: 999px;
}

a.phone-menu:hover {
    background: var(--degradado-hover);
    opacity: 1 !important;
}

a.phone-menu-mobile {
    background: transparent;
    padding: 0;
}

a.phone-menu-mobile i.fa-solid.fa-phone {
    background-color: var(--main-color);
    padding: 12px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =============================================================================
   CABECERA DE PÁGINA INTERIOR
============================================================================= */

.cabecera-page {
    padding-top: 177px;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cabecera-page--has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(34, 34, 34, 0.45), rgba(146, 144, 144, 1));
    opacity: 0.85;
    pointer-events: none;
}

.cabecera-page .row,
.cabecera-page .col-12 {
    position: relative;
    z-index: 1;
}

.cabecera-page .h1 {
    font-size: clamp(30px, 5vw, 40px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.cabecera-page p.breadcrumbs,
.cabecera-page p.breadcrumbs a,
.cabecera-page p.breadcrumbs span {
    font-size: 16px;
    color: var(--light-color);
    line-height: 1.1;
}

.cabecera-page p.breadcrumbs a:hover {
    opacity: 0.7;
}


/* =============================================================================
   SECCIONES — convención de espaciado
============================================================================= */

section {
    padding: var(--section-padding) 0;
}

section .pretitulo {
    font-size: 20px;
    color: var(--grey-color);
}


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

#site-footer,
#colophon {
    background: var(--footer-bg);
    color: var(--footer-color);
}

footer li {
    display: inline-block;
    list-style: none;

}

footer li:first-child {
    padding: 0;
}

footer .footer-menu-wrapper {
    display: inline-block;
}


/* =============================================================================
   BLOG — LISTADO
============================================================================= */

main.blog .contenido {
    padding: var(--section-padding) 0;
}

main.blog div.post {
    margin-bottom: 80px;
}

main.blog article.post {
    border: 1px solid var(--border-color);
    background-color: #fbfbfb;
    position: relative;
}

main.blog article.post:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

main.blog article.post .card-header {
    height: 550px;
    overflow: hidden;
}

main.blog article.post .card-header img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

main.blog article.post .date {
    position: absolute;
    top: 25px;
    left: 25px;
    background-color: var(--main-color-hover);
    color: var(--light-color);
    padding: 20px;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
}

main.blog article.post .date .dia,
main.blog article.post .date .mes {
    font-size: 40px;
    font-weight: 700;
    color: var(--light-color);
    line-height: 110%;
}

main.blog article.post .date .mes {
    text-transform: uppercase;
}

main.blog article.post .card-body {
    padding: 16px 24px;
    background-color: #fbfbfb;
}

main.blog article.post .meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

main.blog article.post .meta p.author {
    font-size: 18px;
    color: var(--grey-light-color);
    text-transform: uppercase;
    line-height: 120%;
}

main.blog article.post .meta .etiqueta {
    display: flex;
    align-items: center;
}

main.blog article.post .meta .etiqueta span.badge {
    font-size: 18px;
    line-height: 120%;
    color: var(--main-color) !important;
    font-weight: 400;
    padding: 0;
    margin-left: 8px;
}

main.blog article.post h3.card-title {
    font-size: clamp(28px, 2vw, 32px);
    color: var(--black-color);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 24px;
}

main.blog article.post p.card-text {
    font-size: 16px;
    color: var(--grey-color);
    line-height: 130%;
    margin-bottom: 24px;
}


/* =============================================================================
   SINGLE — ENTRADA
============================================================================= */

main.single .content-single {
    padding: var(--section-padding) 0;
}

main.single .blog-single-content {
    position: relative;
}

main.single .blog-single-content .thumbnail-single-block {
    height: 520px;
}

main.single .blog-single-content .thumbnail-single-block img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

main.single span.date {
    position: absolute;
    top: 25px;
    left: 25px;
    background-color: var(--main-color-hover);
    color: var(--light-color);
    padding: 20px;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
}

main.single .date .dia,
main.single .date .mes {
    font-size: 40px;
    font-weight: 700;
    color: var(--light-color);
    line-height: 110%;
}

main.single .date .mes {
    text-transform: uppercase;
}

main.single .meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 24px 0 32px;
}

main.single .meta p.author {
    font-size: 18px;
    color: var(--grey-light-color);
    text-transform: uppercase;
    line-height: 120%;
}

main.single h2 {
    font-size: clamp(28px, 2vw, 40px);
    color: var(--black-color);
    font-weight: 400;
    line-height: 1.2;
    margin: 24px 0;
}

main.single h3,
main.single h4,
main.single h5,
main.single h6 {
    font-size: 25px;
    font-weight: 400;
    color: var(--black-color);
    line-height: 1.2;
    margin: 24px 0;
}

main.single .the-content p,
main.single .the-content strong,
main.single .the-content em,
main.single .the-content li,
main.single .the-content a {
    font-size: 16px;
    line-height: 130%;
    color: var(--grey-color);
}

main.single .the-content p {
    margin-bottom: 24px;
}

main.single .the-content a {
    text-decoration: underline;
    font-weight: 600;
}

main.single .the-content a:hover {
    opacity: 0.8;
}

.the-content li {
    margin-bottom: 8px;
}

.the-content ul,
.the-content ol {
    padding-left: 1.25em;
    margin-bottom: 24px;
}

.the-content ul {
    list-style: disc;
}

.the-content ol {
    list-style: decimal;
}

/* Listas dentro de bloques de Gutenberg (entradas creadas con el editor) */
.the-content ul.wp-block-list,
.the-content ol.wp-block-list {
    list-style-position: outside;
}

/* Citas (blockquote / bloque de cita de Gutenberg) */
.the-content blockquote,
.the-content .wp-block-quote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--secondary);
    background: var(--bg-light, #f5f5f5);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--black-color);
}

.the-content blockquote p {
    margin-bottom: 0.5rem;
}

.the-content blockquote p:last-child {
    margin-bottom: 0;
}

.the-content blockquote cite,
.the-content .wp-block-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-color);
}

/* Cita destacada (pullquote) */
.the-content .wp-block-pullquote {
    border-top: 4px solid var(--secondary);
    border-bottom: 4px solid var(--secondary);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 1.25rem;
    font-style: italic;
}

main.single .the-content hr.wp-block-separator {
    color: var(--grey-color);
}


/* =============================================================================
   SIDEBAR
============================================================================= */

aside.sidebar {
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    gap: 32px;
}

aside.sidebar .widget_block {
    padding: 32px;
    width: 100%;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
}

aside.sidebar li.widget_block h2.wp-block-heading {
    font-size: 24px;
    color: var(--black-color);
    font-weight: 400;
    line-height: 120%;
    padding-left: 16px;
    position: relative;
}

aside.sidebar li.widget_block h2.wp-block-heading::before {
    content: "";
    display: block;
    width: 7px;
    height: 100%;
    background-color: var(--main-color-hover);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}

aside.sidebar li.widget_block h2.wp-block-heading::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin-top: 8px;
    position: absolute;
}

.sidebar .widget ul {
    padding-top: 20px;
    padding-left: 0;
}

.sidebar .widget ul li {
    list-style: none;
}

.sidebar .widget ul li:not(:last-child) {
    margin-bottom: 16px;
    line-height: 120%;
}

.sidebar .widget ul li a {
    font-size: 16px;
    line-height: 120%;
    color: var(--main-color);
    display: block;
}

.sidebar .widget ul li a:hover {
    opacity: 0.8;
}

aside.sidebar .wp-block-search__button {
    position: relative;
    color: transparent;
    background: none;
    border: none;
    width: 60px;
    height: 60px;
    padding: 0;
    background-color: var(--main-color-hover);
    margin: 0;
}

.wp-block-search__button::before {
    content: "\f002";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    font-size: 22px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

aside.sidebar .wp-block-search__button:hover {
    opacity: 0.8;
}


/* =============================================================================
   PAGINACIÓN
============================================================================= */

nav.blog-pagination {
    padding: 50px 0;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
}

.page-numbers a.page-numbers {
    padding: 12px;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.page-numbers a.page-numbers:hover,
.page-numbers span.current {
    background-color: var(--main-color);
    color: var(--light-color);
}


/* =============================================================================
   CARRUSEL DE LOGOS
============================================================================= */

.logo-carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: logo-scroll 30s linear infinite;
}

.logo-carousel-container:hover .logo-track {
    animation-play-state: paused;
}

.logo-slide {
    width: 200px;
    flex-shrink: 0;
    padding: 0 30px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-slide img {
    max-height: 85px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-slide:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes logo-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* =============================================================================
   SLIDER / CAROUSEL
============================================================================= */

.slider_box {
    min-height: 40vh;
}

.carousel .carousel-inner,
.carousel .slider-overlay {
    height: 100%;
    min-height: inherit;
}

.carousel .carousel-item {
    height: 100%;
    background-size: cover;
    background-position: center;
    min-height: inherit;
}

.carousel .carousel-item .container {
    height: 100%;
}

.carousel .carousel-item .container span {
    display: block;
}

.carousel .slider-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel .full-anchor {
    height: 100%;
    position: absolute;
    width: 100%;
}

.carousel-control-next,
.carousel-control-prev {
    width: 5%;
}


/* =============================================================================
   UTILIDADES
============================================================================= */

.card {
    height: 100%;
}

.card-body {
    flex-direction: column;
    justify-content: space-between;
    display: flex;
}

.list-inline li {
    display: inline-block !important;
}

time.updated-only {
    display: none !important;
}

.alternate-content>.elem {
    display: flex;
    flex-direction: row;
}

.alternate-content>.elem:nth-child(even) {
    flex-direction: row-reverse;
}

.error404 img,
article img {
    max-width: 100%;
}


/* =============================================================================
   FORMULARIOS BASE
============================================================================= */

input[type="text"],
textarea {
    outline: none;
    border: 1px solid #cccccc;
    padding: 15px !important;
    font-family: var(--font-primary);
}

input[type="text"]:focus,
textarea:focus {
    border: 1px solid var(--main-color);
}

input[type="submit"] {
    background-color: var(--main-color);
    border: 0;
    color: var(--light-color);
    padding: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    font-family: var(--font-primary);
}

input[type="submit"]:focus,
input[type="submit"]:hover {
    outline: none !important;
    opacity: 0.9;
}


/* =============================================================================
   WOOCOMMERCE — base
============================================================================= */

.woocommerce .products {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}


/* =============================================================================
   PRINT
============================================================================= */

@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


/* =============================================================================
   RESPONSIVE
============================================================================= */

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

    .main-navigation .nav-menu {
        display: block;
    }
}

@media screen and (max-width: 991px) {

    .main-navigation ul li {
        width: 100%;
        padding-top: 5px;
        padding-bottom: 5px;
        text-align: left;
    }

    .main-navigation .contenedor-menu {
        width: 100%;
        text-align: center;
    }

    .main-navigation {
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-in-out;
    }

    .main-navigation.toggled {
        max-height: 100vh;
    }

    .main-navigation.mobile ul ul {
        position: static;
    }

    .desplegado .main-navigation.mobile ul ul {
        display: block;
    }

    .main-navigation.mobile li.menu-item-has-children ul.sub-menu {
        position: relative;
        padding-left: 10px;
    }

    .main-navigation .menu-item-has-children>a::after {
        padding: 0 10px;
        right: 5px;
        position: absolute;
    }

    .main-navigation .menu-item-has-children.expanded>a::after {
        content: "\f106";
    }

    /* Menú lateral */
    .lateral nav#site-navigation {
        max-height: 100vh;
        height: 100%;
        position: fixed;
        width: 100%;
        background: var(--light-color);
        top: 0;
        left: -100%;
        z-index: 9;
        padding: 0 15px 0 10px;
        transition: top 0s, height 0s, left 0.5s;
    }

    .lateral nav#site-navigation.toggled {
        top: 0;
        left: 0;
    }

    body.scroll-hidden {
        overflow-y: hidden;
    }

    @media (max-width: 767px) {
        .map_box iframe {
            height: 300px !important;
        }
    }
}

/* =============================================================================
   PLANTILLAS WOOCOMMERCE (catalogo, ficha de producto) + BREADCRUMBS
   El CSS vive aqui porque las plantillas estan en este tema padre.
   Colores via variables (placeholders aqui, valores reales en el hijo).
============================================================================= */

/* =============================================================================
   TIENDA / CATÁLOGO (WooCommerce — archive-product.php)
============================================================================= */

/* ─── Hero de catálogo ─── */
.idento-catalogo-hero {
    position: relative;
    background-color: var(--primary);
    color: #fff;
    padding: 3.5rem 0;
    overflow: hidden;
}

.idento-catalogo-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 84, 0.35);
    z-index: 0;
}

.idento-catalogo-hero .container {
    position: relative;
    z-index: 1;
}

.idento-catalogo-hero__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* ─── Layout ─── */
.idento-catalogo {
    padding: 3rem 0 4rem;
}

/* ─── Barra lateral de categorías ─── */
.idento-catalogo__sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary);
}

.idento-cat-menu,
.idento-cat-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.idento-cat-menu li {
    margin: 0;
}

.idento-cat-menu a {
    display: block;
    padding: 0.4rem 0;
    color: var(--black-color);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.15s;
}

.idento-cat-menu a:hover,
.idento-cat-menu .current-cat>a {
    color: var(--secondary);
    font-weight: 600;
}

/* Subcategorías indentadas con guía */
.idento-cat-menu ul {
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid #e3e3e3;
}

.idento-cat-menu ul a {
    font-size: 0.86rem;
    color: var(--grey-color);
}

/* ─── Card de producto ─── */
.idento-product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.idento-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.idento-product-card__img {
    display: block;
    overflow: hidden;
}

.idento-product-card__img img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.idento-product-card:hover .idento-product-card__img img {
    transform: scale(1.04);
}

.idento-product-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.idento-product-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.idento-product-card__title a {
    color: var(--black-color);
    text-decoration: none;
    transition: color 0.15s;
}

.idento-product-card__title a:hover {
    color: var(--primary);
}

.idento-product-card__price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
}

.idento-product-card__price del {
    color: var(--grey-light-color);
    font-weight: 400;
    font-size: 0.9rem;
    margin-right: 0.35rem;
}

.idento-product-card__cart {
    margin-top: auto;
}

/* Botón "Añadir al carrito" de WooCommerce */
.idento-product-card__cart .button,
.idento-product-card__cart .added_to_cart {
    display: inline-block;
    background-color: var(--secondary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    transition: background-color 0.2s;
}

.idento-product-card__cart .button:hover,
.idento-product-card__cart .added_to_cart:hover {
    background-color: var(--secondary-hover);
    color: #fff;
}

.idento-product-card__cart .added_to_cart {
    margin-left: 0.4rem;
    background-color: var(--primary);
}

/* ─── Paginación ─── */
.idento-catalogo__pagination {
    margin-top: 2.5rem;
}

.idento-catalogo__pagination .woocommerce-pagination ul,
.idento-catalogo__pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.idento-catalogo__pagination .woocommerce-pagination a,
.idento-catalogo__pagination .woocommerce-pagination span,
.idento-catalogo__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: var(--primary);
    text-decoration: none;
    background: #fff;
    transition: background-color 0.2s, color 0.2s;
}

.idento-catalogo__pagination .woocommerce-pagination .current,
.idento-catalogo__pagination .woocommerce-pagination a:hover,
.idento-catalogo__pagination .page-numbers.current,
.idento-catalogo__pagination a.page-numbers:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.idento-catalogo__empty {
    color: var(--grey-color);
    font-size: 1rem;
}


/* =============================================================================
   BREADCRUMBS (Yoast)
============================================================================= */

.idento-breadcrumbs {
    font-size: 0.85rem;
    color: var(--grey-color);
}

.idento-breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s;
}

.idento-breadcrumbs a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.idento-breadcrumbs .breadcrumb_last {
    color: var(--grey-color);
    font-weight: 600;
}

/* Breadcrumbs dentro del hero de catálogo (sobre fondo azul, encima del título) */
.idento-breadcrumbs--hero {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
}

.idento-breadcrumbs--hero a {
    color: #fff;
}

.idento-breadcrumbs--hero a:hover {
    color: #fff;
}

.idento-breadcrumbs--hero .breadcrumb_last {
    color: rgba(255, 255, 255, 0.85);
}

/* Breadcrumbs de la ficha de producto */
.idento-breadcrumbs--single {
    padding: 1.5rem 0 0.5rem;
}


/* =============================================================================
   FICHA DE PRODUCTO (WooCommerce — single-product.php)
============================================================================= */

.idento-single {
    padding-bottom: 4rem;
}

/* Galería */
.idento-single__gallery {
    position: relative;
}

.idento-single__gallery .woocommerce-product-gallery {
    margin: 0;
}

.idento-single__gallery img {
    border-radius: 10px;
}

.idento-single__gallery .onsale {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: var(--thirty);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin: 0;
}

/* Resumen */
.idento-single__summary .product_title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1rem;
}

.idento-single__summary .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    display: block;
}

.idento-single__summary .price del {
    color: var(--grey-light-color);
    font-weight: 400;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.idento-single__summary .woocommerce-product-details__short-description {
    color: var(--grey-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Cantidad + botón añadir al carrito */
.idento-single__summary .cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.idento-single__summary .quantity .qty {
    width: 72px;
    padding: 0.55rem 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
}

.idento-single__summary .single_add_to_cart_button {
    background-color: var(--secondary);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.75rem;
    transition: background-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.idento-single__summary .single_add_to_cart_button:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

/* Meta (SKU, categorías, etiquetas) */
.idento-single__summary .product_meta {
    font-size: 0.85rem;
    color: var(--grey-color);
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.idento-single__summary .product_meta a {
    color: var(--primary);
    text-decoration: none;
}

.idento-single__summary .product_meta a:hover {
    text-decoration: underline;
}

/* Sección inferior: pestañas + relacionados */
.idento-single__extra {
    margin-top: 3.5rem;
}

.idento-single__extra .woocommerce-tabs ul.tabs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0 0 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.idento-single__extra .woocommerce-tabs ul.tabs li {
    margin: 0;
}

.idento-single__extra .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.6rem 1.1rem;
    color: var(--grey-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.idento-single__extra .woocommerce-tabs ul.tabs li.active a {
    color: var(--primary);
    border-bottom-color: var(--secondary);
}

/* WooCommerce aplica display:grid a cualquier .products; lo neutralizamos
   para que el <h2> quede arriba y el .row de Bootstrap debajo (no en grid). */
.idento-single__extra .related.products,
.idento-single__extra .up-sells.products {
    display: block;
    width: 100%;
    margin-top: 3rem;
}

.idento-single__extra .related>h2,
.idento-single__extra .up-sells>h2 {
    display: block;
    width: 100%;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}


/* =============================================================================
   PÁGINA DE NOTICIAS (home.php)
============================================================================= */

.idento-noticias {
    padding: 2.5rem 0 4rem;
}

/* Cabecera: breadcrumbs + título */
.idento-noticias__head {
    margin-bottom: 2rem;
}

.idento-noticias__title {
    color: var(--primary);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    margin: 0.25rem 0 0;
}

/* Paginación (the_posts_pagination) */
.idento-noticias__pagination {
    margin-top: 2.5rem;
}

.idento-noticias__pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.idento-noticias__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.6rem;
    border: 1px solid var(--border-color, #eee);
    border-radius: 6px;
    color: var(--primary);
    text-decoration: none;
    background: #fff;
    transition: background-color 0.2s, color 0.2s;
}

.idento-noticias__pagination .page-numbers.current,
.idento-noticias__pagination .page-numbers:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.idento-noticias__pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

.idento-noticias__empty {
    color: var(--grey-color);
}


/* =============================================================================
   SIDEBAR DE BLOG (idento_blog_sidebar)
============================================================================= */

.idento-blog-sidebar .widget {
    margin-bottom: 2rem;
}

.idento-blog-sidebar .widget-title {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary);
}

/* Buscador */
.idento-search-form .form-control {
    border-radius: 999px 0 0 999px;
    border: 1px solid var(--border-color, #dee2e6);
    font-size: 0.9rem;
    padding: 0.45rem 1rem;
}

.idento-search-btn {
    border-radius: 0 999px 999px 0;
    background-color: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    padding: 0.45rem 0.9rem;
}

.idento-search-btn:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

/* Categorías */
.idento-cat-list,
.idento-cat-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.idento-cat-list li {
    margin: 0;
}

.idento-cat-list a {
    display: block;
    padding: 0.4rem 0;
    color: var(--black-color);
    text-decoration: none;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border-color, #eee);
    transition: color 0.15s;
}

.idento-cat-list a:hover,
.idento-cat-list .current-cat>a {
    color: var(--secondary);
    font-weight: 600;
}

.idento-cat-list ul {
    margin-left: 0.75rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--border-color, #eee);
}

/* Últimas entradas */
.idento-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.idento-recent-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color, #eee);
}

.idento-recent-item:last-child {
    border-bottom: none;
}

.idento-recent-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.idento-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.idento-recent-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.idento-recent-date {
    font-size: 0.72rem;
    color: var(--grey-color);
}

.idento-recent-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--black-color);
    text-decoration: none;
    transition: color 0.15s;
}

.idento-recent-title:hover {
    color: var(--primary);
}


/* =============================================================================
   SINGLE DE NOTICIA (single.php)
============================================================================= */

.idento-single-post {
    padding: 2.5rem 0 4rem;
}

/* Imagen destacada con fecha (reutiliza .single-thumbnail / .date del tema) */
.idento-single-post .single-thumbnail {
    position: relative;
    margin-bottom: 1.5rem;
}

.idento-single-post .single-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Meta: autor */
.idento-single-post .single-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #eee);
    font-size: 0.9rem;
    color: var(--grey-color);
}

.idento-single-post .single-author {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Cuerpo */
.idento-single-post .the-content {
    line-height: 1.8;
    color: var(--black-color);
}

.idento-single-post .the-content>* {
    margin-bottom: 1.25rem;
}

.idento-single-post .the-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Navegación anterior / siguiente */
.idento-post-nav {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, #eee);
}

.idento-post-nav .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.idento-post-nav .nav-previous,
.idento-post-nav .nav-next {
    max-width: 48%;
}

.idento-post-nav .nav-next {
    margin-left: auto;
    text-align: right;
}

.idento-post-nav a {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--border-color, #eee);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.idento-post-nav a:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.idento-post-nav__dir {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--secondary);
}

.idento-post-nav__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--black-color);
    line-height: 1.35;
}


/* =============================================================================
   BLOQUES BASE (biblioteca reutilizable del padre)
============================================================================= */

/* Placeholder genérico (cuando un bloque está vacío en el editor) */
.idento-block-placeholder {
    text-align: center;
    color: var(--grey-color);
    padding: 1.5rem;
    border: 1px dashed var(--border-color, #ddd);
    border-radius: 8px;
    margin: 0;
}

/* Botón genérico reutilizable */
.idento-btn {
    display: inline-block;
    background-color: var(--secondary);
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.idento-btn:hover {
    background-color: var(--secondary-hover);
    color: #fff;
    transform: translateY(-2px);
}

/* Título de sección común a los bloques */
.idento-faq__heading,
.idento-datos__heading,
.idento-pasos__heading,
.idento-proceso__heading,
.idento-testimonios__heading {
    text-align: center;
    color: var(--primary);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    margin: 0 0 2rem;
}

/* ─── FAQ ─── */
.idento-faq {
    padding: 3.5rem 0;
}

.idento-faq .accordion-item {
    border: 1px solid var(--border-color, #eee);
    margin-bottom: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
}

.idento-faq .accordion-button {
    font-weight: 600;
    color: var(--primary);
}

.idento-faq .accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: #fff;
    box-shadow: none;
}

.idento-faq .accordion-button:focus {
    box-shadow: none;
    border-color: var(--secondary);
}

/* ─── Logos carrusel (marquee CSS) ─── */
.idento-logos {
    padding: 2.5rem 0;
}

.idento-logos__viewport {
    overflow: hidden;
}

.idento-logos__track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: idento-marquee 30s linear infinite;
}

.idento-logos:hover .idento-logos__track {
    animation-play-state: paused;
}

.idento-logos__item {
    flex: 0 0 auto;
}

.idento-logos__item img {
    max-height: 60px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter 0.2s, opacity 0.2s;
}

.idento-logos__item img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes idento-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .idento-logos__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ─── Banner de datos ─── */
.idento-datos {
    background-color: var(--primary);
    color: #fff;
    padding: 3rem 0;
}

.idento-datos__heading {
    color: #fff;
}

.idento-dato__cifra {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.1em;
}

.idento-dato__texto {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ─── Pasos ─── */
.idento-pasos {
    padding: 3.5rem 0;
}

.idento-paso {
    text-align: center;
    padding: 1rem;
}

.idento-paso__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.idento-paso__titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.idento-paso__texto {
    font-size: 0.92rem;
    color: var(--grey-color);
    margin: 0;
}

/* ─── Proceso ─── */
.idento-proceso {
    padding: 3.5rem 0;
}

.idento-proceso__media img {
    border-radius: 10px;
}

.idento-proceso__paso {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 0;
}

.idento-proceso__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.idento-proceso__titulo {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.25rem;
}

.idento-proceso__texto {
    margin: 0;
    color: var(--grey-color);
    font-size: 0.92rem;
}

/* ─── Texto con imagen ─── */
.idento-texto-imagen {
    padding: 3.5rem 0;
}

.idento-texto-imagen__media img {
    border-radius: 10px;
    width: 100%;
}

.idento-texto-imagen__titulo {
    color: var(--primary);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    margin: 0 0 1rem;
}

.idento-texto-imagen__texto {
    color: var(--grey-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ─── Testimonios ─── */
.idento-testimonios {
    padding: 3.5rem 0;
}

.idento-testimonio {
    height: 100%;
    background: #fff;
    border: 1px solid var(--border-color, #eee);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.idento-testimonio__estrellas {
    color: #f5a623;
}

.idento-testimonio__texto {
    font-style: italic;
    color: var(--black-color);
    margin: 0;
    border: none;
    padding: 0;
    background: none;
    line-height: 1.6;
    flex: 1;
}

.idento-testimonio__autor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.idento-testimonio__foto {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.idento-testimonio__nombre {
    display: block;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.idento-testimonio__cargo {
    display: block;
    font-size: 0.82rem;
    color: var(--grey-color);
}

/* ─── CTA ─── */
.idento-cta {
    position: relative;
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 3.5rem 0;
    overflow: hidden;
}

.idento-cta__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 84, 0.7);
    z-index: 0;
}

.idento-cta .container {
    position: relative;
    z-index: 1;
}

.idento-cta__inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.idento-cta__titulo {
    color: #fff;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.idento-cta__texto {
    font-size: 1.05rem;
    opacity: 0.95;
    margin: 0 0 1.75rem;
}

.idento-cta__btn {
    display: inline-block;
    background-color: var(--secondary);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.idento-cta__btn:hover {
    background-color: var(--secondary-hover);
    color: #fff;
    transform: translateY(-2px);
}

/* ─── Últimas noticias ─── */
.idento-ultimas {
    padding: 4rem 0;
}

.idento-ultimas__heading {
    text-align: center;
    color: var(--primary);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    margin: 0 0 2rem;
}

.idento-ultimas__cta {
    text-align: center;
    margin-top: 2.5rem;
}


/* =============================================================================
   ACCESIBILIDAD
============================================================================= */

/* Texto solo para lectores de pantalla (oculto visualmente) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    position: absolute !important;
    word-wrap: normal !important;
}

/* Skip-link: oculto hasta que recibe foco con el teclado */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 6px 0;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
    color: #fff;
    outline: 3px solid var(--secondary);
}

/* Foco visible SOLO al navegar con teclado (lo activa theme.js con .using-keyboard) */
body:not(.using-keyboard) a:focus,
body:not(.using-keyboard) button:focus,
body:not(.using-keyboard) input:focus,
body:not(.using-keyboard) select:focus,
body:not(.using-keyboard) textarea:focus {
    outline: none;
}

body.using-keyboard a:focus,
body.using-keyboard button:focus,
body.using-keyboard input:focus,
body.using-keyboard select:focus,
body.using-keyboard textarea:focus {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}


/* =============================================================================
   STICKY ADD-TO-CART (ficha de producto)
============================================================================= */

.idento-sticky-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1010;
    background: #fff;
    border-top: 1px solid var(--border-color, #eee);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.idento-sticky-cart.is-visible {
    transform: translateY(0);
}

.idento-sticky-cart__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 1rem;
}

.idento-sticky-cart__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.idento-sticky-cart__img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.idento-sticky-cart__title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--black-color);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40vw;
}

.idento-sticky-cart__price {
    display: block;
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 700;
}

.idento-sticky-cart__btn {
    flex-shrink: 0;
    background: var(--secondary);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.idento-sticky-cart__btn:hover {
    background: var(--secondary-hover);
    color: #fff;
}

@media (max-width: 575.98px) {
    .idento-sticky-cart__price {
        display: none;
    }

    .idento-sticky-cart__title {
        max-width: 50vw;
    }
}


/* =============================================================================
   PLANTILLA DE CONTACTO  (template-contacto.php)
============================================================================= */
.idento-contacto__title,
.idento-contacto__social-title {
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.idento-contacto__list {
    margin: 0 0 2rem;
}

.idento-contacto__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.idento-contacto__item:last-child {
    border-bottom: 0;
}

.idento-contacto__item i {
    color: var(--secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    width: 1.4rem;
    text-align: center;
    flex-shrink: 0;
}

.idento-contacto__item a {
    color: var(--black-color);
    text-decoration: none;
    transition: color 0.2s;
}

.idento-contacto__item a:hover {
    color: var(--primary);
}

.idento-contacto__social {
    margin-top: 1.5rem;
}

.idento-contacto__social-links {
    display: flex;
    gap: 0.6rem;
}

.idento-contacto__social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.idento-contacto__social-links a:hover {
    background: var(--primary);
    color: #fff;
}

.idento-contacto__form-empty {
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    color: var(--grey-color);
}