/* =====================================================
   SyG Servicios Funerarios Integrales - Estilos Base
   Paleta: Navy (#071a2b) + Dorado (#c79b3b)
   ===================================================== */

:root {
  --navy: #071a2b;
  --navy-light: #0f3a52;
  --gold: #c79b3b;
  --gold-light: #e8d5b8;
  --gold-dark: #9d7a2b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
}

/* =====================================================
   HEADER / BRANDING
   ===================================================== */

.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold);
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(7, 26, 43, 0.15);
  border-bottom: 3px solid var(--gold);
}

.site-header.with-menu {
  padding: 0;
  text-align: left;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  text-decoration: none;
}

.brand-link:hover {
  color: var(--gold);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 58px;
  max-width: 170px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-copy h1 {
  color: var(--gold);
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 4px;
}

.brand-copy .tag {
  color: var(--gold-light);
  font-size: 13px;
  margin: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--gold-light);
  margin: 0;
  padding: 9px 12px;
  border-radius: 999px;
}

.main-nav a:hover {
  background: rgba(199, 155, 59, 0.14);
  color: var(--gold);
  text-decoration: none;
}

.main-nav .nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(199, 155, 59, 0.25);
}

.main-nav .nav-cta:hover {
  background: var(--gold-light);
  color: var(--navy);
}

.site-header.small {
  padding: 20px;
}

.site-header .brand h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.site-header .brand .tag {
  font-size: 14px;
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* =====================================================
   MAIN CONTENT AREA
   ===================================================== */

main,
.main-content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 30px 20px;
}

h1 {
  color: var(--navy);
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
}

h2 {
  color: var(--navy);
  font-size: 24px;
  margin: 24px 0 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
}

h3 {
  color: var(--navy-light);
  font-size: 18px;
  margin: 16px 0 12px;
  font-weight: 600;
}

p {
  margin-bottom: 12px;
  color: var(--text-dark);
}

/* =====================================================
   FORMS & INPUTS
   ===================================================== */

form {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  max-width: 900px;
  margin: 24px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

fieldset {
  border: 2px solid var(--gold-light);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  background: var(--bg-white);
}

legend {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg-white);
  padding: 0 8px;
  margin-left: -8px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 6px;
  margin-top: 12px;
}

label:first-of-type {
  margin-top: 0;
}

input[type="text"],
input:not([type]),
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font-family: inherit;
}

input[type="text"]:focus,
input:not([type]):focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 155, 59, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* =====================================================
   BUTTONS
   ===================================================== */

button,
input[type="submit"],
input[type="button"],
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(199, 155, 59, 0.2);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(199, 155, 59, 0.3);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
.btn:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--text-light);
  color: var(--bg-white);
}

.btn-secondary:hover {
  background: var(--text-dark);
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

/* =====================================================
   TABLES
   ===================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

thead {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold);
}

th {
  padding: 16px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dark);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: var(--bg-light);
}

tbody tr:nth-child(even) {
  background-color: rgba(199, 155, 59, 0.03);
}

/* =====================================================
   BADGES & LABELS
   ===================================================== */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pendiente {
  background-color: rgba(245, 158, 11, 0.15);
  color: #92400e;
  border: 1px solid var(--warning);
}

.badge-pagado {
  background-color: rgba(16, 185, 129, 0.15);
  color: #065f46;
  border: 1px solid var(--success);
}

.badge-rechazado {
  background-color: rgba(239, 68, 68, 0.15);
  color: #7f1d1d;
  border: 1px solid var(--error);
}

.badge-averificar {
  background-color: rgba(199, 155, 59, 0.15);
  color: #553c1b;
  border: 1px solid var(--gold);
}

/* =====================================================
   SPECIAL BOXES
   ===================================================== */

.payment-box {
  background: var(--bg-light);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.payment-box p {
  margin-bottom: 10px;
}

.payment-box code {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: "Monaco", "Courier New", monospace;
  color: var(--navy);
  font-weight: 600;
}

/* =====================================================
   ALERTS & STATUS
   ===================================================== */

.alert {
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  border-left: 4px solid;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border-left-color: var(--success);
  color: #065f46;
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border-left-color: var(--warning);
  color: #92400e;
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border-left-color: var(--error);
  color: #7f1d1d;
}

.alert-info {
  background-color: rgba(199, 155, 59, 0.1);
  border-left-color: var(--gold);
  color: #553c1b;
}

/* =====================================================
   LINKS & NAVIGATION
   ===================================================== */

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

nav a {
  display: inline-block;
  margin-right: 20px;
  padding: 8px 12px;
  color: var(--navy);
  border-radius: 4px;
  transition: all 0.2s;
}

nav a:hover {
  background-color: var(--gold-light);
  color: var(--navy);
  text-decoration: none;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-light);
}

.mt-1 {
  margin-top: 8px;
}
.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}
.mt-4 {
  margin-top: 32px;
}

