/* ==========================================================================
   Héctor Alfarero (hectoralfarero.com)
   Clean, Lightweight Static CSS3 (No WordPress / Divi bloat)
   ========================================================================== */

:root {
  --bg-color: #ffffff;
  --text-color: #666666;
  --heading-color: #333333;
  --accent-color: #2ea3f2;
  --muted-color: #999999;
  --border-color: #e2e2e2;
  --input-bg: #eeeeee;
  --footer-bg: #4a4a4a;
  --footer-text: #b0b0b0;
  --whatsapp-green: #25D366;
  --container-max: 1080px;
}

/* 1. Reset & Base Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7em;
  font-weight: 500;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  margin: 0;
  padding-bottom: 10px;
  line-height: 1.2em;
  font-weight: 500;
}

h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p {
  margin: 0;
  padding-bottom: 1em;
}

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

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 24px 0;
}

/* 2. Layout Containers */
.site-wrapper {
  padding-top: 146px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: padding-top 0.35s ease;
}

.site-main {
  flex: 1;
}

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

.view-content {
  padding: 58px 0 54px;
}

.section {
  padding: 54px 0;
}

.row {
  width: 80%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 27px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5.5%;
}

.col-half {
  width: 47.25%;
}

.col-third {
  width: 29.6667%;
}

.col-quarter {
  width: 20.875%;
}

.col-full {
  width: 100%;
}

/* 3. Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
}

.header-inner {
  width: 80%;
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: 146px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: min-height 0.35s ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 60px;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 146px;
  transition: height 0.35s ease;
}

.site-header.is-scrolled .logo-link {
  height: 60px;
}

.site-logo {
  height: 100%;
  max-height: 146px;
  width: auto;
  transition: max-height 0.35s ease;
}

.site-header.is-scrolled .site-logo {
  max-height: 48px;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  padding-top: 66px;
  transition: padding-top 0.35s ease;
}

.site-header.is-scrolled .header-nav-wrap {
  padding-top: 18px;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  padding-bottom: 66px;
  transition: color 0.3s ease, padding-bottom 0.35s ease;
}

.site-header.is-scrolled .nav-link {
  padding-bottom: 18px;
}

.nav-item.active > .nav-link,
.nav-link.active {
  color: var(--accent-color);
}

.nav-link:hover {
  color: rgba(0, 0, 0, 0.4);
}

.caret-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

/* Dropdown Submenu */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background-color: var(--bg-color);
  border-top: 3px solid var(--accent-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.nav-item.has-dropdown:hover > .sub-menu,
.nav-item.has-dropdown:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  padding: 0 20px;
}

.sub-menu a {
  display: block;
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  line-height: 2em;
}

.sub-menu a:hover,
.sub-menu a.active {
  color: var(--accent-color);
  background-color: rgba(0, 0, 0, 0.03);
}

/* Header Search Button & Overlay */
.search-toggle {
  background: none;
  border: none;
  padding: 0 0 66px 0;
  margin-left: 22px;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: padding-bottom 0.35s ease, color 0.25s ease;
}

.site-header.is-scrolled .search-toggle {
  padding-bottom: 18px;
}

.search-toggle:hover {
  color: var(--accent-color);
}

.search-toggle svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.header-search-bar {
  position: absolute;
  inset: 0;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1010;
}

.header-search-bar.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-search-input {
  width: 280px;
  max-width: 75%;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--heading-color);
  outline: none;
}

.header-search-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-color);
  cursor: pointer;
  line-height: 1;
}

