/* ==========================================================================
   Josué de los Milagros — hoja de estilos principal
   Recreación del diseño original sin WordPress.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fuentes
   -------------------------------------------------------------------------- */

@font-face {
    font-family: "Droidsans";
    src: url("../fonts/droidsans-webfont.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Variables y reset
   -------------------------------------------------------------------------- */

:root {
    --gold: #b09991;
    --gold-dark: #927e77;
    --gold-light: #c19b77;
    --ink: #111111;
    --text: #6a6a6a;
    --text-dark: #666666;
    --muted: #8a8a8a;
    --line: #d9d9d9;
    --soft: #f1f1f1;
    --white: #ffffff;
    --black: #000000;
    --teal: #4cadc9;
    --teal-dark: #338faa;
    --blue: #58b9da;
    --blue-dark: #2da4cd;
    --whatsapp: #25d366;
    --font-head: "Poppins", sans-serif;
    --font-body: "Hind", sans-serif;
    --font-eyebrow: "Droidsans", "Poppins", sans-serif;
    --container: 1140px;
    --header-height: 100px;
    --gutter: 15px;
    --ease: cubic-bezier(0.39, 0.575, 0.565, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5625;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
}

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

svg {
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s linear;
}

a:hover,
a:focus-visible {
    color: var(--gold-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

button {
    font: inherit;
}

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

::selection {
    background: var(--gold);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   3. Utilidades
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    position: relative;
    scroll-margin-top: calc(var(--header-height) + 10px);
}

.section-title {
    margin-bottom: 8px;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
}

.section-title--dark {
    color: var(--ink);
}

.section-title--light {
    color: var(--white);
}

.eyebrow {
    margin-bottom: 5px;
    color: var(--gold-light);
    font-family: var(--font-eyebrow);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.2em;
    line-height: 1.2;
    text-transform: uppercase;
}

.rich p {
    margin: 0 0 14px;
}

.rich p:last-child {
    margin-bottom: 0;
}

.rich b,
.rich strong {
    color: var(--ink);
    font-weight: 700;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 15px;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 14px;
}

.skip-link:focus {
    top: 10px;
    color: var(--ink);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    color: var(--white);
}

.social-link .icon {
    width: 18px;
    height: 18px;
}

.social-link:hover,
.social-link:focus-visible {
    color: var(--gold);
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 45px;
    padding: 0 40px;
    border: 0;
    border-radius: 0;
    background: var(--black);
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    background: var(--gold);
    color: var(--black);
}

.btn--outline {
    height: 45px;
    padding: 0 30px;
    border: 1px solid var(--white);
    background: transparent;
    color: var(--white);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background: var(--white);
    color: var(--black);
}

.btn--info {
    position: relative;
    height: 64px;
    padding: 0 66px 0 25px;
    border-radius: 5px;
    background: var(--blue);
    box-shadow: 0 5px 0 var(--blue-dark);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
}

.btn--info:hover,
.btn--info:focus-visible {
    background: #46a9c9;
    color: var(--white);
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--blue-dark);
}

.btn--info .btn__icon {
    position: absolute;
    top: 50%;
    right: 22px;
    width: 20px;
    height: 20px;
    color: var(--white);
    transform: translateY(-50%);
}

.btn--peacoc {
    height: 53px;
    padding: 0 20px;
    border-radius: 5px;
    background: var(--teal);
    box-shadow: 0 5px 0 var(--teal-dark);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
}

.btn--peacoc:hover,
.btn--peacoc:focus-visible {
    background: #4199b4;
    color: var(--white);
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--teal-dark);
}

/* --------------------------------------------------------------------------
   5. Preloader
   -------------------------------------------------------------------------- */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--white);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader__dots {
    display: flex;
    gap: 7px;
}

.preloader__dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    animation: preloader-bounce 1.2s infinite ease-in-out;
}

.preloader__dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.preloader__dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes preloader-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   6. Cabecera
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    height: var(--header-height);
    background: var(--black);
}

