/* styles.css - General Layout & Components */

.app-shell {
  padding-top: var(--app-header-height);
}

.brand-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--app-header-height);
  background: var(--app-header-bg);
  color: var(--app-header-fg);
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.brand-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
}

.brand-header__logos {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
}

.brand-header__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-header__logo {
  height: 34px;
  width: auto;
  display: block;
}

.brand-header__logo--main {
  height: 46px;
}

.brand-header__logo--partner {
  height: 36px;
}

.brand-header__logo--invert {
  filter: brightness(0) invert(1);
}

.brand-header__divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.22);
}

.brand-header__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-header__link {
  color: var(--app-header-fg-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background-color 0.2s, color 0.2s;
}

.brand-header__link:hover {
  color: var(--app-header-fg);
  background: rgba(255, 255, 255, 0.10);
}

@media (max-width: 860px) {
  .brand-header__nav {
    display: none;
  }
}

.site-footer {
  margin-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--border-color) 35%, transparent);
  background: color-mix(in srgb, var(--bg-card) 10%, #ffffff);
  padding: 26px 0;
  color: var(--text-main);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  width: 100%;
}

.site-footer__logo {
  height: 44px;
  width: auto;
  display: block;
}

.site-footer__logo--mono {
  filter: grayscale(1) brightness(0);
  opacity: 0.92;
}

.site-footer__brand-divider {
  width: 1px;
  height: 30px;
  background: color-mix(in srgb, var(--border-color) 70%, transparent);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 16px 22px;
  flex: 1;
  width: min(980px, 100%);
  margin: 10px auto 0;
}

.site-footer__col {
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
}

.site-footer__title {
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.site-footer__link {
  text-decoration: none;
  font-weight: 650;
  color: var(--text-muted);
  display: inline-block;
}

.site-footer__link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.site-footer__meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.site-footer__bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  display: grid;
  gap: 6px;
  text-align: center;
}

@media (max-width: 860px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
    min-width: 100%;
  }
  .site-footer__brand {
    width: 100%;
    justify-content: center;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--primary {
  background-color: var(--primary);
  color: white !important;
}

.btn--primary:hover {
  background-color: var(--primary-dark);
}

.btn--folder {
  background-color: var(--bg-soft);
  border: 1px solid var(--border-color);
  color: var(--text-main) !important;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.10);
  margin-top: auto;
  width: fit-content;
}

.btn--folder:hover {
  background-color: rgba(0, 119, 200, 0.12);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.14);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero__kicker {
  color: var(--primary) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted) !important;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards Grid */
.card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.12);
  border-color: var(--primary);
}

.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card__desc {
  color: var(--text-muted) !important;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Evidence Card Specific Overrides */
.evidence-card .card__desc {
  flex-grow: 0;
  margin-bottom: 1rem;
}

.evidence-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.evidence-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.evidence-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.evidence-list h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-main);
}

.evidence-list p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Section Titles */
.section__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-main);
  text-align: center;
}

/* Contact / Form Sections */
.contact {
  padding: 4rem 0;
}

.contact__inner {
  display: flex;
  flex-direction: column;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__info {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.contact__info p {
  margin-bottom: 1rem;
}

.contact__info strong {
  color: var(--text-main);
}

@media (max-width: 992px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Forms */
.contact__form {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
}

.contact__form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main) !important;
}

.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="number"],
.contact__form input[type="tel"],
.contact__form input[type="date"],
.contact__form input[type="time"],
.contact__form input[type="password"],
.contact__form select,
.contact__form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-main);
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

#beneficiarios-form input[type="text"],
#beneficiarios-form input[type="email"],
#beneficiarios-form input[type="number"],
#beneficiarios-form input[type="tel"],
#beneficiarios-form input[type="date"],
#beneficiarios-form input[type="time"],
#beneficiarios-form input[type="password"],
#beneficiarios-form select,
#beneficiarios-form textarea {
  background-color: color-mix(in srgb, var(--primary) 4%, var(--bg-input));
  border-color: color-mix(in srgb, var(--primary) 10%, var(--border-color));
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.page-standalone .main-content {
  margin-left: 0;
  width: 100%;
  padding: 0;
}

.page-standalone .content-wrapper {
  padding: 0;
}

.page-standalone .whatsapp-container,
.page-standalone .chatbot-float,
.page-standalone .chatbot-window {
  display: none !important;
}

