/* ==========================================================================
   service-page.css
   Shared stylesheet for all SOLUCIONES / service pages
   (Protección Agroindustrial, Administración de PH, Restaurantes, PYMES,
    Profesionales Independientes, Familia y Hogar, Tranquilidad Senior, etc.)

   Usage:
       <link rel="stylesheet" href="css/service-page.css" />
   ========================================================================== */

:root {
    --c-black: #303030;
    --c-yellow: #FFC20E;
    --c-yellow-hover: #e6ad00;
    --c-light: #EEF0F6;
    --c-text: #222222;
    --c-muted: #5a5a5a;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--c-text);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Topbar + Navbar
   -------------------------------------------------------------------------- */
.topbar { height: 4px; background: var(--c-yellow); }

.navbar-av {
    padding-top: 12px;
    padding-bottom: 12px;
    background: var(--c-black) !important;
}

/* Matches index.html / contact.html / aboutus.html so the logo is the same
   size on every page. Was height:44px (~176px wide) — less than half the
   homepage size, which made the brand look inconsistent between pages. */
.navbar-logo {
    width: 390px;
    height: auto;
    max-height: none;
}

/* 992-1199px: the navbar is still expanded, so a 390px logo plus the links
   and the CONTÁCTANOS button overflow the viewport. */
@media (max-width: 1199.98px) {
    .navbar-logo {
        width: 300px;
    }
}

@media (max-width: 575.98px) {
    .navbar-logo {
        width: 285px;
    }
}

.nav-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-left: 1.2rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.nav-link.active,
.nav-link.is-soluciones {
    color: var(--c-yellow) !important;
}

.nav-link.is-soluciones {
    border-bottom: 2px solid var(--c-yellow);
    padding-bottom: 2px;
}

.btn-yellow {
    background: var(--c-yellow);
    color: #1a1a1a;
    font-weight: 700;
    border-radius: 999px;
    padding: 9px 22px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    white-space: nowrap;
    border: none;
}

.btn-yellow:hover {
    background: var(--c-yellow-hover);
    color: #1a1a1a;
}

/* --------------------------------------------------------------------------
   SOLUCIONES dropdown menu
   -------------------------------------------------------------------------- */
.nav-item.dropdown .dropdown-menu {
    background: #1f1f1f;
    border: none;
    border-radius: 6px;
    padding: 14px 0;
    min-width: 230px;
    margin-top: 8px;
}

.dropdown-section-title {
    color: var(--c-yellow);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 1.2px;
    padding: 6px 18px 4px;
    text-transform: uppercase;
}

.dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    padding: 6px 18px;
    font-weight: 500;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item.active {
    background: var(--c-yellow);
    color: #1a1a1a;
}

/* --------------------------------------------------------------------------
   Hero (page title + banner image)
   -------------------------------------------------------------------------- */
.hero-section { padding: 50px 0 30px; background: #fff; }

.tag-label {
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--c-black);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.tag-label.tag-personas {
    text-decoration: none;
    font-weight: 500;
}

.tag-icon {
    color: var(--c-yellow);
    font-size: 1rem;
}

.h-giant {
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.05;
    color: var(--c-black);
    margin-bottom: 35px;
    letter-spacing: -1px;
}

.hero-photo {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center;
    border-radius: 22px;
    display: block;
}

/* --------------------------------------------------------------------------
   Description block (centered title + justified paragraphs)
   -------------------------------------------------------------------------- */
.desc-section { padding: 50px 0 20px; background: #fff; }

.desc-title {
    font-weight: 500;
    font-size: 1.6rem;
    color: var(--c-black);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.3;
}

.desc-subtitle {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--c-black);
    text-align: center;
    margin-bottom: 30px;
}

.desc-body { max-width: 760px; margin: 0 auto; }

.desc-body p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 18px;
    text-align: justify;
}

/* --------------------------------------------------------------------------
   Solution cards grid (2 columns on desktop)
   -------------------------------------------------------------------------- */
.cards-section { padding: 30px 0 60px; background: #fff; }

.cards-grid {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.sol-card {
    position: relative;
    background: var(--c-light);
    border-radius: 14px;
    padding: 24px 26px 28px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease;
    cursor: pointer;
}

.sol-card:hover {
    background: var(--c-yellow);
}

.sol-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
}

.sol-card h3 {
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--c-black);
    margin-bottom: 12px;
    line-height: 1.25;
}

.sol-card p {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--c-muted);
    margin: 0;
    font-weight: 500;
}