.header__inner {
    display: flex;
    align-items: center;
    height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.brand img {
    width: auto;
    height: 55px;
}

.nav {
    margin-left: auto;
}

.nav__list {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav__link {
    display: block;
    padding: 0 15px;
    border-radius: 5px;
    color: var(--white);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    line-height: 40px;
    white-space: nowrap;
    transition: background-color 0.2s linear, color 0.2s linear;
}

.nav__link:hover,
.nav__link:focus-visible {
    color: var(--gold);
}

.nav__link.is-active {
    background: rgba(176, 153, 145, 0.33);
    color: var(--white);
}

.header__social {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 15px;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.menu-toggle .icon {
    width: 28px;
    height: 28px;
}

/* Menú móvil */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1500;
}

.mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(340px, 86vw);
    padding: 90px 34px 40px;
    background: #0b0b0b;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
}

.mobile-menu.is-open .mobile-menu__overlay {
    opacity: 1;
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__close {
    position: absolute;
    top: 26px;
    right: 26px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.mobile-menu__close .icon {
    width: 26px;
    height: 26px;
}

.mobile-menu__list {
    list-style: none;
}

.mobile-menu__list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 500;
}

.mobile-menu__list a:hover {
    color: var(--gold);
}

.mobile-menu__social {
    display: flex;
    gap: 22px;
    margin-top: auto;
    padding-top: 40px;
}

body.menu-open {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   7. Portada / slider
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    height: calc(100svh - var(--header-height));
    min-height: 620px;
    background: var(--black);
    overflow: hidden;
}

.hero__slides,
.hero__slide {
    position: absolute;
    inset: 0;
}

.hero__slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.14);
    pointer-events: none;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero__slide.is-active .hero__media img {
    animation: kenburns 11s ease-out forwards;
}

@keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.hero__caption {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
    text-align: center;
}

.hero__title {
    margin: 0;
    color: var(--white);
    font-family: var(--font-head);
    font-size: 60px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    transform: translateY(-30px);
}

.hero__title em {
    font-style: italic;
    font-weight: 400;
}

.hero__title strong {
    font-weight: 700;
}

.hero__title--gold {
    color: #ffcc00;
}

.hero__title.has-shadow {
    text-shadow: -4px 3px 0 rgba(0, 0, 0, 0.9);
}

.hero__subtitle {
    display: block;
    font-weight: 700;
}

.hero__stars {
    width: 120px;
    height: 26px;
    margin-top: 18px;
    transform: translateY(-30px);
}

.hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    opacity: 0;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 0.25s ease, background-color 0.25s ease;
}

.hero__arrow .icon {
    width: 22px;
    height: 22px;
}

.hero__arrow:hover,
.hero__arrow:focus-visible {
    background: var(--black);
    color: var(--white);
}

.hero__arrow--prev {
    left: 35px;
}

.hero__arrow--next {
    right: 35px;
}

.hero:hover .hero__arrow,
.hero__arrow:focus-visible {
    opacity: 1;
}

.hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    z-index: 5;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateX(-50%);
    animation: scroll-bounce 2s infinite;
}

.hero__scroll img {
    width: 51px;
    height: 67px;
    opacity: 0.9;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* Animación de entrada de los textos */

.hero__slide .hero__title,
.hero__slide .hero__stars {
    opacity: 0;
}

.hero__slide.is-active .hero__title {
    animation: caption-in 0.6s 0.55s var(--ease) forwards;
}

.hero__slide.is-active .hero__stars {
    animation: caption-in 0.6s 0.75s var(--ease) forwards;
}

@keyframes caption-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-30px);
    }
}

/* --------------------------------------------------------------------------
   8. Sección "Conoce al Maestro" y "Mi Experiencia"
   -------------------------------------------------------------------------- */

.about,
.experience {
    padding: 100px 0;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
}

.about__grid > * {
    min-width: 0;
}

.about__content {
    padding: 40px 100px 40px 78px;
}

.about__title {
    margin: 0 0 30px;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
}

.about__title span,
.about__title strong {
    display: block;
}

.about__title span {
    margin-bottom: -3px;
    font-weight: 400;
}

.about__title strong {
    font-weight: 600;
}

.about__title--single {
    font-size: 42px;
}

.about__body {
    padding-left: 46px;
    border-left: 3px solid var(--gold);
    color: var(--text-dark);
    font-size: 15px;
    line-height: 25px;
}

.about__body--bordered {
    max-width: 470px;
}

.about__body b,
.about__body strong {
    color: var(--ink);
}