.mb-1 {
  margin-bottom: 8px;
}
.mb-2 {
  margin-bottom: 16px;
}
.mb-3 {
  margin-bottom: 24px;
}
.mb-4 {
  margin-bottom: 32px;
}

.p-1 {
  padding: 8px;
}
.p-2 {
  padding: 16px;
}
.p-3 {
  padding: 24px;
}
.p-4 {
  padding: 32px;
}

.bg-navy {
  background-color: var(--navy);
  color: #fff;
}
.bg-gold {
  background-color: var(--gold);
  color: var(--navy);
}
.bg-light {
  background-color: var(--bg-light);
}

/* =====================================================
   PUBLIC LANDING
   ===================================================== */

.landing-page {
  max-width: 1180px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 28px;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(7, 26, 43, 0.96), rgba(15, 58, 82, 0.92)),
    var(--navy);
  border-radius: 18px;
  padding: 46px;
  color: var(--bg-white);
  overflow: hidden;
  border-bottom: 5px solid var(--gold);
  box-shadow: 0 14px 35px rgba(7, 26, 43, 0.18);
}

.landing-hero h1 {
  color: var(--bg-white);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 760px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  margin-bottom: 12px;
}

.hero-lead {
  color: var(--gold-light);
  font-size: 20px;
  max-width: 680px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-hero {
  font-size: 17px;
  padding: 15px 28px;
}

.hero-note {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 300px;
}

.hero-card {
  align-self: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 213, 184, 0.32);
  border-radius: 16px;
  padding: 28px;
  color: var(--bg-white);
}

.hero-card strong {
  display: block;
  color: var(--gold);
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-card span {
  color: var(--gold-light);
  font-size: 18px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.benefit-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(7, 26, 43, 0.08);
}

.benefit-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  border-radius: 999px;
  font-weight: 900;
  margin-bottom: 14px;
}

.benefit-card h2 {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
  font-size: 18px;
}

.benefit-card p {
  color: var(--text-light);
  margin: 0;
}

.landing-steps,
.landing-cta {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-top: 24px;
}

.landing-steps {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 26px;
  align-items: start;
}

.landing-steps h2,
.landing-cta h2 {
  border: 0;
  padding: 0;
  margin-top: 0;
}

.landing-steps ol {
  margin-left: 22px;
}

.landing-steps li {
  margin-bottom: 14px;
  color: var(--text-dark);
}

.landing-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--gold-light), var(--bg-white));
}

.landing-cta p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
  .site-header {
    padding: 30px 16px;
  }

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

  .main-nav,
  .main-nav a {
    width: 100%;
  }

  .main-nav a {
    text-align: center;
  }

  .site-header .brand h1 {
    font-size: 22px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  main,
  .main-content {
    padding: 20px 16px;
  }

  form {
    padding: 20px;
  }

  fieldset {
    padding: 12px;
  }

  table {
    font-size: 12px;
  }

  th,
  td {
    padding: 10px;
  }

  button,
  input[type="submit"],
  .btn {
    width: 100%;
    padding: 14px;
  }

  .landing-hero,
  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding: 30px 22px;
  }

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

  .hero-actions {
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .site-header .brand h1 {
    font-size: 18px;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
  }

  form {
    padding: 16px;
    margin: 16px auto;
  }

  table {
    display: block;
    overflow-x: auto;
  }

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

  input[type="text"],
  input:not([type]),
  input[type="email"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px; /* Evita zoom en iOS */
  }
}