.sol-card:hover p { color: #1a1a1a; }

.sol-card-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 38px;
    height: 38px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    background: var(--c-black);
    color: rgba(255, 255, 255, 0.9);
    padding: 28px 0;
}

footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-social a {
    margin-left: 14px;
    font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .h-giant { font-size: 2.6rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .hero-photo { height: 280px; }
    .desc-title { font-size: 1.3rem; }
}
      .whatsapp-float {
        position: fixed;
        width: 70px;
        height: 70px;
        right: 18px;
        bottom: 160px;
        background: #25d366;
        color: #ffffff;
        border-radius: 999px;
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
        animation: whatsapp-pulse 2s infinite;
      }

      .whatsapp-float i {
        font-size: 2.25rem;
        line-height: 1;
      }

      .contact-float {
        position: fixed;
        width: 70px;
        height: 70px;
        right: 18px;
        bottom: 80px;
        background: #ffce3e;
        color: #000;
        border-radius: 999px;
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
      }

      .contact-float i {
        font-size: 2rem;
        line-height: 1;
      }

      .contact-modal .modal-content {
        border-radius: 22px;
        border: 0;
        overflow: hidden;
      }

      .contact-modal .modal-header {
        border: 0;
        padding: 18px 22px 0;
      }

      .contact-modal .modal-body {
        padding: 18px 22px 22px;
      }

      .contact-panel {
        background: var(--c-yellow);
        border-radius: 18px;
        padding: 22px;
      }

      .contact-panel .contact-item {
        display: grid;
        grid-template-columns: 44px 1fr;
        gap: 14px;
        padding: 12px 0;
      }

      .contact-panel .contact-icon {
        width: 44px;
        height: 66px;
        border-radius: 999px;
        border: 2px solid rgba(0, 0, 0, 0.25);
        display: grid;
        place-items: center;
      }

      .contact-panel .contact-icon i {
        font-size: 1.2rem;
        line-height: 1;
      }

      .contact-panel .contact-title {
        font-weight: 800;
        margin: 0 0 4px;
      }

      .contact-panel .contact-desc {
        margin: 0 0 8px;
        font-weight: 500;
        color: rgba(0, 0, 0, 0.75);
        line-height: 1.25;
      }

      .contact-panel .contact-strong {
        margin: 0;
        font-weight: 800;
      }

      .contact-form .form-control,
      .contact-form .form-select {
        border-radius: 999px;
        padding: 14px 18px;
      }

      .contact-form textarea.form-control {
        border-radius: 18px;
        min-height: 140px;
        resize: none;
      }

      .contact-modal .btn-send {
        background: var(--c-yellow);
        border: 0;
        font-weight: 800;
        border-radius: 10px;
        padding: 12px 18px;
      }

      .contact-map {
        border-radius: 18px;
        overflow: hidden;
      }

      @keyframes whatsapp-pulse {
        0% {
          transform: scale(1);
          box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
        }
        70% {
          transform: scale(1.06);
          box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
        }
        100% {
          transform: scale(1);
          box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
        }
      }

.social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social a {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.social a:hover {
  background: var(--brand-dark);
  color: white;
}

.social i {
  font-size: 1.75rem;
  line-height: 1;
}

/* For footers with dark backgrounds, override the border and text color */
.footer-brand-dark ~ div .social a,
.site-footer .social a {
  color: #ffffff;
}

.site-footer .social a:hover {
  background: var(--brand-yellow);
  color: #000;
}
