:root {
  --primary: #1f3a5f;
  --primary-dark: #14283f;
  --ink: #1a1a1a;
  --gray: #4d4d4d;
  --bg: #e9e6df;
  --surface: #ffffff;
  --surface-low: #f2efe8;
  --border: #c9c4b6;
  --border-dark: #a9a393;
  --rail: #5a564c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}
h1, h2, h3, .logo {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .2px;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* BOTÓN vintage: borde y "presionado" */
.btn-primary {
  display: inline-block; padding: 9px 20px; background: var(--primary); color: #fff;
  border: 1px solid var(--primary-dark); border-top-color: #3a5a80; border-left-color: #3a5a80;
  box-shadow: 1px 1px 0 var(--primary-dark);
  font-family: Georgia, serif; font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: none;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: translate(1px, 1px); box-shadow: none; }
.rule { width: 120px; height: 3px; background: var(--primary); margin: 0 auto; }

/* TOPBAR clásico con borde doble */
.topbar { background: var(--surface); border-bottom: 3px double var(--border-dark); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 980px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e3e0d8; }
.logo { font-size: 1.15rem; font-weight: 700; letter-spacing: .5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: var(--primary); }
.logo img { width: 30px; height: 30px; object-fit: contain; background: #fff; border: 1px solid var(--border); padding: 2px; }
.topnav { display: flex; gap: 22px; }
.topnav a { font-family: Georgia, serif; font-weight: 700; font-size: .92rem; color: var(--rail); text-transform: uppercase; letter-spacing: .04em; padding: 4px 0; }
.topnav a:hover, .topnav a.active { color: var(--primary); text-decoration: underline; }
.topbar-mail { font-family: Georgia, serif; font-weight: 700; font-size: .88rem; color: var(--primary); }
.topbar-mail:hover { text-decoration: underline; }

/* HERO en contenedor clásico (no fullscreen) */
.hero { background: var(--bg); padding: 44px 0 48px; border-bottom: 1px solid var(--border); }
.hero-box { max-width: 780px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary); padding: 40px 44px; text-align: center; }
.hero .hero-badge { display: inline-block; font-family: Georgia, serif; font-size: .82rem; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); border: 1px solid var(--border); padding: 3px 12px; margin-bottom: 20px; background: var(--surface-low); }
.hero h1 { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 18px; letter-spacing: .2px; }
.hero-sub { font-size: 1.05rem; color: var(--gray); margin-bottom: 26px; font-style: italic; }

/* BLOCKS */
.block { padding: 56px 0; }
.block-gray { background: var(--surface-low); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.block-head { text-align: center; margin-bottom: 40px; }
.block-head h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 14px; letter-spacing: .3px; }
.block-head .rule { margin: 0 auto 12px; }
.block-head .sub { color: var(--gray); max-width: 620px; margin: 0 auto; font-style: italic; }

/* SERVICES: tabla densa tipo ficha */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service { background: var(--surface); border: 1px solid var(--border); padding: 0; display: flex; flex-direction: column; }
.service .service-photo { height: 130px; overflow: hidden; border-bottom: 2px solid var(--border-dark); }
.service .service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service .service-body { padding: 20px 22px; border-top: 4px solid var(--border); }
.service .s-icon { font-size: 1.4rem; display: block; margin-bottom: 10px; color: var(--primary); }
.service h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.service p { color: var(--gray); font-size: .95rem; }
.service .s-meta { font-family: Georgia, serif; font-size: .8rem; color: var(--rail); margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }

/* NOSOTROS */
.nosotros-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.nosotros-text h2 { font-size: 1.55rem; font-weight: 700; margin-bottom: 18px; }
.nosotros-text .lead { font-size: 1.05rem; color: var(--gray); margin-bottom: 14px; font-style: italic; }
.nosotros-text p { margin-bottom: 12px; color: #333; }
.check-list { margin-top: 18px; }
.check-list li { padding: 7px 0 7px 22px; position: relative; color: var(--gray); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; background: var(--primary); border: 1px solid var(--primary-dark); }
.nosotros-figure { display: flex; justify-content: center; }
.figure-photo { width: 100%; max-width: 400px; aspect-ratio: 4/3; background: var(--surface); border: 1px solid var(--border-dark); overflow: hidden; padding: 6px; }
.figure-photo img { width: 100%; height: 100%; object-fit: cover; }

/* CONTACTO */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); }
.contact-info { padding: 40px; border-right: 1px solid var(--border); background: var(--surface-low); }
.c-row { display: flex; gap: 16px; margin-bottom: 24px; }
.c-icon { font-size: 1.4rem; line-height: 1; color: var(--primary); }
.c-row h4 { font-family: Georgia, serif; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--rail); margin-bottom: 6px; }
.c-row a { font-family: Georgia, serif; font-size: 1.15rem; color: var(--primary); font-weight: 700; }
.c-row a:hover { text-decoration: underline; }
.c-row p { color: var(--gray); }
.c-row .sub { font-size: .9rem; margin-top: 4px; }
.contact-form { padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 5px; font-family: Georgia, serif; font-weight: 700; font-size: .86rem; }
.contact-form input, .contact-form textarea { padding: 9px 11px; border: 1px solid var(--border-dark); border-radius: 0; font-family: Georgia, serif; font-size: .95rem; background: var(--surface); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.contact-form .btn-primary { align-self: flex-start; margin-top: 6px; }

/* FOOTER clásico */
.footer { background: var(--primary); color: #fff; padding: 36px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 36px; flex-wrap: wrap; }
.footer-name { font-family: Georgia, serif; font-weight: 700; font-size: 1.1rem; color: #fff; display: inline-flex; align-items: center; gap: 10px; letter-spacing: .3px; }
.footer-name img { width: 30px; height: 30px; object-fit: contain; background: #fff; border: 1px solid #fff; padding: 2px; }
.footer p { opacity: .85; margin-top: 8px; font-family: Georgia, serif; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-family: Georgia, serif; font-size: .92rem; opacity: .85; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-copy { font-size: .82rem; opacity: .7 !important; margin-top: 0 !important; text-align: center; width: 100%; border-top: 1px solid rgba(255,255,255,.25); padding-top: 14px; }

/* Responsive */
@media (max-width: 860px) {
  .services-grid, .nosotros-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .hero-box { padding: 28px 20px; }
  .topnav { display: none; }
  .topbar-inner { gap: 12px; }
  .contact-info { border-right: 0; border-bottom: 1px solid var(--border); }
}
