/*
Theme Name:  Mina Plan Cirilos
Theme URI:   https://kuronox.com
Author:      Marco Rueda / Kuronox
Author URI:  https://kuronox.com
Description: Tema personalizado para Mina Plan Cirilos – Venta de Tepezil en Perote, Veracruz. One-page diseño industrial-natural con sección de producto, instalaciones, nosotros y contacto con botón de WhatsApp.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mina-plan-cirilos
Tags:        one-page, industrial, mining, custom-theme
*/

/* =============================================
   VARIABLES Y RESET
   ============================================= */
:root {
  --stone:    #2b2318;
  --earth:    #4a3728;
  --sand:     #c9a97a;
  --cream:    #f5f0e8;
  --white:    #fdfcf9;
  --green:    #4a7c59;
  --green-lt: #6aab7a;
  --accent:   #d4883a;
  --text:     #1e1810;
  --muted:    #7a6a58;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

/* =============================================
   TIPOGRAFÍA
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
}

/* =============================================
   UTILIDADES
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-label::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--green);
  flex-shrink: 0;
}
.section-label.light { color: var(--sand); }
.section-label.light::before { background: var(--sand); }

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 560px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  padding: 13px 26px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(74,124,89,.3);
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background: var(--green-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(74,124,89,.45);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(201,169,122,.4);
  color: var(--sand);
  padding: 13px 26px;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover {
  border-color: var(--sand);
  background: rgba(201,169,122,.08);
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAV
   ============================================= */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6vw;
  background: rgba(43,35,24,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,169,122,.15);
  transition: padding .3s;
}
#site-nav.scrolled { padding: 10px 6vw; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-brand img.nav-logo,
.nav-logo-img,
.nav-brand .custom-logo {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);  /* logo blanco sobre fondo oscuro */
  transition: opacity .2s;
}
.nav-brand:hover .nav-logo-img,
.nav-brand:hover .custom-logo { opacity: .85; }

/* Si el logo ya es claro, quitar el filter */
.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
  letter-spacing: .02em;
  line-height: 1.2;
}
.nav-brand-text span { color: var(--sand); display: block; font-size: .78rem; font-family: var(--font-body); font-weight: 300; letter-spacing: .06em; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}
.nav-menu a {
  color: rgba(245,240,232,.72);
  font-size: .83rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--sand); }

.nav-wa {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #25D366;
  color: #fff;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 500;
  transition: background .2s, transform .15s;
}
.nav-wa:hover { background: #1fb556; transform: scale(1.03); }
.nav-wa svg { width: 15px; height: 15px; fill: #fff; flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--stone);
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .22;
  filter: grayscale(30%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(43,35,24,.88) 0%,
    rgba(43,35,24,.6) 50%,
    rgba(74,55,40,.75) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74,124,89,.2);
  border: 1px solid rgba(106,171,122,.3);
  color: var(--green-lt);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green-lt);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero-title em {
  font-style: normal;
  color: var(--sand);
}

.hero-desc {
  color: rgba(245,240,232,.6);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 34px;
  max-width: 460px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.hero-img-frame::before {
  content: '';
  position: absolute;
  inset: -18px;
  border: 1.5px solid rgba(201,169,122,.2);
  border-radius: 22px;
  transform: rotate(2.5deg);
}
.hero-img-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  position: relative;
}
.hero-badge {
  position: absolute;
  bottom: -16px; left: -16px;
  background: var(--accent);
  color: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: .76rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 8px 22px rgba(0,0,0,.3);
  z-index: 2;
}
.hero-badge strong { display: block; font-size: 1.05rem; font-weight: 700; }

/* =============================================
   NOSOTROS
   ============================================= */
#nosotros {
  background: var(--cream);
  padding: 100px 6vw;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mv-cards { display: grid; gap: 18px; margin-top: 36px; }

.mv-card {
  background: var(--white);
  border: 1px solid rgba(74,55,40,.1);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 22px 26px;
  transition: box-shadow .2s, transform .2s;
}
.mv-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.07); transform: translateX(4px); }
.mv-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mv-card-icon {
  width: 34px; height: 34px;
  background: rgba(74,124,89,.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.mv-card h3 {
  font-family: var(--font-display);
  font-size: .97rem;
  font-weight: 700;
  color: var(--stone);
}
.mv-card p { color: var(--muted); font-size: .9rem; line-height: 1.65; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-card {
  background: var(--stone);
  border-radius: 14px;
  padding: 26px 22px;
  color: var(--cream);
  transition: transform .2s;
}
.stat-card:hover { transform: scale(1.03); }
.stat-card:nth-child(2) { background: var(--green); margin-top: 22px; }
.stat-card:nth-child(3) { background: var(--earth); }
.stat-card:nth-child(4) { background: var(--accent); margin-top: -22px; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 900; margin-bottom: 4px; }
.stat-label { font-size: .8rem; opacity: .8; line-height: 1.35; }

/* =============================================
   PRODUCTO
   ============================================= */
#producto {
  background: var(--white);
  padding: 100px 6vw;
}

.producto-header { margin-bottom: 56px; }

.producto-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 60px;
  align-items: start;
}

.producto-desc {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.props-list { display: grid; gap: 10px; margin-bottom: 28px; }
.prop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: 10px;
  font-size: .87rem;
}
.prop-icon {
  width: 30px; height: 30px;
  background: rgba(74,124,89,.13);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.prop-key { font-weight: 500; color: var(--stone); min-width: 130px; }
.prop-val { color: var(--muted); }

.usos-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--stone);
}
.usos-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.uso-tag {
  background: var(--cream);
  border: 1px solid rgba(74,55,40,.12);
  color: var(--earth);
  padding: 5px 13px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 500;
}