/* Custom Properties */
.theme-agro {
  --primary: #2a7cd6;
  --primary-dark: #1e5ea4;
  --success: #12b59a;
  --warning: #f3b42a;
  --danger: #ef4444;
  --bg-body: #f6f8fc;
  --bg-hover: rgba(42, 124, 214, 0.08);
  --bg-soft: rgba(42, 124, 214, 0.06);
  --border-focus: #2a7cd6;
  
  /* Nuevas variables de tema Púrpura (Accesibilidad WCAG 2.1) */
  --theme-blue: #0052cc;
  --theme-purple-dark: #4B0082;
  --theme-purple-light: #DDA0DD;
  --theme-purple-accent: #E6B3FF;
  --theme-purple-text: #FFFFFF;
}

.ag-page {
  min-height: calc(100vh - var(--app-header-height));
}

.ag-hero {
  background: #1f2937;
  border-bottom: 1px solid var(--border-color);
  color: var(--theme-purple-text);
}

.ag-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.5rem;
}

.ag-hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--theme-purple-text);
}

.ag-hero__subtitle {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 70ch;
}

.ag-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.ag-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.06);
  overflow: hidden;
}

.ag-card__bar {
  height: 6px;
  background: #d1d5db;
}

.ag-card__body {
  padding: 1.25rem;
}

/* Form polish for UPA representative/participants sections */
.ag-card .contact__form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  padding: 1.25rem;
}

.ag-card .ag-field label {
  font-weight: 700;
  color: #111827 !important;
  margin-bottom: 0.42rem;
  letter-spacing: 0.1px;
}

.ag-card .contact__form input:not([type="file"]),
.ag-card .contact__form select,
.ag-card .contact__form textarea {
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  border-radius: 10px;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ag-card .contact__form textarea {
  min-height: 96px;
  resize: vertical;
}

.ag-card .contact__form input::placeholder,
.ag-card .contact__form textarea::placeholder {
  color: color-mix(in srgb, var(--text-muted) 78%, #6b7280);
}

.ag-card .contact__form input:not([type="file"]):focus,
.ag-card .contact__form select:focus,
.ag-card .contact__form textarea:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.22);
  background-color: #ffffff;
}

.ag-card .contact__form .btn--primary {
  margin-top: 0.95rem;
  border-radius: 10px;
  font-weight: 700;
  padding: 0.72rem 1.2rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.14);
}

/* Premium micro-interactions */
.ag-card .ag-field {
  position: relative;
  transition: transform 0.18s ease;
}

.ag-card .ag-field:focus-within {
  transform: translateY(-1px);
}

