/*
Theme Name: Tramits Reus
Theme URI: https://tramitsreus.com
Author: Tramits Digitals Reus
Author URI: https://tramitsreus.com
Description: Tema WordPress a medida para Tramits Digitals Reus, convertido a partir del sitio estático original. Incluye página de inicio, servicios, preguntas frecuentes, testimonios, accesos directos, reserva online y contacto.
Version: 1.7.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tramitsreus
*/

/* ── RESET ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Raleway', sans-serif;
  color: #2d2d2d;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── HEADER ───────────────────────────────────── */
.hdr {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 300;
  width: 100%;
}
.hdr-top {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  letter-spacing: .03em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-img {
  max-height: 52px;
  width: auto;
  height: auto;
  max-width: 200px;
  display: block;
}
.brand-text { display: block; }

.hdr-nav {
  border-top: 1px solid #eee;
  background: #fff;
}
.hdr-nav ul {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 40px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.hdr-nav li a {
  display: block;
  padding: 5px 10px;
  font-size: .72rem;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: opacity .15s;
}
.hdr-nav li a:hover { opacity: .55; }
.hdr-nav li.cur a,
.hdr-nav li.current-menu-item a,
.hdr-nav li.current_page_item a { font-weight: 700; border-bottom: 2px solid #1a1a1a; }
.hdr-nav .more {
  font-size: .72rem;
  font-weight: 500;
  color: #1a1a1a;
  padding: 5px 10px;
  letter-spacing: .04em;
  cursor: default;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #1a1a1a; border-radius: 1px; }

/* ── MAIN ─────────────────────────────────────── */
main { flex: 1; }

/* ── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: min(75vh, 680px);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  width: 100%;
  height: 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,.68) 0%, rgba(255,255,255,.22) 55%, rgba(255,255,255,0) 100%);
}
.hero-txt {
  position: relative;
  z-index: 2;
  padding: 80px 60px;
  max-width: 520px;
}
.hero-txt h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.hero-txt .tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: #333;
  margin-bottom: 36px;
  letter-spacing: .02em;
}
.sub-form-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 10px;
  display: block;
}
.sub-form { display: flex; max-width: 300px; }
.sub-form input[type=email] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #bbb;
  border-right: none;
  font-family: 'Raleway', sans-serif;
  font-size: .8rem;
  color: #333;
  outline: none;
  background: #fff;
}
.sub-form input[type=email]:focus { border-color: #888; }
.sub-form button {
  padding: 10px 20px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  text-transform: uppercase;
  transition: background .2s;
}
.sub-form button:hover { background: #3a3a3a; }
.sub-thanks {
  display: none;
  margin-top: 10px;
  font-size: .8rem;
  color: #3F7652;
  font-weight: 600;
  font-style: italic;
}

/* ── CONTENT SECTIONS ─────────────────────────── */
.content-section {
  background-color: #d1ef4b;
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 60px;
}
.two-col, .two-col-rev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: #1a1a1a;
  gap: 60px;
  align-items: center;
}
.col-img img { width: 100%; height: auto; object-fit: cover; }
.col-text h1, .col-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.15;
  margin-bottom: 8px;
}
.col-text h1 { font-size: 2.6rem; }
.col-text h2 { font-size: 2rem; }
.col-text .sub {
  font-size: .8rem;
  color: #888;
  font-style: italic;
  letter-spacing: .03em;
  margin-bottom: 18px;
  display: block;
}
.col-text p { font-size: .9rem; color: #444; line-height: 1.9; }

/* ── TESTIMONIALS ─────────────────────────────── */
.testimonials { background: #f4f4f4; padding: 80px 0; }
.testi-inner { max-width: 1300px; margin: 0 auto; padding: 0 60px; }
.testi-inner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.testi-inner .sub { font-size: .8rem; color: #888; font-style: italic; margin-bottom: 40px; display: block; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: #fff; padding: 28px 26px 22px; }
.testi-card p { font-size: .85rem; color: #555; line-height: 1.85; font-style: italic; margin-bottom: 18px; }
.testi-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 700; color: #1a1a1a; }

/* ── PAGE HEADER ──────────────────────────────── */
.pg-hero { border-bottom: 1px solid #eee; padding: 56px 60px 36px; background: #fff; }
.pg-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.pg-hero .sub { font-size: .8rem; color: #888; font-style: italic; letter-spacing: .03em; }
.pg-content { max-width: 1300px; margin: 0 auto; padding: 60px 60px 80px; }

/* ── CONTACT ──────────────────────────────────── */
.ct-form { display: flex; flex-direction: column; max-width: 560px; }
.ct-form .field { margin-bottom: 20px; }
.ct-form label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 7px;
}
.ct-form input, .ct-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0d0d0;
  font-family: 'Raleway', sans-serif;
  font-size: .88rem;
  color: #2d2d2d;
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.ct-form input:focus, .ct-form textarea:focus { border-color: #888; }
.ct-form textarea { min-height: 130px; resize: vertical; }
.ct-submit {
  padding: 13px 40px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  transition: background .2s;
}
.ct-submit:hover { background: #333; }
.ct-thanks { display: none; margin-top: 14px; font-size: .88rem; color: #3F7652; font-weight: 600; font-style: italic; }
.ct-thanks.show { display: block; }
.ct-error { margin-top: 14px; font-size: .85rem; color: #b23b3b; }

/* ── SERVICES ─────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 70px 60px;
}
.svc-item img { width: 100%; height: 220px; object-fit: cover; margin-bottom: 20px; }
.svc-item h1 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.svc-item h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.svc-price { font-size: .88rem; color: #666; font-style: italic; }

/* ── FAQ ──────────────────────────────────────── */
.faq-list { max-width: 840px; margin-top: 8px; }
.faq-item { border-top: 1px solid #e0e0e0; padding: 26px 0; }
.faq-item:last-child { border-bottom: 1px solid #e0e0e0; }
.faq-item h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.faq-item h2 .faq-icon { font-size: 1.4rem; color: #999; flex-shrink: 0; line-height: 1.1; transition: transform .2s; }
.faq-item h2.open .faq-icon { transform: rotate(45deg); }
.faq-ans { display: none; font-size: .88rem; color: #555; line-height: 1.9; padding-right: 32px; }
.faq-ans.open { display: block; }

/* ── CITA / TESTIMONIOS ───────────────────────── */
.cita-list { max-width: 860px; margin-top: 8px; }
.cita-item { padding: 32px 0; border-bottom: 1px solid #eee; }
.cita-item:first-child { border-top: 1px solid #eee; }
.cita-item p { font-size: .9rem; color: #555; line-height: 1.9; font-style: italic; margin-bottom: 16px; }
.cita-item h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 700; color: #1a1a1a; }

/* ── ACCESOS ──────────────────────────────────── */
.acc-intro{
  max-width:760px;
  margin:0 auto 2.2rem;
  padding:0 1rem;
  text-align:center;
  font-family:'Raleway',sans-serif;
  color:#555;
}
.acc-intro h1{
  font-family:'Cormorant Garamond',serif;
  font-weight:600;
  font-size:2.1rem;
  margin-bottom:.4rem;
  color:#222;
}
.acc-search{
  max-width:420px;
  margin:1.2rem auto 0;
  display:block;
  width:100%;
  padding:.7rem 1rem;
  border:1px solid #d9d3c8;
  border-radius:8px;
  font-family:'Raleway',sans-serif;
  font-size:.95rem;
}
.acc-category{
  max-width:1100px;
  margin:0 auto 2.4rem;
  padding:0 1rem;
}
.acc-category h2{
  font-family:'Cormorant Garamond',serif;
  font-weight:600;
  font-size:1.4rem;
  border-bottom:1px solid #e2ddd2;
  padding-bottom:.4rem;
  margin-bottom:1rem;
  color:#2f2a22;
}
.acc-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:14px;
}
.acc-card{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  text-decoration:none;
  background:#fdfcfa;
  border:1px solid #e6e1d6;
  border-radius:10px;
  padding:1rem 1.1rem;
  transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.acc-card:hover, .acc-card:focus-visible{
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  border-color:#c9a24a;
  transform:translateY(-2px);
}
.acc-card .acc-icon{ font-size:1.4rem; line-height:1; }
.acc-card .acc-title{ font-family:'Raleway',sans-serif; font-weight:600; font-size:.98rem; color:#222; }
.acc-card .acc-desc{ font-family:'Raleway',sans-serif; font-size:.82rem; color:#6b6459; line-height:1.3; }
.acc-no-results{ text-align:center; font-family:'Raleway',sans-serif; color:#888; display:none; padding:2rem 0; }

/* ── RECURSOS ─────────────────────────────────── */
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 10px 0 20px; }
.rec-item img { width: 100%; height: 210px; object-fit: cover; margin-bottom: 14px; }
.rec-date { font-size: .72rem; color: #999; margin-bottom: 6px; letter-spacing: .03em; }
.rec-item h1 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 700; color: #1a1a1a; }
.rec-item h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 700; color: #1a1a1a; }

/* ── ACERCA ───────────────────────────────────── */
.about-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.about-img img { width: 100%; height: auto; object-fit: cover; }
.about-txt h1 { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.about-txt .sub { font-size: .8rem; color: #888; font-style: italic; margin-bottom: 22px; display: block; }
.about-txt p { font-size: .9rem; color: #444; line-height: 1.9; }
.quote-block { margin-top: 40px; padding: 26px 30px; background: #f8f8f8; border-left: 3px solid #1a1a1a; }
.quote-block .q-text { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-style: italic; color: #1a1a1a; display: block; margin-bottom: 10px; }
.quote-block cite { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 700; color: #1a1a1a; font-style: normal; }

/* ── RESERVA / CALENDARIO ─────────────────────── */
.book-section { max-width: 640px; margin: 0 auto; padding: 0 60px 80px; text-align: center; }
.book-section .info { font-size: .9rem; color: #555; line-height: 1.85; margin-bottom: 28px; }
.book-form { text-align: left; margin-bottom: 24px; }
.book-form label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 7px;
  margin-top: 18px;
}
.book-form select, .book-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0d0d0;
  font-family: 'Raleway', sans-serif;
  font-size: .88rem;
  color: #2d2d2d;
  background: #fff;
  outline: none;
}
.book-btn {
  display: inline-block;
  padding: 13px 44px;
  background: #1a1a1a;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background .2s;
}
.book-btn:hover { background: #333; }

/* ── FOOTER ───────────────────────────────────── */
.footer { background: #fff; border-top: 1px solid #e5e5e5; text-align: center; padding: 44px 32px; margin-top: auto; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 700; color: #1a1a1a; margin-bottom: 7px; }
.footer-email a { font-size: .8rem; color: #555; text-decoration: underline; transition: color .15s; }
.footer-email a:hover { color: #1a1a1a; }
.footer-copy { margin-top: 8px; font-size: .72rem; color: #bbb; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 960px) {
  .two-col, .two-col-rev { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .rec-grid { grid-template-columns: 1fr; }
  .about-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .hdr-top { height: 66px; }
  .hdr-nav {
    display: none;
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    padding: 0;
  }
  .hdr-nav.open { display: block; }
  .hdr-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 14px 20px 20px; }
  .hdr-nav li a { font-size: .85rem; padding: 10px 0; }
  .brand-logo-img { max-height: 42px; max-width: 140px; }
  .hero-txt { padding: 60px 28px; }
  .hero-txt h1 { font-size: 3.2rem; }
  .content-section, .pg-hero, .pg-content { padding-left: 28px; padding-right: 28px; }
  .testi-inner { padding-left: 28px; padding-right: 28px; }
  .svc-grid { padding-left: 28px; padding-right: 28px; }
  .book-section { padding-left: 28px; padding-right: 28px; }
}
