/* ==========================================================================
   Plataforma de Acreditación — tema
   Réplica del tema Zakra + secciones de Elementor de la web original.
   ========================================================================== */

:root {
  --red: #ff0000;
  --yellow: #ffb716;
  --yellow-dark: #ffae00;
  --blue: #6ec1e4;          /* color primario de Elementor */
  --grey-dark: #454545;
  --text: #7a7a7a;          /* texto de Elementor */
  --text-list: #54595f;
  --heading: #3f3f46;       /* encabezados de Zakra */
  --border: #e4e4e7;
  --container: 1240px;
  --font-body: Montserrat, sans-serif;
  --font-heading: Raleway, sans-serif;
  --font-el: Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
a { color: var(--red); text-decoration: none; transition: color .3s; }
a:hover { text-decoration: underline; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 500; line-height: 1.3; color: var(--heading); margin: 0 0 20px; }
p { margin: 0 0 20px; }
ul, ol { margin: 0 0 16px 16px; padding-left: 16px; }
button { font: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 10px; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex: none; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; color: #000; padding: 8px 16px; }
.skip-link:focus { left: 8px; }

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 50;
  background: #fff;
  border-bottom: 3px solid var(--border);
  padding: 20px 0;
}
.site-header__row { display: flex; align-items: center; gap: 24px; padding: 0 16px; }
.site-logo { display: block; flex: none; }
.site-logo img { display: block; width: 220px; height: 50px; }

.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.main-nav .menu { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.main-nav .menu > li { position: relative; }
.main-nav .menu > li > a,
.main-nav .submenu-toggle {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: #000; font-family: var(--font-body); font-size: 14.4px; font-weight: 500;
  line-height: 1.8; letter-spacing: .15px; text-transform: uppercase;
}
.main-nav .menu > li > a:hover,
.main-nav .menu > li:hover > .submenu-toggle,
.main-nav .menu > li.current > a,
.main-nav .menu > li.current > .submenu-toggle { color: var(--red); text-decoration: none; }
.main-nav .caret { width: 12px; height: 12px; }

.sub-menu {
  position: absolute; top: 100%; left: -16px; z-index: 60;
  width: 240px; margin: 0; padding: 0; list-style: none;
  background: #fff; border: 1px solid var(--border); border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-children:hover > .sub-menu,
.has-children:focus-within > .sub-menu,
.has-children.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a {
  display: block; padding: 14px 16px; color: #000;
  font-size: 14.4px; font-weight: 500; text-transform: uppercase;
}
.sub-menu li + li a { border-top: 1px solid var(--border); }
.sub-menu a:hover, .sub-menu .current a { color: var(--red); text-decoration: none; }

.header-button {
  display: block; padding: 5px 10px; border: 1px solid var(--red); border-radius: 10px;
  background: var(--red); color: #fafafa; font-size: 15px; line-height: 1.8; text-align: center;
  transition: background .3s, color .3s;
}
.header-button:hover { background: #fff; color: #027abb; text-decoration: none; }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 24px; height: 2px; background: #000; border-radius: 2px; position: relative; transition: transform .3s, background .3s;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 3px 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 3px solid var(--border); padding: 8px 16px 20px;
    box-shadow: 0 12px 20px rgba(0,0,0,.08);
  }
  .menu-open .main-nav { display: flex; }
  .main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav .menu > li { border-bottom: 1px solid var(--border); }
  .main-nav .menu > li > a, .main-nav .submenu-toggle { width: 100%; justify-content: space-between; padding: 12px 0; }
  .sub-menu { position: static; width: auto; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding-left: 16px; }
  .has-children:hover > .sub-menu, .has-children:focus-within > .sub-menu { display: none; }
  .has-children.open > .sub-menu { display: block; }
  .has-children.open .caret { transform: rotate(180deg); }
  .sub-menu a { padding: 10px 0; }
  .header-button { margin-top: 16px; align-self: flex-start; }
}

/* --------------------------------------------------------------------------
   Cabecera de imagen (hero)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; padding: 100px 0;
  background-color: #fff; background-position: center; background-size: cover;
}
.hero--inicio    { background-image: url("../img/hero-acreditacion.jpg"); }
.hero--iso-15189 { background-image: url("../img/hero-iso-15189.jpg"); }
.hero--iso-17025 { background-image: url("../img/hero-iso-17025.jpg"); }
.hero--iso-17020 { background-image: url("../img/hero-iso-17020.jpg"); }
.hero--tarifas   { background-image: url("../img/hero-tarifas.jpg"); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, #727272 30%, #201F1C 90%); opacity: .3; }
.hero__row { position: relative; display: flex; align-items: center; }
.hero__logo { width: 30%; padding: 10px; text-align: center; }
.hero__logo img { width: 352px; }
.hero__text { width: 70%; padding: 10px; }
.hero__text p { margin: 0; font-family: "Roboto Condensed", sans-serif; font-size: 25px; line-height: 1; color: #fff; }
.hero__kicker { font-weight: 700; margin-bottom: 15px !important; }
.hero__lead { font-weight: 200; }

/* --------------------------------------------------------------------------
   Bloques comunes (antes widgets de Elementor)
   -------------------------------------------------------------------------- */
.section { position: relative; }
.page-title {
  font-family: var(--font-el); font-size: 45px; font-weight: 300; line-height: 1.3; color: #000; margin: 0 0 20px;
}
.page-title--center { text-align: center; }
.text { font-family: var(--font-el); color: var(--text); font-size: 15px; line-height: 1.8; }
.text p, .text li { text-align: justify; }
.text--center p { text-align: center; }
.text h2 { font-family: var(--font-heading); font-size: 32.4px; font-weight: 500; color: var(--heading); text-align: justify; }
.text strong, .text b { font-weight: 700; }
.text a { color: var(--red); }
.text > :last-child { margin-bottom: 0; }

.divider { display: block; width: 20%; border-top: 3px solid var(--red); margin: 10px 0; }
.divider--center { margin: 25px auto; border-color: var(--yellow); }
.spacer { height: 20px; }

.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li { display: flex; align-items: center; line-height: 2.4; }
.icon-list__icon { display: flex; width: 20px; justify-content: flex-start; color: var(--grey-dark); font-size: 16px; padding-right: 10px; box-sizing: content-box; }
.icon-list__text { padding-left: 5px; color: var(--text-list); font-family: var(--font-el); font-size: 15px; }

/* --------------------------------------------------------------------------
   Inicio
   -------------------------------------------------------------------------- */
.intro { padding: 10px 0; }
.intro .container, .features .container, .iso .container, .pricing .container { padding-left: 20px; padding-right: 20px; }
.intro .text ol { margin-left: 16px; }

.features { padding: 10px 0; }
.features__row { display: flex; align-items: flex-start; }
.feature { width: 33.333%; padding: 10px; text-align: center; }
.feature__icon { display: inline-block; font-size: 80px; line-height: 1; color: var(--red); margin-bottom: 30px; transition: color .3s; }
.feature__icon:hover { color: var(--yellow); }
.feature__icon .icon { width: 80px; height: 80px; vertical-align: top; }
.feature__title { font-family: var(--font-el); font-size: 20px; font-weight: 600; line-height: 1.3; color: #000; text-transform: uppercase; margin: 0 0 20px; }
.feature__text { font-family: var(--font-el); font-size: 15px; line-height: 1.8; color: var(--text); margin: 0; }

.gallery { padding: 30px 0; background: linear-gradient(90deg, #ffc64d 30%, #ffae00 70%); }
.gallery__row { display: flex; justify-content: center; gap: 0; padding: 0 45px; }
.gallery__row figure { flex: 1; padding: 15px; text-align: center; }
.gallery__row--3 img { width: 350px; box-shadow: 0 0 20px rgba(221,221,221,.5); }
.gallery__row--2 { margin-top: 20px; }
.gallery__row--2 img { width: 540px; box-shadow: 0 2px 10px rgba(221,221,221,.5); }
.grow { transition: transform .3s; }
.grow:hover { transform: scale(1.1); }

.testimonials { padding: 30px 0; background: #eaf6fa; }
.testimonials__title { font-family: var(--font-el); font-size: 50px; font-weight: 600; line-height: 1.1; color: var(--yellow); text-transform: uppercase; text-align: center; margin: 0 0 20px; }
.testimonials__row { display: flex; }
.testimonial { width: 50%; padding: 5px; text-align: center; }
.testimonial__text { margin: 0 0 20px; font-family: var(--font-el); font-size: 15px; line-height: 1.8; color: var(--text); }
.testimonial__meta { display: inline-flex; align-items: center; text-align: left; }
.testimonial__meta img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-right: 15px; }
.testimonial__name { display: block; font-family: var(--font-el); font-size: 20px; line-height: 1.8; color: var(--blue); }
.testimonial__job { display: block; font-family: "Roboto Slab", serif; font-size: 15px; line-height: 1.8; color: var(--yellow); }

.stats { padding: 50px 0; background: var(--yellow); color: #fff; }
.stats__row { display: flex; }
.stat { width: 25%; padding: 10px; text-align: center; }
.stat__heading { font-family: var(--font-el); font-size: 30px; font-weight: 600; line-height: 1; color: #fff; text-transform: capitalize; margin: 0 0 20px; }
.stat p { font-family: var(--font-el); color: #fff; margin: 0; }
.stat__number { display: block; font-family: var(--font-el); font-size: 69px; font-weight: 600; line-height: 1; margin-bottom: 20px; }
.stat__label { font-family: var(--font-el); font-size: 20px; font-weight: 600; line-height: 1; letter-spacing: .7px; color: #fff; margin: 0; }

/* --------------------------------------------------------------------------
   Páginas ISO
   -------------------------------------------------------------------------- */
.iso { padding: 10px 0 40px; }
.iso__row { display: flex; align-items: flex-start; }
.iso__main { width: 70%; padding: 0 10px 0 0; }
.iso-sidebar { width: 30%; padding: 30px 0 0 10px; position: sticky; top: 20px; }
.side-title { font-family: var(--font-el); font-size: 30px; font-weight: 600; line-height: 1; color: var(--grey-dark); margin: 0 0 10px; }
.iso-sidebar .divider { margin: 10px 0 20px; }

/* --------------------------------------------------------------------------
   Tarifas
   -------------------------------------------------------------------------- */
.pricing { padding: 10px 0 30px; }
.pricing__row { display: flex; align-items: center; margin: 30px -15px 10px; }
.price-card {
  flex: 1; margin: 0 15px; padding: 50px 25px; text-align: center;
  background: #fff; border-radius: 10px; box-shadow: 0 0 40px rgba(221,221,221,.3);
}
.price-card:last-child { box-shadow: 0 0 20px rgba(221,221,221,.3); }
.price-card--featured { background: var(--yellow); box-shadow: 0 0 30px rgba(114,114,114,.2); color: #fff; }
.price-card__addon { font-family: var(--font-el); font-size: 25px; font-weight: 600; line-height: 1; color: #000; margin: 40px 0 20px; }
.price-card__name { font-family: var(--font-el); font-size: 50px; font-weight: 600; line-height: 1; color: #000; margin: 0; }
.price-card--featured .price-card__name { color: #fff; margin-top: 40px; }
.price-card--featured .divider { border-color: #fff; }
.price-card__price { font-family: var(--font-el); font-size: 30px; font-weight: 600; line-height: 1; color: #fff; margin: 40px 0 0; }
.icon-list--price { padding-left: 15%; text-align: left; }
.icon-list--price .icon-list__icon { color: var(--yellow); padding-right: 15px; width: 16px; }
.icon-list--price .icon-list__text { padding-left: 0; }
.price-card--featured .icon-list__icon, .price-card--featured .icon-list__text { color: #fff; }

.btn-price {
  display: inline-flex; align-items: center; gap: 15px; margin-top: 70px;
  padding: 15px 30px; border: 1px solid var(--yellow-dark); border-radius: 50px;
  background: var(--yellow); color: #fff; box-shadow: 0 10px 30px -8px rgba(0,0,0,.16);
  font-family: var(--font-el); font-size: 16px; font-weight: 500; line-height: 1;
  transition: background .3s, color .3s, border-color .3s;
}
.btn-price:hover, .btn-price:focus { background: #fff; color: var(--yellow); border-color: var(--yellow); text-decoration: none; }
.btn-price--light { background: #fff; color: var(--yellow); }
.btn-price--light:hover, .btn-price--light:focus { background: var(--yellow); color: #fff; border-color: #fff; }
.price-card--featured .btn-price { margin-top: 70px; }

/* --------------------------------------------------------------------------
   Páginas de texto (privacidad, 404)
   -------------------------------------------------------------------------- */
.legal { padding: 60px 0; }
.legal .container { padding: 0 16px; }
.entry-title { font-family: var(--font-heading); font-size: 36px; font-weight: 600; color: var(--heading); margin: 0 0 30px; }
.legal__text { max-width: 1120px; margin: 0 auto; }
.legal__text p { text-align: left; margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.site-footer { font-size: 14px; line-height: 1.8; }
.footer-cols { background: var(--grey-dark); color: #ccc; padding: 60px 0; }
.footer-cols__row { display: flex; gap: 32px; padding: 0 16px; }
.footer-widget { flex: 1; }
.footer-widget__title { font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--yellow); margin: 0 0 16px; padding-bottom: 10px; }
.footer-widget p { margin: 0 0 20px; color: #ccc; }
.footer-widget a { color: #fff; }
.footer-widget a:hover { color: var(--yellow); text-decoration: none; }
.footer-widget a.footer-plain { color: inherit; }
.footer-posts { list-style: none; margin: 0; padding: 0; }
.footer-icon { margin-right: 6px; color: #ccc; }

.footer-bar { background: #fff; color: var(--grey-dark); padding: 24px 0; }
.footer-bar__row { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 0 16px; }
.footer-bar a { color: var(--grey-dark); }
.footer-bar a:hover { color: var(--yellow); text-decoration: none; }
.footer-bar__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }

.scroll-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: var(--red); color: #fff; border-radius: 4px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.scroll-top svg { width: 20px; height: 20px; }
.scroll-top.visible { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   Tablet (≤ 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .intro { padding: 50px 20px; }
  .features { padding: 0 20px; }
  .gallery { padding: 50px 40px; }
  .gallery__row { padding: 0; }
  .gallery__row--2 { margin-top: 50px; }
  .stat__heading { font-size: 24px; }
  .stat__number { font-size: 40px; }
  .iso { padding: 50px 20px; }
  .iso__row { flex-wrap: wrap; }
  .iso__main, .iso-sidebar { width: 100%; padding: 0; position: static; }
  .iso-sidebar { padding-top: 30px; }
  .side-title { font-size: 40px; }
  .price-card { margin: 0 8px; }
  .price-card__name { font-size: 40px; }
}

/* --------------------------------------------------------------------------
   Móvil (≤ 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .site-header__row { padding: 0 8px; }
  .hero { padding: 0; }
  .hero__row { flex-direction: column; }
  .hero__logo, .hero__text { width: 100%; padding: 50px; }
  .hero__text { padding-top: 0; }
  .hero__text p { line-height: 1.2; }
  .text p, .text li { text-align: left; }
  .page-title { font-size: 34px; }
  .intro { padding: 30px 10px; }
  .features__row { flex-direction: column; }
  .feature { width: 100%; }
  .feature + .feature { margin-top: 30px; }
  .gallery { padding: 40px 20px; }
  .gallery__row { flex-direction: column; align-items: center; }
  .gallery__row figure { padding: 10px 0; }
  .testimonials { padding: 30px; }
  .testimonials__title { font-size: 40px; }
  .testimonials__row { flex-direction: column; }
  .testimonial { width: 100%; margin-bottom: 15px; }
  .stats__row { flex-direction: column; }
  .stat { width: 100%; }
  .stat__heading { font-size: 40px; }
  .iso { padding: 30px 10px; }
  .side-title { font-size: 30px; }
  .text h2 { font-size: 26px; text-align: left; }
  .pricing__row { flex-direction: column; margin: 30px 0 10px; gap: 30px; }
  .price-card { width: 100%; margin: 0; }
  .price-card--featured .price-card__name { margin-top: 0; }
  .legal { padding: 40px 0; }
  .entry-title { font-size: 30px; }
  .footer-cols__row { flex-direction: column; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