.about__quote {
    position: relative;
    margin: 42px 0 0;
    padding-left: 46px;
}

.about__quote-mark {
    position: absolute;
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
    color: #9a9a9a;
}

.about__quote-mark .icon {
    width: 26px;
    height: 26px;
}

.about__quote p {
    margin: 0 0 20px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
}

.about__quote p:last-child {
    margin-bottom: 0;
}

.about__quote-after {
    font-size: 15px !important;
}

.about__media {
    margin: 0;
    overflow: hidden;
}

.about__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.experience .about__media img {
    aspect-ratio: 3 / 2;
}

.about__grid--reverse .about__content {
    padding: 40px 100px 40px 78px;
}

/* La sección "Mi Experiencia" va dentro del contenedor (a diferencia de
   "Conoce al Maestro", que ocupa todo el ancho). */
.experience .about__grid {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.experience .about__media {
    padding: 0 15px;
}

.experience .about__content,
.experience .about__grid--reverse .about__content {
    padding: 40px 100px 40px 70px;
}

/* --------------------------------------------------------------------------
   9. Carrusel genérico
   -------------------------------------------------------------------------- */

.carousel {
    position: relative;
    min-width: 0;
}

.carousel__viewport {
    overflow: hidden;
    min-width: 0;
}

.carousel__track {
    display: flex;
    gap: 0;
    transition: transform 0.55s var(--ease);
    will-change: transform;
}

.carousel__track.is-animating {
    pointer-events: none;
}

.carousel__slide {
    flex: 0 0 auto;
    min-width: 0;
}

.carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.carousel__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: #e5e8ed;
    color: var(--black);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.carousel__arrow:hover,
.carousel__arrow:focus-visible {
    background: var(--gold);
    color: var(--white);
}

.carousel__arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

.carousel__arrow .icon {
    width: 20px;
    height: 20px;
}

.carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel__dot {
    width: 10px;
    height: 10px;
    margin: 0 -9px;
    padding: 0;
    border: 9px solid transparent;
    border-radius: 50%;
    background-color: #b8b8b8;
    background-clip: padding-box;
    box-sizing: content-box;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel__dot:hover {
    background-color: var(--gold);
}

.carousel__dot.is-active {
    background-color: var(--gold);
    transform: scale(1.15);
}

.carousel__dots--dark .carousel__dot.is-active {
    background-color: var(--white);
}

/* --------------------------------------------------------------------------
   10. Sección "Mi Trabajo"
   -------------------------------------------------------------------------- */

.work {
    padding: 92px 0 100px;
    background: var(--soft);
}

.carousel--work {
    position: relative;
    margin: 8px 0 70px;
    padding: 55px 55px 55px 105px;
    background: var(--white);
    box-shadow: 0 0 29px rgba(171, 171, 171, 0.29);
}

.carousel--work::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: 32.5%;
    background: var(--black);
}

.carousel--work .carousel__viewport {
    position: relative;
    z-index: 1;
}

.work__inner {
    display: flex;
    align-items: stretch;
}

.work__media {
    flex: 0 0 57%;
    max-width: 57%;
    overflow: hidden;
}

.work__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 542 / 369;
    object-fit: cover;
}

.work__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0 0 30px;
}

.work__title {
    margin: 0 0 30px;
    color: var(--ink);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
}

