/* ==========================================================================
   borjabarrado.com — HOJA DE ESTILOS ÚNICA
   Sustituye a: normalize.css, estilos.css, estilos-seo.css,
                estilos_al.css y contacto.css

   Índice
   1.  Normalize (v8.0.1)
   2.  Variables y base
   3.  Tipografía
   4.  Header y navegación
   5.  Hero (inicio)
   6.  Sección "¿Qué ofrezco?" / servicios
   7.  Proyectos (tarjetas flip)
   8.  Footer y contacto
   9.  Botones CTA
   10. Aviso de cookies
   11. Burbujas animadas
   12. Hero de landing (.contenedor)
   13. Animaciones
   14. Responsive general
   15. Página SEO (seo.php)
   16. Páginas legales + contacto  → <body class="pagina-legal"> / <body class="pagina-contacto">
   17. Solo contacto               → <body class="pagina-contacto">
   18. Header sticky (antes <style> en línea)

   Nota: :where(.clase) no suma especificidad, así que los bloques 16 y 17
   se comportan exactamente igual que cuando eran archivos separados
   cargados después de estilos.css.
   ========================================================================== */


/* ==========================================================================
   1. NORMALIZE v8.0.1 | MIT License | github.com/necolas/normalize.css
   ========================================================================== */

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body { margin: 0; }
main { display: block; }

h1 {
    font-size: 2em;
    margin: .67em 0;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

a { background-color: transparent; }

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

b, strong { font-weight: bolder; }

code, kbd, samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

small { font-size: 80%; }

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sub { bottom: -.25em; }
sup { top: -.5em; }

img { border-style: none; }

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button, input { overflow: visible; }
button, select { text-transform: none; }

button,
[type="button"],
[type="reset"],
[type="submit"] { -webkit-appearance: button; }

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; }

fieldset { padding: .35em .75em .625em; }

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress { vertical-align: baseline; }
textarea { overflow: auto; }

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button { height: auto; }

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

details { display: block; }
summary { display: list-item; }
template { display: none; }
[hidden] { display: none; }


/* ==========================================================================
   2. VARIABLES Y BASE
   ========================================================================== */

:root {
    --main-bg-color: #75dab4;
    --segundo-bg-color: #f9e4a3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

::selection {
    background-color: #74dab4;
    color: #000;
}

html { scroll-behavior: smooth; }

body {
    font-weight: 400;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    line-height: 1.8em;
}

main {
    display: grid;
    grid-template-areas: "section" "header" "dos" "proyectos" "faq" "resenas" "footer-uno" "footer-dos";
    grid-template-rows: auto;
    grid-template-columns: minmax(0, 1fr);   /* nada puede ensanchar la página: sin scroll lateral */
    overflow-x: clip;
}

li { list-style: none; }

.desborde { overflow-y: hidden !important; }


/* ==========================================================================
   3. TIPOGRAFÍA
   ========================================================================== */

mark {
    text-decoration: none;
    background: repeating-linear-gradient(to bottom,
        transparent, transparent 50%,
        var(--segundo-bg-color) 50%, var(--segundo-bg-color) 85%,
        transparent 85%);
}

strong { font-weight: 500; }

.contacto-titulo {
    font-weight: 500;
    margin-top: 50px;
    line-height: 1.2em;
    color: #000;
}

h1 {
    font-size: clamp(2.8rem, 4.8vw, 7.4em);
    font-weight: 500;
}

h2 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    text-shadow: 0 8px rgb(0 0 0 / 5%);
    margin-bottom: 20px;
    color: #0c0f16;
    font-size: 40px;
}

h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #0c0f16;
}

h4 {
    font-weight: 400;
    line-height: 1.5;
    color: #0c0f16;
    font-size: 18px;
}

#color {
    color: var(--main-bg-color);
    -webkit-text-fill-color: var(--main-bg-color);
}


/* ==========================================================================
   4. HEADER Y NAVEGACIÓN
   ========================================================================== */

header {
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 199;
    grid-area: header;
    position: fixed;
    background-color: #fff;
}

