/* ============================================
   STRATEGA - Estilos principales
   Paleta: Vino #9B2743  /  Gris #54585A  /  Blanco #FFFFFF
   ============================================ */

:root {
  --color-vino: #9B2743;
  --color-vino-dark: #7a1e35;
  --color-vino-light: #b83a58;
  --color-gris: #54585A;
  --color-gris-dark: #2c2f31;
  --color-gris-light: #8a8d8f;
  --color-bg: #ffffff;
  --color-bg-soft: #f6f7f9;
  --color-bg-dark: #1c1f21;
  --color-text: #2c2f31;
  --color-text-soft: #5a5e60;
  --color-border: #e3e6ea;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.12);
  --radius: 6px;
  --radius-lg: 14px;
  --container: 1200px;
  --transition: .25s ease;
  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-vino); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-vino-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
  color: var(--color-gris-dark);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-soft { background: var(--color-bg-soft); }
.section-dark { background: var(--color-bg-dark); color: #eaeaea; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-vino);
  margin-bottom: 12px;
}
.section-header p { color: var(--color-text-soft); font-size: 1.05rem; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary { background: var(--color-vino); color: #fff; border-color: var(--color-vino); }
.btn-primary:hover { background: var(--color-vino-dark); border-color: var(--color-vino-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--color-vino); }
.btn-outline-dark { background: transparent; color: var(--color-vino); border-color: var(--color-vino); }
.btn-outline-dark:hover { background: var(--color-vino); color: #fff; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--color-gris-dark);
  color: #cfd2d4;
  font-size: .85rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.top-bar .info { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar .info span svg { vertical-align: middle; margin-right: 6px; }
.top-bar a { color: #cfd2d4; }
.top-bar a:hover { color: #fff; }

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; padding-bottom: 14px;
}
.site-logo img { max-height: 56px; width: auto; }
.site-logo .text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--color-vino); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--color-gris-dark);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  border-radius: var(--radius);
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a {
  color: var(--color-vino);
  background: rgba(155, 39, 67, .06);
}
.main-nav .menu-item-has-children > a::after {
  content: " v"; font-size: .7rem; opacity: .5;
}
.main-nav .sub-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #fff;
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 8px;
  flex-direction: column;
}
.main-nav li:hover > .sub-menu { display: flex; }
.main-nav .sub-menu a { font-size: .9rem; padding: 8px 14px; }

.nav-cta { margin-left: 12px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--color-gris-dark); margin: 5px 0; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center;
  background: linear-gradient(rgba(28,31,33,.55), rgba(28,31,33,.65)), url('../images/hero-1.jpg') center/cover;
  color: #fff;
  text-align: left;
  padding: 100px 0;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; max-width: 620px; margin-bottom: 32px; opacity: .92; }
.hero .eyebrow {
  display: inline-block;
  background: var(--color-vino);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--color-vino);
  color: #fff;
  padding: 36px 0;
}
.stats-bar .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats-bar .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.stats-bar .label { font-size: .9rem; opacity: .9; margin-top: 6px; letter-spacing: .05em; text-transform: uppercase; }

