/*
Theme Name: Nautes Theme
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Template: twentytwentyfive
Author: MKD
Author URI: https://marketingdigitalconsulting.com
Description: Revista nautica
Version: 1.0.1786536203
Updated: 2026-08-12 14:03:23

*/

/* ==================================================
   AJUSTES GENERALES DE NAUTES
   ================================================== */

:root {
    --nautes-navy: #082a46;
    --nautes-blue: #16496d;
    --nautes-paper: #f4f6f7;
    --nautes-ink: #17212a;
    --nautes-muted: #69747d;
    --nautes-rule: #dce1e4;
}

/* Modelo de caja consistente */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Renderizado general */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    color: var(--nautes-ink);
    background: var(--nautes-paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Evitar imágenes deformadas o desbordadas */
img,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

/* Mejores saltos de línea */
h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

/* Color de selección */
::selection {
    color: #fff;
    background: var(--nautes-navy);
}

/* Enlaces más legibles */
.wp-block-post-content a {
    color: var(--nautes-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.wp-block-post-content a:hover {
    color: var(--nautes-navy);
}

/* Foco visible para navegación con teclado */
:where(a, button, input, textarea, select, summary):focus-visible {
    outline: 3px solid #2b83c6;
    outline-offset: 3px;
}

/* Campos de formulario */
input,
textarea,
select {
    border: 1px solid var(--nautes-rule);
    border-radius: 0;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--nautes-navy);
}

/* Imágenes y pies de foto */
figure {
    margin-inline: 0;
}

figcaption {
    color: var(--nautes-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* Separadores editoriales */
.wp-block-separator {
    border-color: var(--nautes-rule);
    opacity: 1;
}

/* Elementos enlazados desde índices */
:target {
    scroll-margin-top: 90px;
}

/* Evitar animaciones para usuarios que las desactivan */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}