/* ================================================
   PINTURAS A&M — Diseño Moderno 2026
   ================================================ */

:root {
  --primary:      #1e2d3d;
  --primary-l:    #2c4057;
  --accent:       #c9a84c;
  --accent-d:     #a87e2e;
  --bg:           #ffffff;
  --bg-alt:       #f7f6f2;
  --text:         #1a1a1a;
  --text-muted:   #6b7280;
  --border:       #e5e1d8;
  --shadow:       0 4px 20px rgba(0,0,0,.07);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
  --radius:       8px;
  --radius-lg:    16px;
  --transition:   .3s ease;
  --max-w:        1200px;
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-d); }
ul { list-style: none; }
strong { font-weight: 600; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ---- TIPOGRAFÍA ---- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.25; color: var(--primary); }
h1 { font-size: clamp(2rem,   5vw,   3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }

/* ---- LAYOUT ---- */
.container { width:100%; max-width:var(--max-w); margin:0 auto; padding:0 1.5rem; }
.section     { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

/* ---- ETIQUETA DE SECCIÓN ---- */
.section-label {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: .6rem; }
.section-header p  { color: var(--text-muted); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* ---- BOTONES ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.9rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-l); color: #fff; box-shadow: var(--shadow-lg); }
.btn-accent  { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-d); color: #fff; box-shadow: 0 8px 24px rgba(201,168,76,.35); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ================================================
   CABECERA / NAV
   ================================================ */
#cabecera {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.nav-logo img { height: 160px; width: auto; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.nav-logo-sub  { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links li { display: flex; align-items: center; }
.nav-links a {
  font-size: .88rem; font-weight: 500; color: var(--text);
  padding-bottom: 2px; border-bottom: 2px solid transparent;
  transition: all var(--transition); text-decoration: none;
}
.nav-links a:hover,
.nav-links a.activo { color: var(--primary); border-bottom-color: var(--accent); }
.nav-links .nav-cta {
  background: var(--accent); color: #fff !important; border-color: var(--accent);
  padding: .48rem 1.1rem; border-radius: var(--radius); border-bottom: none;
  font-size: .85rem; font-weight: 600; white-space: nowrap;
  transition: background var(--transition);
}
.nav-links .nav-cta:hover { background: var(--accent-d) !important; color: #fff; border-bottom: none; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--primary);
  border-radius: 2px; transition: all .3s; transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   HERO (PORTADA)
   ================================================ */
.hero { background: linear-gradient(145deg, var(--bg-alt) 0%, #fff 65%); overflow: hidden; }
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  min-height: calc(100vh - 72px);
  padding-top: 4rem; padding-bottom: 4rem;
}
.hero-tag {
  display: inline-block; background: rgba(201,168,76,.15); color: var(--accent-d);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.hero-content h1 { margin-bottom: 1.25rem; }
.hero-content h1 em { font-style: normal; color: var(--accent); }
.hero-desc {
  font-size: 1.05rem; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 2.5rem; max-width: 500px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-img-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--bg-alt);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: 1.5rem; left: -1.5rem;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1rem 1.4rem; display: flex; align-items: center; gap: 1rem;
}
.hero-badge-n { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1; }
.hero-badge-t { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }

/* ================================================
   SERVICIOS (CARDS HOME)
   ================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.service-card {
  padding: 2rem; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--bg);
  transition: all var(--transition);
}
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-4px); }
.s-icon {
  width: 56px; height: 56px; font-size: 1.6rem;
  background: rgba(201,168,76,.1); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.service-card p  { font-size: .92rem; color: var(--text-muted); }

/* ================================================
   GALERÍA PREVIEW (HOME)
   ================================================ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 260px); gap: .75rem;
}
.gallery-grid .gi:first-child { grid-row: 1/3; }
.gi {
  border-radius: var(--radius); overflow: hidden;
  position: relative; background: var(--bg-alt);
}
.gi img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gi:hover img { transform: scale(1.06); }
.gi-overlay {
  position: absolute; inset: 0;
  background: rgba(30,45,61,0); transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.gi:hover .gi-overlay { background: rgba(30,45,61,.35); }
.gi-icon { color: #fff; font-size: 2rem; opacity: 0; transform: scale(.7); transition: all var(--transition); }
.gi:hover .gi-icon { opacity: 1; transform: scale(1); }

/* ================================================
   POR QUÉ ELEGIRNOS (HOME)
   ================================================ */
.features-split {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 5rem;
}
.features-img {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5; background: var(--bg-alt); box-shadow: var(--shadow-lg);
}
.features-img img { width: 100%; height: 100%; object-fit: cover; }
.features-list { display: flex; flex-direction: column; gap: 1.75rem; }
.fi { display: flex; gap: 1.1rem; align-items: flex-start; }
.fi-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; flex-shrink: 0;
}
.fi h4 { font-size: .95rem; color: var(--primary); margin-bottom: .25rem; font-family: var(--font-body); }
.fi p  { font-size: .88rem; color: var(--text-muted); }

/* ================================================
   BANDA CTA
   ================================================ */
.cta-band {
  background: var(--primary); color: #fff; padding: 5rem 0; text-align: center;
}
.cta-band .section-label { color: var(--accent); }
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p  { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-band .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ================================================
   PÁGINAS INTERIORES — ENCABEZADO
   ================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-l) 100%);
  padding: 4rem 0; color: #fff; text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.05rem; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 1.25rem;
}
.breadcrumb a   { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .5; }

/* ================================================
   CONTENIDO INTERIOR — PROSA
   ================================================ */
.inner-content { padding: 4.5rem 0; }
.prose { max-width: 880px; margin: 0 auto; }
.prose h2 {
  color: var(--primary); margin: 2.5rem 0 1rem;
  padding-top: 2.5rem; border-top: 2px solid var(--border);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose h2 span  { color: var(--accent) !important; }
.prose p        { line-height: 1.85; color: var(--text); }
.prose strong   { color: var(--primary); }
.prose img      { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow); }
.prose a        { color: var(--accent); text-decoration: underline; }
.prose a:hover  { color: var(--accent-d); }

/* ================================================
   GALERÍA COMPLETA
   ================================================ */
.gal-filters  { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.gal-btn {
  padding: .45rem 1.2rem; border-radius: 100px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text-muted); font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; display: inline-block;
}
.gal-btn:hover, .gal-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.gal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
}
.gal-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.gal-item a   { display: block; width: 100%; height: 100%; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-item:hover img { transform: scale(1.07); }

/* ================================================
   FORMULARIO PRESUPUESTO
   ================================================ */
.contact-grid { display: grid; grid-template-columns: 300px 1fr; gap: 5rem; align-items: start; }
.contact-aside { position: sticky; top: 90px; }
.contact-aside h3 { margin-bottom: 1.75rem; }
.c-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.75rem; }
.c-icon {
  width: 46px; height: 46px; background: rgba(201,168,76,.12);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.c-text small { display: block; font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2rem; }
.c-text a, .c-text span { font-weight: 600; color: var(--primary); font-size: 1rem; }
.c-text a:hover { color: var(--accent); }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--primary); margin-bottom: .5rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .8rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; color: var(--text); background: var(--bg);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,45,61,.07); }
.form-group textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-success {
  background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  margin-bottom: 1.5rem; font-weight: 500;
}

