/* ============================================================
   COFRÉ Y ASOCIADOS — Hoja de estilos principal
   ============================================================ */

/* ── Variables CSS ── */
:root {
  --color-primary: #1a2e4a;
  --color-accent: #c9a84c;
  --color-accent-dark: #a8893c;
  --color-bg: #fafaf8;
  --color-bg-alt: #f4f4f2;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-white: #ffffff;
  --color-border: #e0ddd6;
  --color-shadow: rgba(26, 46, 74, 0.1);

  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --transition: 0.3s ease;
  --radius: 4px;
  --max-width: 1200px;
}

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

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

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

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

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

a:hover {
  color: var(--color-accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

p {
  color: var(--color-text);
  margin-bottom: 1rem;
}

ul {
  list-style: none;
}

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

section {
  padding: 5rem 0;
}

/* ── Decorative elements ── */
.section-line {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 1rem 0 1.5rem;
}

.section-line--center {
  margin: 1rem auto 1.5rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
}

.section-subtitle--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}
.text-accent {
  color: var(--color-accent);
}
.text-muted {
  color: var(--color-text-muted);
}
.text-white {
  color: var(--color-white);
}
.mb-0 {
  margin-bottom: 0;
}
.mt-2 {
  margin-top: 2rem;
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.1s;
}
.fade-in-delay-2 {
  transition-delay: 0.2s;
}
.fade-in-delay-3 {
  transition-delay: 0.3s;
}
.fade-in-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    padding var(--transition);
  padding: 1.2rem 0;
}

.navbar.scrolled,
.navbar--solid {
  background: var(--color-primary) !important;
  box-shadow: 0 2px 20px var(--color-shadow);
  padding: 0.8rem 0;
}

.navbar__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-white);
  letter-spacing: 0.5px;
  font-weight: bold;
  flex-shrink: 0;
}

.navbar__logo span {
  color: var(--color-accent);
}
.navbar__logo:hover {
  color: var(--color-white);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__link {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 2px;
}

.navbar__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--color-accent);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.navbar__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
  transform-origin: center;
}

.navbar__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle.open span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.nav-overlay.open {
  display: block;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
  text-align: center;
  font-family: var(--font-sans);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-primary);
}

.btn--secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--secondary:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn--white-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--white-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ============================================================
   HERO — Página principal
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-primary) url("img/background.png") center center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 30, 0.85);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(201, 168, 76, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(201, 168, 76, 0.05) 0%,
      transparent 50%
    );
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-top: 80px;
}

.hero__eyebrow {
  color: var(--color-accent);
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero__title {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.hero__subtitle {
  color: var(--color-accent);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 580px;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero__description {
  color: rgba(255, 255, 255, 0.8);
  max-width: 550px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* PAGE HERO — páginas internas */
.page-hero {
  background: var(--color-primary);
  padding: 9rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 30, 0.65);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(201, 168, 76, 0.1) 0%,
    transparent 60%
  );
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero__eyebrow {
  color: var(--color-accent);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 550px;
  margin-bottom: 0;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

/* ============================================================
   GRID & CARDS
   ============================================================ */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-top-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--color-shadow);
  border-top-color: var(--color-accent);
}

.card__icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  line-height: 1;
}

.card__title {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.card__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.card__link {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition:
    gap var(--transition),
    color var(--transition);
}

.card__link:hover {
  color: var(--color-accent-dark);
  gap: 0.7rem;
}

/* ============================================================
   STATISTICS
   ============================================================ */
.stats-section {
  background: var(--color-primary);
  padding: 5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 2.5rem 1.5rem;
  border-right: 1px solid rgba(201, 168, 76, 0.2);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--color-white);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--color-bg-alt);
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 2px 12px var(--color-shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--color-accent);
  opacity: 0.25;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
  pointer-events: none;
}

.testimonial-text {
  color: var(--color-text);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
  border: 2px solid var(--color-accent);
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.testimonial-role {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.stars {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  margin-bottom: 3.5rem;
}
.section-header--center {
  text-align: center;
}

/* ============================================================
   VALUES
   ============================================================ */
.value-card {
  text-align: center;
}

.value-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.08);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--color-accent);
  transition:
    background var(--transition),
    transform var(--transition);
}

.value-card:hover .value-icon {
  background: var(--color-accent);
  transform: scale(1.08);
}