/* ===== SERVICIOS GRID ===== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex; flex-direction: column;
  border: 1px solid var(--color-border);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card .img {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  position: relative;
}
.service-card .img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent 50%, rgba(155,39,67,.85));
}
.service-card .icon {
  position: absolute; bottom: 14px; left: 14px;
  width: 48px; height: 48px;
  background: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  z-index: 2;
  box-shadow: var(--shadow-md);
}
.service-card .icon svg { width: 24px; height: 24px; color: var(--color-vino); }
.service-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { color: var(--color-text-soft); font-size: .92rem; flex: 1; }
.service-card .more {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.service-card .more::after { content: " ->"; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid .img-side img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-grid .pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.about-grid .pillar {
  background: #fff;
  border-left: 4px solid var(--color-vino);
  padding: 18px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.about-grid .pillar h4 { color: var(--color-vino); margin-bottom: 6px; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.about-grid .pillar p { font-size: .9rem; color: var(--color-text-soft); margin: 0; }

/* ===== VALORES ===== */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-item {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: left;
}
.value-item .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-vino);
  line-height: 1;
}
.value-item h4 { margin: 12px 0 8px; }
.value-item p { font-size: .92rem; color: var(--color-text-soft); margin: 0; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(rgba(155,39,67,.92), rgba(122,30,53,.95)), url('../images/cta-banner.jpg') center/cover fixed;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { font-size: 1.1rem; max-width: 720px; margin: 0 auto 30px; opacity: .95; }

/* ===== PAGE HERO (interior) ===== */
.page-hero {
  background: linear-gradient(rgba(28,31,33,.7), rgba(28,31,33,.8)), url('../images/hero-2.jpg') center/cover;
  color: #fff;
  padding: 90px 0 70px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero .breadcrumbs { font-size: .85rem; opacity: .85; }
.page-hero .breadcrumbs a { color: #fff; }
.page-hero .breadcrumbs a:hover { color: var(--color-vino-light); }

/* ===== PAGE CONTENT ===== */
.page-content { padding: 70px 0; }
.page-content .layout { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.page-content article h2 { margin-top: 1.5em; }
.page-content article h3 { margin-top: 1.3em; color: var(--color-vino); }
.page-content article ul { padding-left: 0; list-style: none; }
.page-content article ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}
.page-content article ul li::before {
  content: "v"; /* checkmark substitute */
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--color-vino);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .7rem;
  font-weight: bold;
}

/* sidebar */
.sidebar-box {
  background: var(--color-bg-soft);
  padding: 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
}
.sidebar-box h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--color-vino); }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box ul li { border-bottom: 1px solid var(--color-border); }
.sidebar-box ul li:last-child { border-bottom: 0; }
.sidebar-box ul li a {
  display: block;
  padding: 12px 0;
  color: var(--color-gris-dark);
  font-weight: 500;
  font-size: .95rem;
}
.sidebar-box ul li a::before {
  content: "> "; color: var(--color-vino); font-weight: 700;
}
.sidebar-box ul li a:hover { color: var(--color-vino); padding-left: 6px; }

.sidebar-cta {
  background: var(--color-vino);
  color: #fff;
  padding: 30px;
  border-radius: var(--radius-lg);
  text-align: center;
}
.sidebar-cta h3 { color: #fff; margin-bottom: 10px; }
.sidebar-cta p { font-size: .92rem; margin-bottom: 18px; opacity: .95; }
.sidebar-cta .phone { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; color: #fff; }

/* ===== CONTACTO ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info .item {
  display: flex; gap: 16px; margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
.contact-info .item:last-child { border-bottom: 0; }
.contact-info .icon-wrap {
  flex-shrink: 0;
  width: 50px; height: 50px;
  background: var(--color-vino);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
}
.contact-info h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-info p, .contact-info a { color: var(--color-text-soft); font-size: .95rem; margin: 0; line-height: 1.5; }
.contact-info a:hover { color: var(--color-vino); }

.contact-form { background: var(--color-bg-soft); padding: 36px; border-radius: var(--radius-lg); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-gris-dark);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
  margin-bottom: 16px;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-vino);
  box-shadow: 0 0 0 3px rgba(155,39,67,.1);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .form-message { padding: 14px; border-radius: var(--radius); margin-bottom: 18px; font-size: .92rem; }
.contact-form .form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.contact-form .form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.contact-form .hp { position: absolute; left: -9999px; }

.map-embed {
  margin-top: 50px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-bg-dark);
  color: #b0b3b5;
  padding: 70px 0 0;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #b0b3b5; font-size: .92rem; }
.site-footer a:hover { color: var(--color-vino-light); }
.site-footer .footer-logo img { max-height: 56px; width: auto; margin-bottom: 18px; }
.site-footer .footer-about p { font-size: .92rem; line-height: 1.7; }
.site-footer .footer-contact .item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; font-size: .9rem; }
.site-footer .footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--color-vino-light); }
.site-bottom {
  border-top: 1px solid #2c2f31;
  padding: 20px 0;
  text-align: center;
  font-size: .85rem;
}

/* ===== 404 ===== */
.error-404 { text-align: center; padding: 100px 0; }
.error-404 h1 { font-size: 6rem; color: var(--color-vino); margin: 0; line-height: 1; }
.error-404 h2 { margin: 10px 0 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-content .layout { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar .grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .top-bar { display: none; }
  .menu-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 16px;
  }
  .main-nav.open ul { flex-direction: column; gap: 0; }
  .main-nav.open .sub-menu { position: static; box-shadow: none; padding-left: 16px; }
  .nav-cta { display: none; }
  .hero { min-height: 480px; padding: 70px 0; text-align: center; }
  .hero .actions { justify-content: center; }
  .services-grid, .values-grid, .about-grid .pillars { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr; gap: 30px; }
  .stats-bar .grid { grid-template-columns: 1fr 1fr; }
}