/* ================================================
   ERROR 404
   ================================================ */
.err404 {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 0;
}
.err404 .big { font-family: var(--font-head); font-size: clamp(6rem, 18vw, 12rem); font-weight: 700; color: var(--accent); opacity: .25; line-height: 1; }
.err404 h1   { margin-bottom: 1rem; }
.err404 p    { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.err404 .btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ================================================
   FOOTER
   ================================================ */
#pie { background: var(--primary); color: rgba(255,255,255,.75); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-name { font-family: var(--font-head); font-size: 1.3rem; color: #fff; font-weight: 700; margin-bottom: .75rem; }
.footer-brand p    { font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.65; }
.footer-phone {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--accent) !important; font-size: 1.15rem; font-weight: 700; margin-top: 1.25rem;
}
.footer-col h5 { color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.55); font-size: .9rem; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p   { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-bottom a   { color: rgba(255,255,255,.45); font-size: .8rem; }
.footer-bottom a:hover { color: var(--accent); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .services-grid              { grid-template-columns: repeat(2, 1fr); }
  .features-split             { grid-template-columns: 1fr; gap: 3rem; }
  .features-img               { aspect-ratio: 16/9; max-height: 420px; }
  .gallery-grid               { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-grid .gi:first-child { grid-row: auto; }
  .footer-grid                { grid-template-columns: 1fr 1fr; }
  .contact-grid               { grid-template-columns: 1fr; gap: 3rem; }
  .contact-aside              { position: static; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  /* Hero */
  .hero .container { grid-template-columns: 1fr; min-height: auto; padding: 3rem 1.5rem; text-align: center; }
  .hero-content { order: 2; }
  .hero-visual  { order: 1; }
  .hero-desc    { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-badge   { display: none; }
  .hero-img-wrap { aspect-ratio: 16/9; }

  /* Nav */
  .nav-links {
    display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; justify-content: flex-start;
    padding: 2rem 1.5rem; gap: 0; z-index: 999; overflow-y: auto;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li   { width: 100%; }
  .nav-links a    { padding: 1rem 0; border-bottom: 1px solid var(--border); width: 100%; font-size: 1.1rem; border-right: none; border-left: none; }
  .nav-links .nav-cta { margin-top: 1.5rem; width: 100%; justify-content: center; border: none; padding: .85rem; }
  .nav-toggle { display: flex; }

  /* Galería home */
  .gallery-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row      { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: 1fr; }
}