.work__list {
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.work__list li {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 15px;
    line-height: 23.4px;
}

.work__list li:last-child {
    margin-bottom: 0;
}

.work__bullet {
    width: 11px;
    height: 11px;
    margin-top: 6px;
    color: var(--gold);
}

.carousel__controls--work {
    position: relative;
    z-index: 1;
    margin-top: 55px;
}

.carousel--work .carousel__dots {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   11. Servicios
   -------------------------------------------------------------------------- */

.services {
    padding: 82px 0 55px;
    background: var(--black);
}

.services__heading {
    padding: 0 15px;
    text-align: center;
}

.services__subtitle {
    margin: 0;
    color: var(--white);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.carousel--services {
    margin-top: 8px;
}

.service-card__media {
    position: relative;
    display: block;
    overflow: hidden;
}

.service-card__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 259 / 303;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.service-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.77);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.service-card:hover .service-card__overlay,
.service-card__media:focus-visible .service-card__overlay {
    opacity: 1;
}

.service-card:hover .service-card__media img {
    transform: scale(1.05);
}

.service-card__body {
    padding: 24px 28px 26px;
    background: var(--black);
}

.service-card__title {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: capitalize;
}

.service-card__subtitle {
    margin: 0;
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
}

.carousel__controls--services {
    margin-top: 45px;
}

/* --------------------------------------------------------------------------
   12. Testimonios
   -------------------------------------------------------------------------- */

.testimonials {
    padding: 92px 0 55px;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: 58.333% 41.667%;
}

.testimonials__grid > * {
    min-width: 0;
}

.testimonials__intro {
    padding: 0 15px;
}

.testimonials__media {
    margin: 0;
}

.testimonials__media img {
    display: block;
    width: 100%;
    max-width: 396px;
    height: auto;
    aspect-ratio: 680 / 440;
    object-fit: cover;
}

.testimonials__intro .btn {
    margin-top: 40px;
}

.testimonials__content {
    padding: 0 15px;
}

.testimonials__title {
    margin: 0 0 28px;
    font-size: 36px;
    font-weight: 600;
}

.testimonials__group {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.testimonial {
    padding: 12px 25px 18px;
    border: 1px solid var(--line);
}

.testimonial__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 4px;
}

.testimonial__title {
    margin: 5px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.testimonial__rating {
    display: flex;
    gap: 2px;
    margin-top: 5px;
}

.testimonial__star {
    display: block;
    width: 18px;
    height: 18px;
    color: #d8d8d8;
}

.testimonial__star .icon {
    width: 18px;
    height: 18px;
}

.testimonial__star.is-filled {
    color: #f5b301;
}

.testimonial__text {
    margin: 0 0 15px;
    color: var(--text);
    font-size: 15px;
    line-height: 23.4px;
}

.testimonial__author {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
}

.carousel__controls--testimonials {
    margin-top: 30px;
}

/* --------------------------------------------------------------------------
   13. Sección de WhatsApp
   -------------------------------------------------------------------------- */

.whatsapp {
    padding: 72px 0 100px;
    background: var(--soft);
}

.whatsapp__grid {
    display: grid;
    grid-template-columns: 33.333% 66.667%;
    align-items: center;
}

.whatsapp__grid > * {
    min-width: 0;
}

.whatsapp__content {
    padding: 20px 15px;
}

.whatsapp__title {
    margin: 0 0 8px;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
}

.whatsapp__phone {
    display: block;
    margin-bottom: 20px;
    color: #6a6a6a;
    font-size: 16px;
    font-weight: 500;
}

.whatsapp__media {
    margin: 0;
    padding: 20px 15px;
}

.whatsapp__media img {
    display: block;
    width: 100%;
    max-width: 680px;
    height: auto;
    aspect-ratio: 680 / 440;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   14. Pie de página
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--black);
}

.footer-top {
    padding: 100px 0 90px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-brand__logo {
    display: inline-block;
    margin-bottom: 30px;
}

.footer-brand__logo img {
    width: 450px;
    max-width: 100%;
    height: auto;
}

.footer-brand__intro {
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 15px;
}

.contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-list a {
    color: var(--muted);
}

.contact-list a:hover {
    color: var(--gold);
}

.contact-list__icon {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    color: var(--gold);
}

.footer-title {
    margin: 0 0 35px;
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-disclaimer p {
    color: var(--muted);
    font-size: 15px;
    line-height: 25px;
}

.footer-bottom {
    padding: 15px 0;
    background: #161616;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-copy {
    margin: 0;
    color: #8f8f8f;
    font-size: 15px;
}

.footer-bottom__right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-lang {
    display: inline-block;
    padding: 4px 2px;
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-social span {
    color: #8f8f8f;
    font-size: 15px;
}

.footer-social .social-link {
    color: var(--white);
}

.footer-social .social-link:hover {
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   15. Widget de WhatsApp
   -------------------------------------------------------------------------- */

.wa-widget {
    position: fixed;
    right: 13px;
    bottom: 17px;
    z-index: 1200;
    font-family: var(--font-body);
}

.wa-widget__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--whatsapp);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    color: var(--white);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.wa-widget__button:hover {
    transform: scale(1.06);
    background: #20bd5a;
}

.wa-widget__icon {
    width: 34px;
    height: 34px;
}

.wa-widget__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ff4b4b;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.wa-widget__panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: 340px;
    max-width: calc(100vw - 30px);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform-origin: bottom right;
    animation: widget-in 0.25s var(--ease);
}

@keyframes widget-in {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.wa-widget__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    background: var(--whatsapp);
    color: var(--white);
}

.wa-widget__header-icon {
    width: 26px;
    height: 26px;
}

.wa-widget__brand {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
}

.wa-widget__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    opacity: 0.85;
}

.wa-widget__close .icon {
    width: 20px;
    height: 20px;
}

.wa-widget__body {
    padding: 20px;
}

.wa-widget__bubble {
    position: relative;
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 0 8px 8px 8px;
    background: #f4f6f7;
    color: #3c4043;
    font-size: 14px;
    line-height: 1.5;
}

.wa-widget__open {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 6px;
    background: var(--whatsapp);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
}

.wa-widget__open:hover {
    background: #20bd5a;
    color: var(--white);
}

.wa-widget__open-icon {
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------------------------------
   16. Botón "volver arriba"
   -------------------------------------------------------------------------- */

.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 96px;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.scroll-top:hover {
    background: var(--gold);
    color: var(--white);
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top .icon {
    width: 22px;
    height: 22px;
}

/* --------------------------------------------------------------------------
   17. Página de contacto
   -------------------------------------------------------------------------- */

.page-hero {
    padding: 80px 0 60px;
    background: #f7f7f7;
    border-bottom: 1px solid #ececec;
}

.page-hero__title {
    margin: 0 0 15px;
    font-size: 42px;
    font-weight: 600;
}

.page-hero__text {
    max-width: 720px;
    margin: 0;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
}

.page-hero--center {
    padding: 130px 0 150px;
    text-align: center;
}

.page-hero--center .page-hero__text {
    margin: 0 auto 30px;
}

.page-hero__code {
    margin: 0 0 10px;
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 90px;
    font-weight: 700;
    line-height: 1;
}

.contact-section {
    padding: 70px 0 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
}

.form-field label span {
    color: var(--gold);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #dddddd;
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 160px;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(176, 153, 145, 0.18);
}

.form-field.has-error input,
.form-field.has-error textarea {
    border-color: #c0392b;
}

.form-error {
    margin: 0;
    color: #c0392b;
    font-size: 13px;
}

.form-field--hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-field--check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 18px;
    accent-color: var(--gold);
}

.contact-form__submit {
    align-self: flex-start;
    margin-top: 6px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    padding: 16px 18px;
    border-left: 4px solid;
    font-size: 15px;
    line-height: 1.5;
}

.alert p {
    margin: 0;
}

.alert__icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.alert--success {
    border-color: #2e8b57;
    background: #eef8f1;
    color: #1e5c3a;
}

.alert--error {
    border-color: #c0392b;
    background: #fdf0ee;
    color: #8e2a20;
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-card {
    padding: 30px;
    background: var(--soft);
}

.contact-card__title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
}

.contact-card p {
    margin-bottom: 22px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.contact-list--light li,
.contact-list--light a {
    color: var(--text);
}

.contact-list--light a:hover {
    color: var(--gold-dark);
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    :root {
        --container: 960px;
    }

    .hero__title {
        font-size: 48px;
    }

    .about__content,
    .about__grid--reverse .about__content {
        padding: 40px 60px 40px 40px;
    }

    .carousel--work {
        padding: 45px 40px 45px 80px;
    }

    .work__content {
        padding-right: 20px;
    }

    .service-card__title {
        font-size: 22px;
    }

    .service-card__body {
        padding: 20px 20px 22px;
    }
}

@media (max-width: 991px) {
    :root {
        --container: 720px;
        --header-height: 90px;
    }

    .brand img {
        height: 48px;
    }

    .nav,
    .header__social {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero__title {
        font-size: 42px;
    }

    .about,
    .experience {
        padding: 70px 0;
    }

    .about__grid {
        grid-template-columns: 1fr;
    }

    .about__content,
    .about__grid--reverse .about__content {
        padding: 0 30px 45px;
    }

    .about__grid--reverse .about__media {
        order: -1;
    }

    .about__body,
    .about__body--bordered {
        max-width: 100%;
    }

    .about__media img {
        aspect-ratio: 16 / 9;
    }

    .carousel--work::before {
        display: none;
    }

    .carousel--work {
        padding: 30px;
    }

    .work__inner {
        flex-direction: column;
    }

    .work__media {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .work__content {
        padding: 30px 0 0;
    }

    .carousel__controls--work {
        margin-top: 45px;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .testimonials__media img {
        max-width: 100%;
    }

    .whatsapp__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .whatsapp__content {
        padding: 0 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    :root {
        --container: 540px;
    }

    .hero {
        min-height: 560px;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__stars {
        width: 96px;
        height: 21px;
    }

    .hero__arrow {
        display: none;
    }

    .section-title,
    .testimonials__title,
    .whatsapp__title {
        font-size: 30px;
    }

    .about__title {
        font-size: 30px;
    }

    .about__title--single {
        font-size: 30px;
    }

    .eyebrow {
        font-size: 14px;
    }

    .about__content,
    .about__grid--reverse .about__content {
        padding: 0 15px 35px;
    }

    .about__quote {
        padding-left: 40px;
    }

    .work {
        padding: 60px 0 70px;
    }

    .carousel--work {
        padding: 20px;
        margin-bottom: 45px;
    }

    .work__title {
        font-size: 24px;
    }

    .carousel__controls--work {
        margin-top: 35px;
    }

    .services {
        padding: 55px 0 45px;
    }

    .service-card__title {
        font-size: 26px;
    }

    .service-card__body {
        padding: 22px 26px;
    }

    .testimonials {
        padding: 60px 0 45px;
    }

    .whatsapp {
        padding: 55px 0 70px;
    }

    .footer-top {
        padding: 60px 0 55px;
    }

    .footer-brand__logo img {
        width: 280px;
    }

    .footer-bottom__right {
        flex-direction: column;
        gap: 12px;
    }

    .page-hero {
        padding: 55px 0 45px;
    }

    .page-hero__title {
        font-size: 32px;
    }

    .page-hero--center {
        padding: 80px 0 100px;
    }

    .page-hero__code {
        font-size: 70px;
    }

    .contact-section {
        padding: 45px 0 70px;
    }

    .contact-card {
        padding: 22px;
    }

    .scroll-top {
        right: 22px;
        bottom: 92px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 575px) {
    :root {
        --container: 100%;
        --gutter: 18px;
    }

    .hero__title {
        font-size: 30px;
        line-height: 1.25;
    }

    .hero__scroll img {
        width: 42px;
        height: 55px;
    }

    .section-title,
    .testimonials__title,
    .whatsapp__title {
        font-size: 27px;
    }

    .about__title {
        font-size: 27px;
    }

    .about__title--single {
        font-size: 27px;
    }

    .about__body {
        padding-left: 25px;
    }

    .about__quote {
        padding-left: 34px;
    }

    .about__quote-mark,
    .about__quote-mark .icon {
        width: 22px;
        height: 22px;
    }

    .btn {
        padding: 0 28px;
    }

    .btn--info {
        padding: 0 58px 0 20px;
        font-size: 14px;
    }

    .carousel--work {
        padding: 16px;
    }

    .work__content {
        padding-top: 22px;
    }

    .work__title {
        font-size: 21px;
        margin-bottom: 20px;
    }

    .work__list li {
        font-size: 14px;
    }

    .service-card__body {
        padding: 20px 22px;
    }

    .service-card__title {
        font-size: 24px;
    }

    .testimonial {
        padding: 12px 18px 16px;
    }

    .testimonial__head {
        flex-direction: column;
        gap: 4px;
    }

    .testimonial__rating {
        order: -1;
        margin: 0 0 2px;
    }

    .testimonial__title {
        font-size: 17px;
    }

    .contact-form__submit {
        width: 100%;
    }

    .wa-widget__panel {
        right: -4px;
    }
}

/* --------------------------------------------------------------------------
   19. Accesibilidad: movimiento reducido
   -------------------------------------------------------------------------- */

@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;
        scroll-behavior: auto !important;
    }

    .hero__slide.is-active .hero__media img {
        transform: none;
    }

    .hero__slide .hero__title,
    .hero__slide .hero__stars {
        opacity: 1;
    }
}