/* ============================================================
   TEAM
   ============================================================ */
.team-card {
  text-align: center;
}

.team-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--color-primary);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 2rem;
  color: var(--color-accent);
  font-weight: bold;
  font-family: var(--font-serif);
  border: 3px solid var(--color-accent);
  transition:
    background var(--transition),
    color var(--transition);
}

.team-card:hover .team-avatar {
  background: var(--color-accent);
  color: var(--color-primary);
}

.team-name {
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.team-specialty {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ============================================================
   SERVICES — Expandable cards
   ============================================================ */
.service-card {
  cursor: pointer;
}

.service-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

.service-card__header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-card__toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.service-card.open .service-card__toggle {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: rotate(45deg);
}

.service-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.service-card.open .service-card__body {
  max-height: 500px;
}

.service-card__body-inner {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.service-list {
  list-style: none;
  margin-bottom: 1.25rem;
}

.service-list li {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.service-list li::before {
  content: "◆";
  color: var(--color-accent);
  font-size: 0.55rem;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-info__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.contact-info__value {
  color: var(--color-text);
  font-weight: 500;
  margin: 0;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.45rem;
  letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5a5a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-error {
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-success {
  background: #d4f5e2;
  border: 1px solid #a3d9b8;
  color: #1a5c38;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 1.25rem;
  display: none;
  font-weight: 500;
}

.form-success.visible {
  display: block;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: 2.5rem;
  box-shadow: 0 2px 12px var(--color-shadow);
}

.map-container iframe {
  width: 100%;
  height: 320px;
  display: block;
  border: none;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--color-primary);
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(201, 168, 76, 0.08) 0%,
    transparent 70%
  );
}

.cta-section__content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ============================================================
   MISSION / VISION
   ============================================================ */
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.mv-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 2px 12px var(--color-shadow);
}

.mv-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================================
   HISTORY
   ============================================================ */
.history-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.history-visual {
  background: var(--color-primary);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.history-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 70%,
    rgba(201, 168, 76, 0.12) 0%,
    transparent 60%
  );
}

.history-year {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 5.5rem;
  color: var(--color-accent);
  opacity: 0.35;
  line-height: 1;
}

.history-tagline {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  font-size: 1.3rem;
  font-family: var(--font-serif);
  margin-top: 0.75rem;
}

.history-divider {
  width: 50px;
  height: 2px;
  background: var(--color-accent);
  margin: 1.25rem auto;
  position: relative;
  z-index: 1;
}

.history-location {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ============================================================
   DIVIDER UTILITY
   ============================================================ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 1.25rem 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-white);
  margin-bottom: 1rem;
  display: block;
}

.footer__logo span {
  color: var(--color-accent);
}
.footer__logo:hover {
  color: var(--color-white);
}

.footer__accent-line {
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 1.25rem;
}

.footer__description {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.footer__heading {
  color: var(--color-accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  transition:
    color var(--transition),
    padding-left var(--transition);
}

.footer__link:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.footer__contact-icon {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.footer__bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.footer__legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer__legal-link {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer__legal-link:hover {
  color: var(--color-accent);
}

/* ============================================================
   SCREEN-READER ONLY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(201, 168, 76, 0.2);
  }

  .stat-item:last-child,
  .stat-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .history-section {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    gap: 0;
    transition: right var(--transition);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow-y: auto;
  }

  .navbar__menu.open {
    right: 0;
  }

  .navbar__link {
    display: block;
    padding: 0.9rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.05rem;
  }

  .navbar__link::after {
    display: none;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(201, 168, 76, 0.2);
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.whatsapp-float__btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.whatsapp-float__btn svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

.whatsapp-float:hover .whatsapp-float__btn {
  transform: scale(1.1);
  background: #1ebe5d;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* Tooltip */
.whatsapp-float__tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  transform: translateY(-50%) translateX(6px);
}

.whatsapp-float__tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--color-primary);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Pulso animado */
.whatsapp-float__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: waPulse 2.4s ease-out infinite;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Pausa al hover para no distraer */
.whatsapp-float:hover .whatsapp-float__btn::before {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .whatsapp-float__btn {
    width: 52px;
    height: 52px;
  }

  .whatsapp-float__btn svg {
    width: 26px;
    height: 26px;
  }

  .whatsapp-float__tooltip {
    display: none;
  }
}