/* foto mosaico producto */
.foto-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 230px 200px;
  gap: 10px;
}
.foto-mosaic .fm-main {
  grid-row: 1 / 3;
  border-radius: 16px;
  overflow: hidden;
}
.foto-mosaic .fm-main img,
.foto-mosaic .fm-sm img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.foto-mosaic .fm-sm {
  border-radius: 12px;
  overflow: hidden;
}

/* =============================================
   INSTALACIONES
   ============================================= */
#instalaciones {
  background: var(--stone);
  padding: 100px 6vw;
}
#instalaciones .section-title { color: var(--cream); }
#instalaciones .section-sub { color: rgba(245,240,232,.5); }

.inst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}

.inst-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(201,169,122,.13);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.inst-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(0,0,0,.4); }

.inst-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.inst-body { padding: 18px 20px; }
.inst-body h3 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: .97rem;
  margin-bottom: 6px;
}
.inst-body p { color: rgba(245,240,232,.48); font-size: .82rem; line-height: 1.5; }

/* galería full bajo instalaciones */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.gallery-strip img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  opacity: .8;
  transition: opacity .2s, transform .2s;
}
.gallery-strip img:hover { opacity: 1; transform: scale(1.02); }

/* =============================================
   FICHA TÉCNICA
   ============================================= */
#ficha {
  background: var(--cream);
  padding: 100px 6vw;
}

.ficha-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 46px;
}

.comp-table {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(74,55,40,.1);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.comp-table table { width: 100%; border-collapse: collapse; }
.comp-table thead th {
  background: var(--green);
  color: #fff;
  padding: 13px 18px;
  text-align: left;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.comp-table tbody tr {
  border-bottom: 1px solid rgba(74,55,40,.07);
  transition: background .15s;
}
.comp-table tbody tr:last-child { border-bottom: none; }
.comp-table tbody tr:hover { background: rgba(74,124,89,.04); }
.comp-table td { padding: 11px 18px; font-size: .88rem; }
.comp-table td:first-child { color: var(--stone); font-weight: 500; }
.comp-table td:last-child { color: var(--green); font-weight: 600; }

.cprop-list { display: grid; gap: 11px; }
.cprop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  background: var(--white);
  border-radius: 9px;
  border: 1px solid rgba(74,55,40,.08);
}
.cprop-key { font-size: .86rem; font-weight: 500; color: var(--stone); }
.cprop-val { font-size: .86rem; color: var(--muted); text-align: right; max-width: 55%; }

/* =============================================
   CONTACTO
   ============================================= */
#contacto {
  background: var(--white);
  padding: 100px 6vw;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.contact-cards { display: grid; gap: 14px; margin-top: 36px; }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--cream);
  border-radius: 13px;
  border: 1px solid rgba(74,55,40,.08);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.contact-card:hover { transform: translateX(4px); box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.cc-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.cc-wa { background: #25D366; }
.cc-mail { background: var(--green); }
.cc-loc { background: var(--accent); }
.cc-web { background: var(--earth); }
.contact-card h4 {
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 3px;
}
.contact-card p { font-size: .92rem; color: var(--stone); font-weight: 500; }

.map-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(74,55,40,.1);
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  height: 380px;
}
.map-wrap iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--stone);
  padding: 40px 6vw;
  border-top: 1px solid rgba(201,169,122,.15);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { color: rgba(245,240,232,.38); font-size: .8rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--sand); font-size: .8rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-credit {
  width: 100%;
  text-align: center;
  color: rgba(245,240,232,.22);
  font-size: .72rem;
  margin-top: 12px;
  border-top: 1px solid rgba(201,169,122,.08);
  padding-top: 14px;
}
.footer-credit a { color: var(--sand); opacity: .6; }
.footer-credit a:hover { opacity: 1; }

/* =============================================
   WHATSAPP FLOTANTE
   ============================================= */
.wa-fab {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 999;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(37,211,102,.4);
  text-decoration: none;
  animation: wa-pulse 2.8s infinite;
  transition: transform .2s, box-shadow .2s;
}
.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37,211,102,.55);
  animation: none;
}
.wa-fab svg { width: 28px; height: 28px; fill: #fff; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 22px rgba(37,211,102,.4); }
  50%       { box-shadow: 0 6px 36px rgba(37,211,102,.68); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .hero-inner,
  .nosotros-grid,
  .producto-grid,
  .ficha-grid,
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }

  .hero-visual { display: none; }
  .inst-grid { grid-template-columns: 1fr 1fr; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }

  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(43,35,24,.98);
    padding: 20px 6vw;
    gap: 18px;
    border-top: 1px solid rgba(201,169,122,.15);
  }
}

@media (max-width: 600px) {
  .inst-grid,
  .gallery-strip { grid-template-columns: 1fr; }
  .foto-mosaic { grid-template-columns: 1fr; grid-template-rows: auto; }
  .foto-mosaic .fm-main { grid-row: auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card:nth-child(2),
  .stat-card:nth-child(4) { margin-top: 0; }
}
