
/*
Theme Name: Asap Child - Diagnóstico Diabetes
Theme URI: https://diagnosticodiabetes.com/
Description: Tema hijo personalizado para Diagnóstico: Diabetes.
Author: Diagnóstico: Diabetes
Template: Asap-Theme-3.6.6
Version: 1.1.0
*/

/* =====================================================
   1. IDENTIDAD VISUAL Y VARIABLES
===================================================== */

:root {
    --dd-azul: #236F9D;
    --dd-turquesa: #12B8AD;
    --dd-texto: #17202A;
    --dd-texto-secundario: #526273;
    --dd-fondo: #FFFFFF;
    --dd-borde: #E5E9ED;

    --dd-font: "Inter", Arial, sans-serif;
}

/* =====================================================
   2. TIPOGRAFÍA INTER
===================================================== */

@font-face {
    font-family: "Inter";
    src: url("./fonts/inter-v20-latin-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("./fonts/inter-v20-latin-500.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("./fonts/inter-v20-latin-600.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("./fonts/inter-v20-latin-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("./fonts/inter-v20-latin-800.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("./fonts/inter-v20-latin-900.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

/* =====================================================
   3. CONFIGURACIÓN GENERAL
===================================================== */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--dd-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--dd-texto);
    background-color: var(--dd-fondo);
}

button,
input,
textarea,
select {
    font-family: var(--dd-font);
}

/* =====================================================
   4. TÍTULOS
===================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--dd-font);
    color: var(--dd-texto);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
    font-size: 1.15rem;
}

/* =====================================================
   5. TEXTOS Y ENLACES
===================================================== */

p,
li {
    line-height: 1.75;
}

a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

/* =====================================================
   6. BOTONES
===================================================== */

button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
    font-family: var(--dd-font);
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
}

/* =====================================================
   7. FORMULARIOS
===================================================== */

input,
textarea,
select {
    font-family: var(--dd-font);
    max-width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline-color: var(--dd-turquesa);
}

/* =====================================================
   8. IMÁGENES Y MEDIOS
===================================================== */

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

iframe,
video {
    max-width: 100%;
}

/* =====================================================
   9. CONTENIDO
===================================================== */

.entry-content,
.page-content {
    overflow-wrap: break-word;
}

/* =====================================================
   10. ACCESIBILIDAD
===================================================== */

:focus-visible {
    outline: 2px solid var(--dd-turquesa);
    outline-offset: 3px;
}

/* =====================================================
   11. DISPOSITIVOS MÓVILES
===================================================== */

@media (max-width: 768px) {

    html {
        font-size: 15px;
    }

    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}

/* =====================================================
   12. REDUCCIÓN DE MOVIMIENTO
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

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