/* Mobile Menu Button & Drawer */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  border-top: 3px solid var(--accent-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px 5%;
  margin: 0;
  list-style: none;
  z-index: 999;
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-nav-drawer li {
  list-style: none;
}

.mobile-nav-drawer a {
  display: block;
  padding: 10px 5%;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-nav-drawer a.active,
.mobile-nav-drawer a:hover {
  color: var(--accent-color);
  background-color: rgba(0, 0, 0, 0.03);
}

.mobile-nav-drawer .mobile-sub-menu {
  padding-left: 20px;
  margin: 0;
}

/* 4. Page Views (Single-Page & Multi-Page Support) */
.page-view {
  display: none;
  animation: fadeIn 0.2s ease;
}

.page-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 5. Homepage (Inicio) */
.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.home-intro p {
  padding-bottom: 1em;
}

.home-gallery-section {
  padding-top: 54px;
}

.home-gallery-section > .row,
.workshop-content > .row {
  width: 100%;
}

.home-gallery-section > .row,
.workshop-content > .row:first-child {
  padding-top: 0;
}

.editorial-link {
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}

.editorial-link:hover,
.editorial-link:focus-visible {
  color: var(--heading-color);
}

.home-photo-left {
  width: 100%;
  height: auto;
}

.home-photo-right {
  width: 100%;
  height: auto;
}

/* Galería: fotografías completas, sin recortes ni barra lateral. */
.portfolio-gallery {
  padding-top: 58px;
  padding-bottom: 54px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 32px;
  margin-top: 24px;
}

.portfolio-piece {
  margin: 0;
  min-width: 0;
}

.portfolio-piece img {
  width: 100%;
  height: auto;
}

.portfolio-piece figcaption {
  padding-top: 12px;
  text-align: center;
}

@media (max-width: 767px) {
  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 6. About: biography and portrait video */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 292px);
  align-items: center;
  gap: 40px;
}

.about-biography {
  min-width: 0;
}

.about-media {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.about-video {
  width: 100%;
  max-width: 292px;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  background-color: #000;
}

.page-title {
  margin-bottom: 14px;
}

/* 7. Talleres */
.workshop-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.workshop-list a {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 18px;
}

.lead-text-21 {
  font-size: 21px;
  line-height: 1.7em;
}

.lead-text-19-bold {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.7em;
}

.subtitle-muted {
  color: var(--muted-color);
  font-weight: 400;
}

.pincel-photo {
  max-width: 600px;
  width: 100%;
}

/* Feature Blurbs (Taller de Pinceles) */
.feature-blurb {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--accent-color);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.feature-title {
  font-size: 23px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding-bottom: 8px;
}

.feature-desc {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

/* Pricing Section (Taller de Pinceles) */
.pricing-row {
  background-color: #eeeeee;
}

.matricula-card {
  background-color: #f9f9f9;
  border: 1px solid #000000;
  padding: 20px;
}

.matricula-card h2 {
  text-align: center;
  color: #000000;
  font-weight: 700;
  margin-bottom: 12px;
}

.valor-column {
  background-color: #f7f7f7;
  padding-bottom: 24px;
}

.valor-header {
  background-color: #eeefff;
  padding: 20px 15px;
  text-align: center;
}

.valor-header h2 {
  padding-bottom: 0;
}

.valor-body {
  padding: 20px 24px;
}

.btn-outline-blue {
  display: inline-block;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  color: var(--accent-color);
  background-color: transparent;
  border: 2px solid var(--accent-color);
  border-radius: 3px;
  padding: 0.3em 1em;
  line-height: 1.7em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline-blue:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: transparent;
  transform: scale(1.06);
}

.text-center {
  text-align: center;
}

/* 8. Engobes Swatches (/engobes/) */
.swatch-item {
  margin-bottom: 24px;
}

.swatch-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 100px;
  font-size: 16px;
  margin-bottom: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.swatch-circle:hover {
  transform: scale(1.08);
}

.swatch-blanco {
  background-color: #FFFFFF;
  color: #FFFFFF;
  box-shadow: -1px 4px 18px 0px rgba(0, 0, 0, 0.3);
}

.swatch-negro {
  background-color: #000000;
  color: #000000;
  border: 3px solid #FFFFFF;
  box-shadow: -1px 4px 18px 0px rgba(0, 0, 0, 0.3);
}

.swatch-amarillo {
  background-color: #EDF000;
  color: #EDF000;
  box-shadow: 0px 6px 4px 2px #F9F9F9;
}

.swatch-azul {
  background-color: #0C71C3;
  color: #0C71C3;
  box-shadow: 0px 6px 4px 2px #F9F9F9;
}

.swatch-rojo {
  background-color: #E02B20;
  color: #E02B20;
  box-shadow: 0px 6px 4px 2px #F9F9F9;
}

.swatch-naranja {
  background-color: #E09900;
  color: #E09900;
}

.swatch-verde {
  background-color: #7CDA24;
  color: #7CDA24;
}

.swatch-morado {
  background-color: #8300E9;
  color: #8300E9;
}

/* 9. Contact Form (/contacto/) */
.contact-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.form-group-half {
  width: 48.5%;
  margin-bottom: 24px;
}

.form-group-full {
  width: 100%;
  margin-bottom: 24px;
}

.form-control {
  width: 100%;
  background-color: var(--input-bg);
  border: none;
  padding: 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--heading-color);
  outline: none;
}

.form-control::placeholder {
  color: var(--muted-color);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-form-footer {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.captcha-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.captcha-input {
  width: 45px;
  height: 50px;
  background-color: var(--input-bg);
  border: none;
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  color: var(--heading-color);
  outline: none;
}

.form-feedback {
  width: 100%;
  margin-bottom: 16px;
  color: var(--heading-color);
}

.form-feedback:not(:empty) {
  padding: 14px 18px;
  border-radius: 3px;
}

.form-feedback.sending {
  background-color: #eef5fb;
  border-left: 4px solid var(--accent-color);
  color: var(--heading-color);
  font-weight: 600;
}

.form-feedback.success {
  background-color: #edf8f1;
  border-left: 4px solid #1f8b4c;
  color: #1f8b4c;
  font-weight: 600;
}

.form-feedback.error {
  background-color: #fdf0f0;
  border-left: 4px solid #cf2e2e;
  color: #cf2e2e;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.btn-outline-blue:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Redes sociales: iconos discretos y enlaces accesibles. */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  vertical-align: middle;
  color: inherit;
}

.social-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon-dot {
  fill: currentColor;
  stroke: none;
}

.contact-social {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.footer-actions,
.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-social {
  color: #eeeeee;
}

/* 10. Global Footer */
.site-footer {
  padding: 54px 0;
}

.footer-container {
  width: 80%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 27px 0;
}

.footer-bar {
  background-color: var(--footer-bg);
  padding: 1.5rem 2rem;
}

.footer-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  color: var(--footer-text);
  font-size: 0.95rem;
}

.whatsapp-btn {
  background-color: var(--whatsapp-green);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-btn:hover {
  background-color: #20bd5a;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* 11. Responsive Breakpoints */
@media (max-width: 980px) {
  .site-wrapper {
    padding-top: 80px;
  }

  .header-inner,
  .logo-link {
    min-height: 80px;
    height: 80px;
  }

  .site-logo {
    max-height: 60px;
  }

  .header-nav-wrap {
    padding-top: 0;
  }

  .nav-menu {
    display: none;
  }

  .search-toggle {
    padding-bottom: 0;
    margin-right: 16px;
  }

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

  .col-half,
  .col-third,
  .col-quarter {
    width: 100%;
    margin-bottom: 30px;
  }

  .col-half:last-child,
  .col-third:last-child,
  .col-quarter:last-child {
    margin-bottom: 0;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .home-intro,
  .workshop-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-intro {
    gap: 28px;
  }

  .form-group-half {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .footer-actions,
  .footer-social {
    justify-content: center;
  }

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