.ag-card .ag-field label {
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.ag-card .ag-field.is-focused label,
.ag-card .ag-field.has-value label {
  color: #1f2937 !important;
  letter-spacing: 0.18px;
}

.ag-card .contact__form input:not([type]),
.ag-card .contact__form input[type="text"],
.ag-card .contact__form input[type="email"],
.ag-card .contact__form input[type="number"],
.ag-card .contact__form input[type="tel"],
.ag-card .contact__form textarea {
  padding-left: 2.2rem;
  background-repeat: no-repeat;
  background-position: 0.72rem center;
  background-size: 16px 16px;
}

.ag-card .contact__form textarea {
  background-position: 0.72rem 0.78rem;
}

.ag-card .contact__form input:not([type]),
.ag-card .contact__form input[type="text"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7.5' r='4'/%3E%3Cpath d='M4 21c1.7-4 4.6-6 8-6s6.3 2 8 6'/%3E%3C/svg%3E");
}

.ag-card .contact__form input[type="email"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.ag-card .contact__form input[type="tel"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2A19.8 19.8 0 0 1 3.1 5.2 2 2 0 0 1 5.1 3h3a2 2 0 0 1 2 1.7c.1 1 .3 2 .7 2.9a2 2 0 0 1-.4 2.1l-1.3 1.3a16 16 0 0 0 3.8 3.8l1.3-1.3a2 2 0 0 1 2.1-.4c.9.4 1.9.6 2.9.7a2 2 0 0 1 1.8 2.1z'/%3E%3C/svg%3E");
}

.ag-card .contact__form input[type="number"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 8h4M7 12h10M7 16h6'/%3E%3C/svg%3E");
}

.ag-card .contact__form textarea {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 0 6.5 22H20'/%3E%3Cpath d='M6 2h11l5 5v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
}

.ag-card .ag-field.has-value input:not([type="file"]),
.ag-card .ag-field.has-value textarea,
.ag-card .ag-field.has-value select {
  border-color: #9ca3af;
}

@media (max-width: 860px) {
  .ag-card .contact__form input:not([type]),
  .ag-card .contact__form input[type="text"],
  .ag-card .contact__form input[type="email"],
  .ag-card .contact__form input[type="number"],
  .ag-card .contact__form input[type="tel"],
  .ag-card .contact__form textarea {
    padding-left: 2rem;
    background-position: 0.62rem center;
  }
}

/* Table styles with Purple Theme */
.ag-table-container {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.ag-table {
  width: 100%;
  background: #ffffff;
  border-collapse: collapse;
}

.ag-table thead th {
  background-color: var(--theme-purple-dark);
  color: var(--theme-purple-text);
  text-align: left;
  padding: 0.8rem 1rem;
  font-weight: 600;
  border-bottom: 2px solid color-mix(in srgb, var(--theme-purple-dark) 20%, transparent);
  white-space: nowrap;
}

.ag-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.ag-table tbody tr:last-child td {
  border-bottom: none;
}

.ag-table tbody tr:hover {
  background-color: #f8fafc;
}

.ag-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 860px) {
  .ag-form-grid {
    grid-template-columns: 1fr;
  }
}

.ag-field {
  display: flex;
  flex-direction: column;
}

.ag-field--full {
  grid-column: 1 / -1;
}

.ag-required {
  color: var(--danger);
  margin-left: 4px;
  font-weight: 700;
}

.ag-hint {
  margin-top: -0.6rem;
  margin-bottom: 0.9rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.ag-alert {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: color-mix(in srgb, var(--primary) 8%, #ffffff);
}

.ag-alert--error {
  border-color: color-mix(in srgb, var(--danger) 30%, var(--border-color));
  background: color-mix(in srgb, var(--danger) 8%, #ffffff);
}

.ag-alert--ok {
  border-color: color-mix(in srgb, var(--success) 28%, var(--border-color));
  background: color-mix(in srgb, var(--success) 10%, #ffffff);
}

.ag-dependent {
  display: none;
}

.ag-dependent.is-open {
  display: block;
}

/* Animations and Transitions */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom File Input Styling */
input[type="file"] {
  color: transparent; /* Hide the default "No file chosen" text */
  font-family: inherit;
}

input[type="file"]::file-selector-button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  margin-right: 1rem;
  transition: background-color 0.2s;
  font-family: inherit;
}

input[type="file"]::file-selector-button:hover {
  background-color: var(--primary-dark);
}

.contact__form input[type="file"] {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
}

/* File Name Display (JS generated) */
.file-name-display {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
  word-break: break-all;
}

/* --- Utility Classes --- */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-sm { font-size: 0.9rem; }
.text-xs { font-size: 0.85rem; }
.font-bold { font-weight: bold; }
.w-full { width: 100%; }
.max-w-full { max-width: 100%; }
.hidden { display: none; }
.border-bottom-primary { border-bottom: 2px solid var(--primary); }
.grid-gap-4 { display: grid; gap: 1rem; }
.text-muted { color: var(--text-muted) !important; }

/* --- Flexbox Utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }

/* --- Styles extracted from sections/talento-humano.php --- */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
}

.doc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.doc-card:hover {
    border-color: var(--success);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
}

.doc-label {
    font-weight: 600;
    color: var(--success) !important;
    margin-bottom: 0.5rem;
}

.doc-card input[type="file"]::file-selector-button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.doc-card input[type="file"]::file-selector-button:hover {
    background: var(--primary-dark);
}

/* Budget Section Styles */
.budget-row-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 40px;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

/* Make budget inputs smaller to fit in one line */
.budget-row-grid input {
  margin-bottom: 0 !important; /* Override default margin */
  padding: 0.4rem 0.5rem !important; /* Smaller padding */
  font-size: 0.9rem;
  height: 36px; /* Explicit height to match button */
}

/* Red Square Remove Button */
.btn-remove {
  background-color: var(--danger);
  color: var(--text-inverse);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 4px; /* Slight radius for square look */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
  padding: 0;
}

.btn-remove:hover {
  background-color: color-mix(in srgb, var(--danger) 80%, #000);
}

/* Responsive adjustment for budget rows */
@media (max-width: 768px) {
  .budget-row-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .budget-desc {
    grid-column: 1 / -1;
  }
  
  .btn-remove {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Secondary Button */
.btn--secondary {
  background-color: var(--secondary);
  color: white !important;
  border: none;
}

.btn--secondary:hover {
  background-color: color-mix(in srgb, var(--secondary) 80%, #000);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Map Section Styles */
.map-full-width {
    grid-column: 1 / -1;
    width: 100%;
}

.map-container {
    height: 600px;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    z-index: 1;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.map-filter-group {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-filter-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
}

.map-actions {
    display: flex;
    gap: 1rem;
}

#mapa .contact__grid {
    grid-template-columns: 1fr;
}