header .logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 300;
    font-size: 25px;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-decoration: none;
    opacity: 0;
    animation: slide_left .5s linear forwards;
    animation-delay: .2s;
    color: var(--main-bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo: el SVG (1000x500) tiene mucho aire alrededor del dibujo.
   --logo-w es el ancho del SVG; la altura y los márgenes negativos
   recortan ese aire para que el logo quede alineado y el header no crezca. */
.logo img {
    --logo-w: 170px;                          /* móvil */
    display: block;
    width: var(--logo-w);
    height: calc(var(--logo-w) * .28);
    object-fit: cover;
    object-position: center;
    margin: 0 calc(var(--logo-w) * -.12);
}

@media (min-width: 600px) {                   /* móvil grande / tablet */
    .logo img { --logo-w: 190px; }
}

@media (min-width: 992px) {                   /* portátil pequeño: menú en línea */
    .logo img { --logo-w: 200px; }
    header { padding: 10px 30px; }
    header ul li a { padding: 13px 16px; }
}

@media (min-width: 1280px) {                  /* escritorio */
    .logo img { --logo-w: 240px; }
    header { padding: 10px 50px; }
    header ul li a { padding: 13px 30px; }
}

@media (min-width: 1600px) {                  /* pantallas grandes */
    .logo img { --logo-w: 260px; }
}

header .logo span {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 300;
    font-size: 25px;
    text-transform: uppercase;
    letter-spacing: 4px;
    display: inline-block;
    text-decoration: none;
    opacity: 0;
    animation: slide_left .5s linear forwards;
    animation-delay: .2s;
    color: #1f1f1f;
}

header ul {
    position: relative;
    display: flex;
}

header ul li { list-style: none; }

header ul li a {
    display: inline-block;
    font-size: 1.1em;
    margin-left: 10px;
    padding: 13px 30px;
    text-decoration: none;
    user-select: none;
    opacity: 0;
    animation: slide_top .5s linear forwards;
    animation-delay: calc(.2s * var(--i));
    color: #1f1f1f;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

header ul li a.active,
header ul li a:hover { color: var(--main-bg-color); }

#contacto:hover { color: #fff; }


/* ==========================================================================
   5. HERO (INICIO)
   ========================================================================== */

section {
    grid-area: section;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    overflow: hidden;
    text-align: start;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
}

section h2 {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    text-shadow: none;
    margin-bottom: 0;
    text-align: start;
    font-size: 25px;
    width: 100%;
}

section mark {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    text-shadow: none;
    margin-bottom: 0;
    text-align: start;
    width: 100%;
}

section::-webkit-scrollbar { display: none; }

.contenido {
    height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 100px;
}

.contenido_texto {
    height: 100%;
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 5%;
    color: #000;
}

.contenido h4 {
    width: 100%;
    color: #fff;
}

.contenido h1 {
    opacity: 0;
    animation: slide_right .5s linear forwards;
    animation-delay: 1.5s;
    width: 100%;
    display: inline;
    padding: 0;
    -webkit-text-fill-color: transparent;
    background-size: 100% 80%;
    -webkit-text-stroke-width: .02em;
    font-weight: 600;
    line-height: 90px;
}

.contenido p {
    margin: 0 auto;
    margin-right: 0;
    font-size: 15px;
    font-weight: 400;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 30px;
}


/* ==========================================================================
   6. SECCIÓN "¿QUÉ OFREZCO?" / SERVICIOS
   ========================================================================== */

.about {
    margin: 50px auto;
    width: 70%;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
}

.about-uno { width: 50%; }

.about-uno h4 {
    margin-bottom: 0;
    padding-left: 30px;
}

.about-uno h3 { margin-bottom: 10px; }

.about-uno p {
    width: 100%;
    text-align: left;
    margin: 0 auto;
    margin-top: 4px;
    line-height: 2;
    padding: 25px 30px;
    font-size: 15px;
    font-weight: 300;
}

.about-dos {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagen-about {
    height: 300px;
    width: 270px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 30px 30px;
}

.imagen-about img {
    margin-top: 50px;
    height: 400px;
    width: 400px;
}

.circulitos {
    margin-left: 30px;
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    text-align: left;
    margin-bottom: 20px;
}

.circulitos h3 {
    display: flex;
    justify-content: left;
    margin-bottom: 20px !important;
    font-size: 18px !important;
}

/* Puntitos decorativos junto a "SOBRE MÍ" */
.dos-box span {
    position: absolute;
    left: 0;
    bottom: 0;
}

.dos-box h3 {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    margin-bottom: 20px;
    color: #0c0f16;
    font-size: 25px;
    margin-top: 20px;
    margin-left: 20px;
}

.dos-box span::before {
    content: '';
    display: inline-block;
    border-radius: 50%;
    width: 4px;
    height: 4px;
    background: var(--main-bg-color);
    position: absolute;
    left: 6px;
    bottom: 0;
}

.dos-box span:first-of-type::before { bottom: 6px; }
.dos-box span:last-of-type::before  { left: 0; }

.dos {
    grid-area: dos;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    background-color: #fff;
    margin-bottom: 50px;
}

.dos h2 {
    width: 100%;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    margin-top: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 300;
    font-size: 24px;
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.about-tres {
    margin-top: 150px;
    margin-bottom: 100px;
}

.about-tres p {
    padding: 25px 30px;
    margin: 0 auto;
    text-align: left;
    font-size: 15px;
    font-weight: 300;
    line-height: 2;
    width: 50vw;
}

.about-tres ul {
    margin-bottom: 90px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.about-tres li {
    list-style: circle;
    font-size: 15px;
    width: 100%;
}

.servicios2 {
    padding: 0;
    margin: 25px auto 40px;
    text-align: start;
    width: 25%;
    height: 100%;
    font-weight: 700;
    list-style: square;
}

.servicios2 h3,
.servicios2 h4 {
    font-weight: 500;
    line-height: 30px;
    letter-spacing: 2px;
    width: 100%;
    font-size: 15px;
    color: #74dac0;
}

.about-tres-icono {
    height: 100px;
    margin-top: 90px;
}

.about-tres-icono img { height: 100px; }

/* Listas de servicios: líneas finas, sin numeración */
.about-tres .servicios2 {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    list-style: none;
}

.about-tres .servicios2 li {
    width: auto;
    padding: 12px 0;
    list-style: none;
    border-top: 1px solid #e8e8e8;
    transition: border-color .3s ease;
}

/* Los servicios son <h3>: se anula el estilo general de los h3 de esta sección */
.about-tres .servicios2 h3,
.about-tres .servicios2 h4 {
    width: auto;
    margin: 0;
    padding: 0;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .5px;
    line-height: 1.5;
    text-transform: none;
    text-shadow: none;
    color: #0c0f16;
}

@media (hover: hover) {
    .about-tres .servicios2 li:hover { border-color: var(--main-bg-color); }
}

/* Servicios en rejilla: 3 por fila en escritorio, 2 en tablet, 1 en móvil.
   subgrid alinea iconos, títulos, textos y listas entre columnas. */
.about-tres {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    width: 96%;                   /* casi todo el ancho de la pantalla */
    max-width: none;
    margin: 140px auto 60px;
    text-align: left;
}

.about-tres .servicio {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-content: start;
    margin-bottom: 24px;
    padding: 44px 40px 36px;
    background: #fff;
    border: 1px solid #e8e8e8;    /* el mismo gris de las líneas de la web */
    border-radius: 20px;
    transition: border-color .3s ease;
}

@media (hover: hover) {
    .about-tres .servicio:hover { border-color: #d6d6d6; }
}

.about-tres .servicio .about-tres-icono {
    height: auto;
    margin: 0 0 22px;
}

.about-tres .servicio .about-tres-icono img {
    display: block;
    height: 72px;
    width: auto;
}

.dos .about-tres .servicio h2 {
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    text-align: left;
    font-size: 22px;
    letter-spacing: 3px;
    line-height: 1.3;
}

.about-tres .servicio p {
    width: auto;
    margin: 0 0 26px;
    padding: 0;
    font-size: 15px;
    line-height: 1.85;
}

.about-tres .servicio .servicios2 {
    grid-template-columns: 1fr;
    align-self: start;
    width: auto;
    margin: 0;
    padding: 0;
}

@media (max-width: 1099px) {
    .about-tres { grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
    .about-tres .servicio { margin-bottom: 20px; padding: 36px 30px 28px; }
}

@media (max-width: 680px) {
    .about-tres {
        grid-template-columns: 1fr;
        width: 92%;
        margin-top: 90px;
    }

    .about-tres .servicio { margin-bottom: 16px; padding: 30px 24px 22px; border-radius: 18px; }
}

/* Móvil y tablet: la foto de "Sobre mí" ocupa el sitio que mide
   (antes se salía de su caja y se montaba sobre los servicios) */
@media (max-width: 900px) {
    .about-dos .imagen-about {
        width: 100%;
        height: auto;
        margin: 36px 0 0;
    }

    .about-dos .imagen-about img {
        display: block;
        width: min(340px, 85%);
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        margin: 0 auto;
    }

    .about { margin-bottom: 0; }

    .about-tres { margin-top: 70px; }
}

.caja_imagen_2 {
    width: 100%;
    height: 100%;
    margin-bottom: 30px;
}

.caja_imagen_2 img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
}


/* ==========================================================================
   7. PROYECTOS (TARJETAS FLIP)
   ========================================================================== */

.proyectos {
    width: 100%;
    grid-area: proyectos;
    background-color: #f7f7f7;
    padding-top: 100px;
    padding-bottom: 100px;
}

.proyectos h3 {
    margin: 40px auto;
    text-align: center;
    padding: 5px;
    width: 100%;
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    text-shadow: 0 8px rgb(0 0 0 / 5%);
}

.grid-container {
    display: grid;
    width: 80%;
    margin: 80px auto;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1127px;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 300px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform .7s cubic-bezier(.4, .2, .2, 1), box-shadow .7s ease;
    transform-style: preserve-3d;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06);
    border-radius: 14px;
}

/* Gira con ratón y también al llegar con el tabulador (accesibilidad) */
.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
    transform: rotateY(180deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .06), 0 18px 40px rgba(0, 0, 0, .10);
}

.flip-card-back,
.flip-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 14px;
}

.flip-card-front {
    color: #1d1e22;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

/* Ningún logo se dispara de alto: todos se ven equilibrados */
.flip-card-front img {
    max-height: 130px;
    max-width: 80%;
    object-fit: contain;
}


.flip-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding-bottom: 10%;
}

.flip-card-back h3 {
    width: 100%;
    padding: 5px;
    text-align: center;
    text-transform: uppercase;
    font-size: 28px;
    font-weight: 700;
}

.flip-card-back h4 {
    /* Nombre del cliente: ahora es <h4>, mismo aspecto que tenía como <h3> */
    width: 100%;
    margin: 40px auto;
    padding: 5px;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 27px;
    color: #0c0f16;
    text-shadow: 0 8px rgb(0 0 0 / 5%);
}

.flip-card-back p { width: 100%; }

.flip-card-back a {
    background-color: var(--main-bg-color);
    color: #fff;
    font-weight: 400;
    font-size: 1em;
    padding: 3px 20px;
    user-select: none;
    margin: 10% auto 20px;
    border-radius: 30px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background-color .3s ease;
}

.flip-card-back a:hover,
.flip-card-back a:focus-visible { background-color: #1a1a1a; color: var(--main-bg-color); outline: none; }


/* Personas con "reducir movimiento" activado: sin giro 3D, cambio suave */
@media (prefers-reduced-motion: reduce) {
    .flip-card-inner { transition: none; }
}

/* ==========================================================================
   8. FOOTER Y CONTACTO
   ========================================================================== */

.footer-uno {
    grid-area: footer-uno;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 50px;
    width: 100%;
}

.footer-uno h2 {
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    margin-top: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 300;
    font-size: 24px;
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-uno h2 a {
    text-decoration: none;
    color: #000;
}

.footer-uno h4 {
    margin: 40px auto;
    text-align: center;
    padding: 20px;
    width: 100%;
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    text-shadow: 0 8px rgb(0 0 0 / 5%);
}

.footer-uno span {
    padding: 10px 0;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
    font-weight: 500;
    font-size: 36px;
}

#email,
#telefono,
#direccion {
    font-size: 18px;
    font-weight: 400;
}

#email a {
    text-decoration: none;
    color: var(--main-bg-color);
}

#telefono a,
#direccion a {
    text-decoration: none;
    color: #000;
}

.redes_sociales_abajo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.redes_sociales_abajo li { list-style: none; }

.redes_sociales_abajo li a {
    overflow: hidden;
    position: relative;
    margin-right: 15px;
    margin-top: 15px;
    width: 50px;
    height: 50px;
    background: var(--main-bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.redes_sociales_abajo li a img { transform: scale(.2); }

.redes_sociales_abajo li a:hover { transform: translateY(-10px) !important; }

.footer-dos {
    grid-area: footer-dos;
    background-color: #13161d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-top: 1px solid #fff;
    width: 100%;
    height: 120px;
    padding: 40px 15px;
}

.footer-dos span {
    font-weight: 500;
    margin-top: 15px;
    margin-bottom: 15px;
    color: #999;
    font-family: Poppins, sans-serif;
    font-size: 12px;
}

.footer-dos a {
    text-decoration: none;
    color: #fff;
}


/* ==========================================================================
   9. BOTONES CTA
   ========================================================================== */

.cta_arriba {
    width: 100%;
    opacity: 0;
    animation: slide_left .5s linear forwards;
    animation-delay: 1.75s;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 3;
}

.cta_arriba a {
    display: flex;
    position: relative;
    z-index: 3;
    padding: 12px 35px;
    margin: 0 auto 50px 2px;
    border-radius: .25rem;
    border: 1px solid #595959;
    background: #000;
    color: var(--main-bg-color);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    user-select: none;
    opacity: 1;
    overflow-x: hidden !important;
    transition: all .8s;
    transform: translate(-.3rem, -.3rem);
    box-shadow: .3rem .3rem 0 var(--main-bg-color);
}

.cta_arriba a:hover,
.cta_abajo a:hover {
    transform: translate(0, 0);
    box-shadow: 0 0 0 var(--main-bg-color);
    color: var(--main-bg-color);
}


/* ==========================================================================
   10. AVISO DE COOKIES
   ========================================================================== */

.aviso-cookies {
    display: none;
    background: #fff;
    padding: 20px;
    width: calc(100% - 40px);
    max-width: 300px;
    line-height: 150%;
    border-radius: 10px;
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 99999;
    box-shadow: 0 2px 20px 10px rgba(222, 222, 222, .25);
    text-align: center;
}

.aviso-cookies.activo { display: block; }

.aviso-cookies .galleta {
    max-width: 100px;
    position: absolute;
    top: -50px;
    left: calc(50% - 50px);
}

.aviso-cookies,
.aviso-cookies .parrafo { margin-bottom: 15px; }

.aviso-cookies .boton {
    width: 100%;
    background: #595959;
    border: none;
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s ease all;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.aviso-cookies .boton:hover { background: var(--main-bg-color); }

.boton-peque {
    width: calc(50% - .8em);
    margin: 0;
    color: #7a7a7a;
    background-color: #f1f1f1;
    border: 2px solid #f1f1f1;
    border-radius: 5px;
    padding: .4em .8em;
    font-size: .9em;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.boton-peque:hover {
    background-color: #fff;
    text-decoration: underline;
}

#btn-descartar-cookies    { float: left; }
#btn-preferencias-cookies { float: right; }

.aviso-cookies .enlace {
    color: var(--main-bg-color);
    text-decoration: none;
    font-size: 14px;
}

.aviso-cookies .enlace:hover { text-decoration: underline; }


/* ==========================================================================
   11. BURBUJAS ANIMADAS (inicio)
   ========================================================================== */

.burbuja {
    border-radius: 50%;
    background: var(--main-bg-color);
    opacity: .3;
    position: absolute;
    animation: burbujas 3s linear infinite;
}

.burbuja:nth-child(1)  { width: 80px;  height: 80px;  left: 5%;  animation-duration: 3s;   animation-delay: 3s; }
.burbuja:nth-child(2)  { width: 100px; height: 100px; left: 5%;  animation-duration: 3s;   animation-delay: 5s; }
.burbuja:nth-child(3)  { width: 20px;  height: 20px;  left: 15%; animation-duration: 1.5s; animation-delay: 7s; background: var(--segundo-bg-color); }
.burbuja:nth-child(5)  { width: 70px;  height: 70px;  left: 65%; animation-duration: 3s;   animation-delay: 1s; background: var(--segundo-bg-color); }
.burbuja:nth-child(6),
.burbuja:nth-child(7)  { width: 20px;  height: 20px;  left: 50%; animation-duration: 4s;   animation-delay: 5s; }
.burbuja:nth-child(8)  {               height: 100px; left: 52%; animation-duration: 5s;   animation-delay: 5s; }
.burbuja:nth-child(9)  { width: 65px;  height: 65px;  left: 51%; animation-duration: 3s;   animation-delay: 2s; }
.burbuja:nth-child(10) { width: 40px;  height: 40px;  left: 35%; animation-duration: 3s;   animation-delay: 4s; }


/* ==========================================================================
   12. HERO DE LANDING (.contenedor — consultor-seo-donostia.php)
   ========================================================================== */

.contenedor {
    display: flex;
    width: 90%;
    max-width: 100%;
    height: 80vh;
    margin: auto;
    background-image: url(/servicio-seo-donostia.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left;
}

.contenedor .wrap {
    max-width: 1000px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: left;
}

.contenedor .wrap .box {
    flex-basis: 50%;
    color: #fff;
    text-align: left;
    align-self: center;
}

.contenedor .wrap .box span {
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 300;
}

.contenedor .wrap .box h1 {
    font-size: 32px;
    line-height: .9;
    padding-bottom: 10px;
}

.contenedor .wrap .box p {
    font-size: 15px;
    line-height: 1.2;
}

.contenedor .wrap .box .botones {
    display: flex;
    margin-top: 30px;
    flex-flow: row wrap;
}

.contenedor .wrap .box .botones .btn1,
.contenedor .wrap .box .botones .btn2 {
    flex-basis: 30%;
    border: solid 2px;
    border-radius: 20px;
    padding: 10px 30px;
    text-align: center;
    text-decoration: none;
}

.contenedor .wrap .box .botones .btn1 {
    margin-right: 20px;
    color: #fff;
}

.contenedor .wrap .box .botones .btn2 {
    background-color: #fff;
    color: #000;
}


/* ==========================================================================
   13. ANIMACIONES
   ========================================================================== */

@keyframes slide_left {
    0%   { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0);      opacity: 1; }
}

@keyframes slide_top {
    0%   { transform: translateY(100px); opacity: 0; }
    100% { transform: translateY(0);     opacity: 1; }
}

@keyframes slide_right {
    0%   { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0);     opacity: 1; }
}

@keyframes burbujas {
    0%   { bottom: 0;    opacity: 0; }
    30%  { transform: translateX(30px); }
    50%  { opacity: .4; }
    100% { bottom: 100%; opacity: 0; }
}


/* ==========================================================================
   14. RESPONSIVE GENERAL
   (el orden de estos bloques respeta el orden original)
   ========================================================================== */

@media (min-width: 600px) {
    .grid-container {
        width: 70%;
        margin: 50px auto;
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1316px) {
    .contenido_texto { width: 90%; }
}

@media (max-width: 900px) {
    .imagen-about img { margin-top: 150px; }

    .circulitos { margin-left: 0; }

    section h2 { font-size: 20px; }

    .contenido { margin-top: 50px; }

    .contenido h1 {
        color: #000;
        font-weight: 700;
        line-height: 50px;
        margin-bottom: 35px;
    }

    .contenido_texto {
        margin-top: 20px;
        width: 95%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .contenido p { text-align: left; }

    .about { width: 85%; }

    .about-uno,
    .about-dos { width: 100%; }

    .about-uno h4 {
        margin-bottom: 30px;
        padding-left: 0;
    }

    .about-uno p { padding: 0; }

    .about-tres p {
        padding: 0;
        margin: 20px auto;
        width: 80%;
    }

    .about-tres-icono { margin-top: 100px; }

    .proyectos { padding-top: 0; }

    .footer-uno h4 {
        margin-bottom: 20px;
        color: #0c0f16;
    }
}

/* Botón inferior "Agendar reunión" */
.cta_abajo {
    width: 100%;
    opacity: 0;
    animation: slide_left .5s linear forwards;
    animation-delay: 1.75s;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 3;
}

.cta_abajo a {
    display: flex;
    z-index: 3;
    padding: 12px 35px;
    margin: 40px auto 60px;
    border-radius: 30px;
    border: 1px solid #595959;
    background: #000;
    color: var(--main-bg-color);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    user-select: none;
    opacity: 1;
    overflow-x: hidden !important;
    transition: all .8s;
    transform: translate(-.3rem, -.3rem);
    box-shadow: .3rem .3rem 0 var(--main-bg-color);
}

@media (min-width: 1000px) {
    * { overflow-x: visible; }

    .redes_sociales_abajo li a,
    section { overflow: visible; }

    .desborde { overflow-y: visible !important; }

    .btn-neon {
        position: relative;
        display: inline-block;
        padding: 13px 30px;
        text-decoration: none;
        overflow: hidden;
        transition: .2s;
        transition-delay: .3s;
        border-radius: 40px;
        background: #000;
        border: 1px solid #595959;
        color: var(--main-bg-color);
        transform: translate(-.3rem, -.3rem);
        box-shadow: .3rem .3rem 0 var(--main-bg-color);
    }

    .grid-container {
        width: 70%;
        margin: 50px auto;
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .card .imagen:hover { cursor: pointer; }

    .desborde { overflow-y: hidden; }

    header { padding: 10px; }

    .navegacion { display: none; }

    .navegacion.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    header ul li {
        margin: 10px 0;
        overflow: hidden;
    }

    header ul li a {
        margin-left: 0;
        font-size: 1.5em;
    }

    /* Botón hamburguesa */
    .toggle {
        position: relative;
        top: 0;
        right: 0;
        width: 70px;
        height: 45px;
        background: #fff;
        border-radius: 2px;
        z-index: 3000;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .toggle.active {
        background-size: 25px;
        background-repeat: no-repeat;
        background-position: center;
    }

    .toggle span {
        position: absolute;
        width: 40px;
        height: 2px;
        background: #1f1f1f;
        border-radius: 4px;
        transition: .5s;
    }

    .toggle span:nth-child(1) {
        transform: translateY(-15px);
        width: 25px;
        left: 15px;
    }

    .toggle.active span:nth-child(1) {
        width: 40px;
        transform: translateY(0) rotate(45deg);
        transition-delay: 125ms;
    }

    .toggle span:nth-child(2) {
        transform: translateY(15px);
        width: 15px;
        left: 15px;
    }

    .toggle.active span:nth-child(2) {
        width: 40px;
        transform: translateY(0) rotate(315deg);
        transition-delay: .25s;
    }

    .toggle.active span:nth-child(3) { transform: translateX(100px); }

    .servicios2 { width: 70%; }
}


/* ==========================================================================
   15. PÁGINA SEO (seo.php) — clases de utilidad y secciones
   ========================================================================== */

/* Anchos */
.wd-50  { width: 50%; }
.wd-70  { width: 70%; }
.wd-80  { width: 80%; }
.wd-90  { width: 90%; }
.wd-100 { width: 100%; }

@media (max-width: 1200px) {
    .wd-t-70  { width: 70%; }
    .wd-t-80  { width: 80%; }
    .wd-t-90  { width: 90%; }
    .wd-t-100 { width: 100%; }
}

@media (max-width: 600px) {
    .wd-m-70  { width: 70%; }
    .wd-m-80  { width: 80%; }
    .wd-m-90  { width: 90%; }
    .wd-m-100 { width: 100%; }
}

/* Alineación */
.txt-centrar { text-align: center; }
.txt-right   { text-align: right; }

@media (max-width: 600px) {
    .txt-m-centrar { text-align: center; }
    .txt-m-right   { text-align: right; }
}

/* Márgenes / espaciados */
.mxauto       { margin: 0 auto; }
.blanco-color { color: #fff; }
.py3          { padding-top: 3rem; padding-bottom: 3rem; }

@media (max-width: 600px) {
    .py-m-3 { padding-top: 3rem; padding-bottom: 3rem; }
}

.pb4 { padding-bottom: 4rem; }
.py6 { padding-top: 6rem; padding-bottom: 6rem; }
.pt2 { padding-top: 2rem; }
.pb2 { padding-bottom: 2rem; }
.py2 { padding-top: 2rem; padding-bottom: 2rem; }

/* Layout */
.container-seo {
    display: grid;
    grid-template-areas: "seo-head" "seo-section01" "seo-section02" "seo-section03" "footer-uno" "footer-dos";
    grid-template-rows: auto;
}

.seo-head {
    height: 100vh;
    width: 100%;
    grid-area: seo-head;
    background-image: url(../img/servicio-seo-donostia.jpg);
    position: relative;
}

.seo-head-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    z-index: 10;
}

.seo-head-content h1 {
    opacity: 0;
    animation: slide_right .5s linear forwards;
    animation-delay: 1.5s;
    width: 100%;
    padding-bottom: 20px;
    color: inherit;
    -webkit-text-stroke-color: inherit;
    -webkit-text-fill-color: transparent;
    background-size: 100% 80%;
    -webkit-text-stroke-width: .02em;
    font-weight: 600;
    line-height: 75px;
    text-align: center;
}

.seo-head-content h2 {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    text-shadow: none;
    margin-bottom: 0;
    text-align: center;
    font-size: 25px;
    width: 100%;
    color: #fff;
}

.gradiant {
    background: linear-gradient(0, rgb(58 51 51) 0%, rgba(0, 212, 255, 0) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 550px;
    z-index: 0;
}

.seo-section01 {
    grid-area: seo-section01;
    padding: 6rem 0;
}

.seo-section02 {
    background-color: var(--main-bg-color);
    grid-area: seo-section02;
    padding: 6rem 0;
}

.seo-section03 {
    grid-area: seo-section03;
    border-bottom: 1px solid #e8e8e8;
    padding: 6rem 0;
}

.seo-section03 .content {
    display: flex;
    flex-direction: column;
}

.seo-section03 .uno-span {
    padding-bottom: 30px;
    color: inherit;
    -webkit-text-stroke-color: #000;
    -webkit-text-fill-color: transparent;
    background-size: 100% 80%;
    -webkit-text-stroke-width: .02em;
    font-weight: 600;
    font-size: clamp(2.8rem, 3.8vw, 7.4rem);
}

.seo-section03 .dos-span {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    text-shadow: 0 8px rgb(0 0 0 / 5%);
    margin-bottom: 20px;
    color: #0c0f16;
    font-size: 25px;
}

@media (max-width: 600px) {
    .seo-section03 .dos-span { font-size: 20px; }
}

.seo-section03 .numero {
    margin-bottom: 90px;
    color: #000;
    text-shadow: 0 8px rgb(0 0 0 / 5%);
    font-weight: 600;
    font-size: clamp(2.8rem, 3.8vw, 7.4rem);
    border-bottom: 2px solid #e8e8e8;
}

.seo-section03 h3 {
    margin-top: 30px;
    font-size: 25px;
}

.no-borde { -webkit-text-stroke-color: transparent !important; }

.grid-container2 {
    display: grid;
    margin: 30px auto;
    gap: 20px;
}

.flexi {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.col-4 { width: 33.3333333333%; }

@media (max-width: 1200px) {
    .col-t-12 { width: 100%; }
}

@media (min-width: 600px) {
    .grid-container2 {
        margin: 25px auto;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}


/* ==========================================================================
   16. PÁGINAS LEGALES + CONTACTO
   Solo se aplica a <body class="pagina-legal"> y <body class="pagina-contacto">
   (antes: estilos_al.css)
   ========================================================================== */

:where(.pagina-legal, .pagina-contacto, body:has(.aviso-legal), body:has(.formulario)) strong { font-weight: 700; }

:where(.pagina-legal, .pagina-contacto, body:has(.aviso-legal), body:has(.formulario)) a {
    text-decoration: none;
    color: #74dab4;
    font-weight: 400;
}

:where(.pagina-legal, .pagina-contacto, body:has(.aviso-legal), body:has(.formulario)) h1 {
    font-size: clamp(2.2rem, 4.8vw, 5.4em);
    font-weight: 500;
    margin-top: 50px;
    line-height: 1.2em;
}

:where(.pagina-legal, .pagina-contacto, body:has(.aviso-legal), body:has(.formulario)) h2,
:where(.pagina-legal, .pagina-contacto, body:has(.aviso-legal), body:has(.formulario)) h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #0c0f16;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 18px;
    padding: 15px 5px;
}

/* Las páginas legales nunca tuvieron la sombra de los h2 de estilos.css */
:where(.pagina-legal, body:has(.aviso-legal)) h2 { text-shadow: none; }

:where(.pagina-legal, .pagina-contacto, body:has(.aviso-legal), body:has(.formulario)) h4 {
    font-weight: 600;
    line-height: 1.5;
    color: #0c0f16;
    font-size: 18px;
}

:where(.pagina-legal, .pagina-contacto, body:has(.aviso-legal), body:has(.formulario)) header { padding: 4px 50px; }

/* Contenido de textos legales */
.aviso-legal {
    padding: 5%;
    width: 100%;
}

.aviso-legal p {
    display: block;
    width: 100%;
    margin: 4px auto 0;
    padding: 25px 5px;
    font-size: 15px;
    font-weight: 300;
    line-height: 2;
    letter-spacing: .12rem;
    text-align: justify;
}

.logos-abajo ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 30px;
    margin-bottom: 0;
}

@media (max-width: 985px) {
    .aviso-legal p { text-align: left; }
    .aviso-legal   { overflow: hidden; }
}

@media (max-width: 991px) {
    :where(.pagina-legal, .pagina-contacto, body:has(.aviso-legal), body:has(.formulario)) header { padding: 10px; }
    :where(.pagina-legal, .pagina-contacto, body:has(.aviso-legal), body:has(.formulario)) .servicios2 { width: 60%; }
}

@media (min-width: 1000px) {
    :where(.pagina-legal, .pagina-contacto, body:has(.aviso-legal), body:has(.formulario)) .menu a:hover { color: #fff; }
}


/* ==========================================================================
   17. SOLO CONTACTO
   Solo se aplica a <body class="pagina-contacto">  (antes: contacto.css)
   ========================================================================== */

:where(.pagina-contacto, body:has(.formulario))::selection,
:where(.pagina-contacto, body:has(.formulario)) ::selection {
    color: #fff;
    background: #75dab4;
}

:where(.pagina-contacto, body:has(.formulario)) main {
    grid-template-areas: "header" "formulario" "footer-uno" "footer-dos";
}

.formulario {
    grid-area: formulario;
    height: auto;
    margin: 60px auto;
    width: 60%;
    max-width: 700px;
}

.presupuesto { padding-top: 10%; }

:where(.pagina-contacto, body:has(.formulario)) .footer-uno h4 { margin-bottom: 40px; }

:where(.pagina-contacto, body:has(.formulario)) .redes_sociales_abajo li a { overflow: hidden; }

/* Formulario */
.wrapper {
    width: auto;
    background: #f7f7f7;
    border-radius: 5px;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, .05);
    padding: 5px;
    margin-top: 70px;
}

.wrapper .header {
    font-size: 22px;
    font-weight: 600;
    padding: 20px 30px;
    border-bottom: 1px solid #ccc;
}

.wrapper form { margin: 35px 30px; }

.wrapper form.disabled {
    pointer-events: none;
    opacity: .7;
}

form .dbl-field {
    display: flex;
    margin-bottom: 25px;
    justify-content: space-between;
}

.dbl-field .field {
    height: 50px;
    display: flex;
    position: relative;
    width: calc(100% / 2 - 13px);
}

.wrapper form i {
    position: absolute;
    top: 50%;
    left: 18px;
    color: #ccc;
    font-size: 17px;
    pointer-events: none;
    transform: translateY(-50%);
}

form .field input,
form .message textarea {
    width: 100%;
    height: 100%;
    outline: none;
    padding: 0 18px 0 48px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.field input::placeholder,
.message textarea::placeholder { color: #ccc; }

.field input:focus,
.message textarea:focus {
    padding-left: 47px;
    border: 2px solid #75dab4;
}

.field input:focus ~ i,
.message textarea:focus ~ i { color: #75dab4; }

form .message { position: relative; }

form .message i {
    top: 30px;
    font-size: 20px;
}

form .message textarea {
    min-height: 130px;
    max-height: 230px;
    max-width: 100%;
    min-width: 100%;
    padding: 15px 20px 0 48px;
}

form .message textarea::-webkit-scrollbar { width: 0; }

.message textarea:focus { padding-top: 14px; }

form .button-area {
    margin: 25px 0;
    display: flex;
    align-items: center;
}

.button-area button {
    position: relative;
    display: inline-block;
    padding: 13px 30px;
    text-decoration: none;
    overflow: hidden;
    transition: .2s;
    transition-delay: .3s;
    border-radius: 40px;
    background: #000;
    border: 1px solid #595959;
    color: var(--main-bg-color);
    transform: translate(-.3rem, -.3rem);
    box-shadow: .3rem .3rem 0 var(--main-bg-color);
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

.button-area button:hover {
    cursor: pointer;
    transform: translate(0, 0);
    box-shadow: 0 0 0 var(--main-bg-color);
    color: var(--main-bg-color);
}

.button-area span {
    font-size: 17px;
    margin-left: 30px;
    display: none;
}

@media (max-width: 600px) {
    .formulario { width: 90%; }

    .wrapper form { margin: 35px 20px; }

    form .dbl-field {
        flex-direction: column;
        margin-bottom: 0;
    }

    form .dbl-field .field {
        width: 100%;
        height: 45px;
        margin-bottom: 20px;
    }

    form .message textarea { resize: none; }

    form .button-area {
        margin-top: 20px;
        flex-direction: column;
    }

    .button-area button {
        width: 100%;
        padding: 11px 0;
        font-size: 16px;
    }

    .button-area span {
        margin: 20px 0 0;
        text-align: center;
    }
}


/* ==========================================================================
   18. HEADER STICKY (se oculta al hacer scroll hacia abajo)
   Antes estaba en un <style> dentro de cada página.
   ========================================================================== */

#stickyheaders { transition: transform .34s ease; }

.headerup { transform: translateY(-100%); }


/* ==========================================================================
   19. SECCIÓN "¿QUÉ OFREZCO?" — fondo, ancho y elemento gráfico de marca
   ========================================================================== */

:root {
    --borde-suave: #e3ece8;
}

.dos {
    background-color: #fff;
    margin-bottom: 0;
    padding: 110px 0 70px;
}

.dos .dos-box {
    position: relative;
    width: 96%;
    margin: 0 auto;
}

/* Título de la sección: ahora dentro de la ficha de "Sobre mí", arriba y a todo el ancho */
.dos .dos-box > h3,
.dos .dos-box .about > h3 {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    margin: 0 0 40px;
    font-size: 40px;               /* igual que "Proyectos" y "Contacta conmigo" */
    font-weight: 700;
    letter-spacing: 4px;
    text-shadow: 0 8px rgb(0 0 0 / 5%);
}


/* "Sobre mí" en su contenedor */
.dos-box .about {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 640px) minmax(0, 460px);
    justify-content: center;       /* texto y foto juntos, centrados en la ficha */
    align-items: center;
    column-gap: 64px;
    row-gap: 0;
    width: 100%;
    margin: 0 0 24px;
    padding: 64px 72px;
    background: #fff;
    border: 1px solid var(--borde-suave);
    border-radius: 20px;
    overflow: hidden;
}

.dos-box .about .about-uno,
.dos-box .about .about-dos {
    width: auto;
    position: relative;
    z-index: 1;
}

.dos-box .about .circulitos { margin-left: 0; }
.dos-box .about .about-uno h4 { padding-left: 0; font-size: 24px; font-weight: 500; }
.dos-box .about .about-uno p { padding: 20px 0 0; margin: 4px 0 0; max-width: 620px; }

.dos-box .about .imagen-about {
    width: auto;
    height: auto;
    margin: 0;
}

.dos-box .about .imagen-about img {
    display: block;
    width: 100%;                   /* hasta 460px en escritorio */
    max-width: 460px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0;
}


/* Servicios: ocupan el mismo ancho que "Sobre mí" */
.dos-box .about-tres {
    width: 100%;
    margin: 0;
}

.dos-box .about-tres .servicio { border-color: var(--borde-suave); }

@media (hover: hover) {
    .dos-box .about-tres .servicio:hover { border-color: #c9ddd5; }
}

@media (max-width: 1099px) {
    .dos-box .about { padding: 48px 44px; column-gap: 36px; row-gap: 0; }
}

@media (max-width: 900px) {
    .dos { padding: 80px 0 50px; }

    .dos .dos-box > h3,
    .dos .dos-box .about > h3 { margin-bottom: 24px; }

    .dos-box .about {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 36px 26px 32px;      /* aire bajo la foto: no toca el borde */
    }

    .dos-box .about .about-uno h4 { margin-bottom: 0; font-size: 21px; }

    .dos-box .about .about-dos .imagen-about { margin: 24px 0 0; width: 100%; }

    .dos-box .about .about-dos .imagen-about img {
        width: 100%;                  /* todo el ancho de la ficha */
        max-width: 460px;             /* nunca más grande que en escritorio */
        margin: 0 auto;
    }


    .dos-box .about-tres { width: 100%; margin-top: 0; }
}


/* ==========================================================================
   20. BOTONES PRINCIPALES IGUALES: "Pedir presupuesto" y "Agendar reunión"
   Forma de píldora y 46px de alto (cómodo para el dedo, más proporcionado)
   ========================================================================== */

.cta_arriba a,
.cta_abajo a {
    border-radius: 30px;
    padding: 12px 35px;
    font-size: 13px;
    line-height: 20px;
}


/* ==========================================================================
   21. BOTÓN "CONTACTO" DEL MENÚ (escritorio): igual que "Pedir presupuesto"
   y "Agendar reunión" — mismo alto (46px), forma y efecto al pasar el ratón.
   Se usa la propiedad translate (y no transform) porque la animación de
   entrada del menú ocupa transform y anularía el desplazamiento.
   ========================================================================== */

@media (min-width: 992px) {
    header ul li a#contacto {
        display: inline-block;
        margin-left: 14px;
        padding: 12px 35px;
        border: 1px solid #595959;
        border-radius: 30px;
        background: #000;
        color: var(--main-bg-color);
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 2px;
        line-height: 20px;
        text-transform: uppercase;
        box-shadow: .3rem .3rem 0 var(--main-bg-color);
        translate: -.3rem -.3rem;
        transition: translate .8s, box-shadow .8s, color .8s;
        transition-delay: 0s;
    }

    header ul li a#contacto:hover,
    header ul li a#contacto:focus-visible {
        translate: 0 0;
        box-shadow: 0 0 0 var(--main-bg-color);
        color: var(--main-bg-color);
    }
}

@media (min-width: 992px) and (max-width: 1279px) {
    header ul li a#contacto { padding: 12px 24px; }
}


/* ==========================================================================
   22. TÍTULOS DE "SOBRE MÍ" Y "¿QUÉ OFREZCO?"
   ========================================================================== */

/* "¿Qué ofrezco?" encima de las 6 fichas de servicios */
.dos .dos-box > h3 {
    margin: 90px 0 40px;
}

/* Etiqueta pequeña con los 3 puntos ("Mucho más que un sitio Web") */
.dos-box .about .circulitos {
    height: auto;
    min-height: 40px;
    align-items: center;
    margin-bottom: 18px;
}

.dos-box .about .circulitos h3 {
    margin: 0 0 0 20px !important;
    line-height: 1.4;
}

/* Los 3 puntos centrados a la altura del texto */
.dos-box .about .circulitos span {
    top: calc(50% + 5px);
    bottom: auto;
}

@media (max-width: 900px) {
    .dos .dos-box > h3 { margin: 64px 0 28px; }
}


/* Móvil: la foto de "Sobre mí" casi a todo el ancho (solo 12px a cada lado
   del borde de la ficha) */
@media (max-width: 680px) {
    .dos-box .about .about-dos .imagen-about {
        width: calc(100% + 28px);
        margin: 24px -14px 0;
    }

    .dos-box .about .about-dos .imagen-about img {
        width: 100%;
        max-width: none;
        border-radius: 10px;          /* acompaña a las esquinas de la ficha */
    }

    .dos-box .about { padding-bottom: 14px; }   /* mismo margen abajo que a los lados */
}


/* ==========================================================================
   23. PREGUNTAS FRECUENTES (entre Proyectos y Contacta conmigo)
   Acordeón con <details>: funciona sin JavaScript y Google lee todo el texto.
   ========================================================================== */

.faq {
    grid-area: faq;
    min-width: 0;
    width: 100%;
    padding: 100px 0 60px;
    background: #fff;
}

/* Mismo estilo que "Sobre mí", "¿Qué ofrezco?", "Proyectos" y "Contacta conmigo" */
.faq > h3 {
    margin: 0 auto 50px;
    padding: 5px;
    width: 100%;
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 8px rgb(0 0 0 / 5%);
    color: #0c0f16;
    line-height: 1.15;             /* si salta a dos líneas en móvil, no se montan */
}

.faq-lista {
    display: grid;
    grid-template-columns: 1fr 1fr;    /* dos columnas en escritorio */
    align-items: start;
    column-gap: 56px;
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

.faq-columna { border-top: 1px solid #e8e8e8; min-width: 0; }

@media (max-width: 900px) {
    .faq-lista { grid-template-columns: 1fr; }
    .faq-columna + .faq-columna { border-top: 0; }
}

.faq-item { border-bottom: 1px solid #e8e8e8; }

.faq-item summary {
    position: relative;
    display: block;
    padding: 24px 56px 24px 0;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    color: #0c0f16;
    transition: color .3s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* Botón redondo: "+" cerrado y "−" abierto, dibujados con líneas
   para que queden perfectamente centrados en el círculo */
.faq-item summary::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    box-sizing: border-box;
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    background:
        linear-gradient(#0c0f16, #0c0f16) center / 14px 2px no-repeat,
        linear-gradient(#0c0f16, #0c0f16) center / 2px 14px no-repeat,
        #fff;
    transition: background .3s ease, border-color .3s ease;
}

.faq-item[open] summary::after {
    border-color: #000;
    background:
        linear-gradient(var(--main-bg-color), var(--main-bg-color)) center / 14px 2px no-repeat,
        #000;
}

@media (hover: hover) {
    .faq-item summary:hover { color: #2f9e78; }
    .faq-item summary:hover::after { border-color: var(--main-bg-color); }
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--main-bg-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.faq-item p {
    max-width: 760px;
    padding: 0 56px 28px 0;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.9;
    color: #0c0f16;
}

.faq-item p a {
    color: #2f9e78;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .faq { padding: 70px 0 40px; }
    .faq > h3 { margin-bottom: 32px; }
    .faq-item summary { padding: 20px 50px 20px 0; font-size: 16px; }
    .faq-item p { padding: 0 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .faq-item summary::after { transition: none; }
}


/* ==========================================================================
   24. RESEÑAS DE GOOGLE (antes de "Contacta conmigo")
   Insignia limpia: valoración, estrellas, número de reseñas y Google Maps.
   Toda la insignia lleva a las reseñas en Google.
   ========================================================================== */

.resenas {
    grid-area: resenas;
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: 70px 4% 20px;
    text-align: center;
    background: #fff;
}

.resenas > h3 {
    margin: 0 auto 32px;
    padding: 5px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 0 8px rgb(0 0 0 / 5%);
    color: #0c0f16;
}

.resenas-insignia {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    padding: 18px 30px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    background: #fff;
    color: #0c0f16;
    text-decoration: none;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

@media (hover: hover) {
    .resenas-insignia:hover {
        border-color: #d6d6d6;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
        transform: translateY(-2px);
    }
}

.resenas-insignia:focus-visible {
    outline: 2px solid var(--main-bg-color);
    outline-offset: 4px;
}

.resenas-etiqueta {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Estrellas SVG amarillas (van dentro del HTML) */
.resenas-estrellas {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 0;
}

.resenas-estrellas svg {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}

.resenas-total {
    font-size: 15px;
    font-weight: 500;
}

.resenas-logo {
    display: block;
    height: 24px;
    width: auto;
    margin-top: 2px;               /* alinea la línea base con el texto */
}

.resenas-google {
    font-size: 15px;
    font-weight: 500;
    color: #5f6368;
}

@media (max-width: 600px) {
    .resenas { padding-top: 56px; }
    .resenas-insignia { padding: 16px 20px; }
}


/* ==========================================================================
   25. "CONTACTA CONMIGO": menos espacio entre el título y el nombre
   ========================================================================== */

.footer-uno > h4 {
    margin: 30px auto 6px;
    padding: 5px 20px;
}

.footer-uno > h2 {
    padding: 6px 20px;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .footer-uno > h4 { margin-bottom: 6px; }
}


/* ==========================================================================
   26. TÍTULOS DE SECCIÓN: misma distancia al contenido en todos los títulos
   ("Sobre mí", "¿Qué ofrezco?", "Proyectos", "Preguntas frecuentes",
   "Opiniones" y "Contacta conmigo") y en todos los dispositivos
   ========================================================================== */

:root { --titulo-espacio: 36px; }

@media (max-width: 900px) {
    :root { --titulo-espacio: 26px; }
}

.dos .dos-box .about > h3,
.dos .dos-box > h3,
.proyectos > h3,
.faq > h3,
.resenas > h3,
.footer-uno > h4 {
    margin-bottom: var(--titulo-espacio);
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.15;
}

/* Lo que va justo debajo de cada título empieza sin margen extra */
.proyectos > .grid-container { margin-top: 0; }
.faq > .faq-lista { margin-top: 0; }
.dos-box .about .circulitos { min-height: 0; margin-top: 0; }
.dos-box .about .circulitos h3 { line-height: 1.2; }
.footer-uno > h2 { margin-top: 0; padding-top: 0; }


/* ==========================================================================
   27. DATOS DE CONTACTO (dirección, teléfono y email): tamaño más contenido
   ========================================================================== */

.footer-uno #direccion,
.footer-uno #telefono,
.footer-uno #email {
    font-size: 16px;
    line-height: 1.6;
    padding: 6px 0;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .footer-uno #direccion,
    .footer-uno #telefono,
    .footer-uno #email {
        font-size: 14px;
        padding: 4px 20px;
        margin-bottom: 8px;
    }
}


/* Enlaces del menú a secciones: que el título no quede tapado por el header */
#sobre-mi-,
#proyectos-,
#preguntas-frecuentes,
#resenas,
#contacto- { scroll-margin-top: 90px; }


/* Portátiles pequeños (992–1199px): menú de 6 enlaces sin salirse */
@media (min-width: 992px) and (max-width: 1199px) {
    header { padding: 10px 24px; }
    .logo img { --logo-w: 175px; }
    header ul li a { margin-left: 4px; padding: 13px 11px; font-size: 15px; }
    header ul li a#contacto { margin-left: 10px; padding: 12px 18px; }
}
