/* ==========================================================================
   CENTRO TORNILLERO ACAPULCO - GLOBAL STYLES & LAYOUT (TEMA ORIGINAL CLARO)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');
@import url('variables.css');

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body.has-mobile-bar {
  padding-bottom: calc(var(--mobile-bar-height) + 12px);
}

@media (min-width: 992px) {
  body.has-mobile-bar {
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); letter-spacing: -0.015em; font-weight: 800; }
h3 { font-size: clamp(1.25rem, 3vw, 1.7rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }

p {
  color: var(--text-muted);
}

/* Specific text color helpers */
.text-lime {
  color: var(--primary) !important;
}

.text-navy {
  color: var(--navy-heading) !important;
}

.text-blue {
  color: var(--secondary) !important;
}

.text-white {
  color: var(--text-white) !important;
}

/* Section Spacing */
.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* Pill Tag como en la Captura 2 */
.section-pill-tag {
  display: inline-block;
  background-color: var(--bg-surface-alt);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.section-title {
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-align: center;
}

/* Botón Verde Lima Oficial (como 'Más información' y 'Ubicación') */
.btn-primary, .btn-lime {
  background-color: var(--primary);
  color: #111827;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover, .btn-lime:hover {
  background-color: var(--primary-hover);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(134, 196, 51, 0.45);
}

/* Botón Azul Real Oficial (como 'Contáctenos ahora') */
.btn-blue, .btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--secondary-glow);
}

.btn-blue:hover, .btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(32, 131, 253, 0.45);
}

/* Botón WhatsApp */
.btn-whatsapp {
  background-color: var(--accent-whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--whatsapp-glow);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* Botón Contorno */
.btn-outline {
  border: 1.5px solid var(--border-light);
  color: var(--text-heading);
  background-color: #ffffff;
}

.btn-outline:hover {
  border-color: var(--navy-brand);
  background-color: var(--bg-surface);
  color: var(--navy-brand);
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-outline-white:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: #cbd5e1;
  transform: translateY(-3px);
}

/* Grid Utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-lime {
  background: var(--primary-light);
  color: #4d7c0f;
  border: 1px solid rgba(134, 196, 51, 0.3);
}

.badge-navy {
  background: #edf0f8;
  color: var(--navy-brand);
  border: 1px solid rgba(36, 40, 91, 0.2);
}

.badge-blue {
  background: var(--secondary-light);
  color: var(--secondary);
  border: 1px solid rgba(32, 131, 253, 0.25);
}
