/* ==========================================================================
   SPI Uruguay — pulido visual
   Se carga después de sad-page.css y solo sobrescribe estilos de presentación.
   Para revertir: quitar el <link> a este archivo en page/layout/main.blade.php
   ========================================================================== */

:root {
  --spi-green: #30522f;
  --spi-green-dark: #233d22;
  --spi-green-soft: rgba(48, 82, 47, 0.82);
  --spi-cream: #f7f5ef;
  --spi-ink: #1f2420;
  --spi-muted: #5b625c;
  --spi-line: #e4e1d8;
  --spi-radius: 10px;
  --spi-shadow: 0 6px 24px rgba(31, 36, 32, 0.08);
  --spi-shadow-hover: 0 14px 36px rgba(31, 36, 32, 0.16);
  --spi-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

body {
  color: var(--spi-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Títulos de sección ---------- */
.nosotros-title h1,
.servicios-title h1 {
  font-family: var(--spi-serif);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: 0.01em;
  color: var(--spi-green-dark);
  opacity: 1;
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 8px;
}

.nosotros-title h1::after,
.servicios-title h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 2px;
  background: var(--spi-green);
  transform: translateX(-50%);
}

@media (max-width: 576px) {
  .nosotros-title h1,
  .servicios-title h1 {
    font-size: 32px;
  }
}

/* ---------- Nosotros ---------- */
.nosotros-text {
  max-width: 920px;
  margin: 0 auto;
}

.nosotros-text p {
  color: var(--spi-muted);
  opacity: 1;
  font-size: 18px;
  line-height: 1.75;
}

.nosotros-text p:last-child {
  font-family: var(--spi-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--spi-green);
  margin-top: 8px;
}

@media (min-width: 1400px) {
  .nosotros-text p { font-size: 19px; }
}

@media (max-width: 500px) {
  .nosotros-text p { font-size: 15px; line-height: 1.65; }
  .nosotros-text p:last-child { font-size: 20px; }
}

/* ---------- Servicios ---------- */
.servicios-text {
  align-content: flex-start;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .servicios-text {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.servicios-box {
  border-radius: var(--spi-radius);
  overflow: hidden;
  box-shadow: var(--spi-shadow);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.servicios-box img {
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.servicios-text:hover .servicios-box {
  box-shadow: var(--spi-shadow-hover);
  transform: translateY(-4px);
}

.servicios-text:hover .servicios-box img {
  transform: scale(1.06);
}

.servicios-caption {
  height: auto;
  min-height: 64px;
  padding: 10px 12px;
  background: var(--spi-green-soft);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.servicios-caption p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.serv-text {
  margin-top: 14px;
  padding: 0 6px;
}

.serv-text p {
  color: var(--spi-muted);
  font-size: 15px;
  line-height: 1.5;
}

@media (min-width: 768px) and (max-width: 1400px) {
  .servicios-caption p { font-size: 14px; }
  .serv-text p { font-size: 14px; }
}

/* ---------- Equipo ---------- */
.equipo-text {
  background: var(--spi-cream);
  border: 1px solid var(--spi-line);
  border-radius: calc(var(--spi-radius) + 4px);
  padding: 28px;
  align-items: center;
  transition: box-shadow 0.35s ease;
}

.equipo-text:hover {
  box-shadow: var(--spi-shadow);
}

.equipo-box {
  margin-left: 0;
  flex-shrink: 0;
  border-radius: var(--spi-radius);
  overflow: hidden;
  box-shadow: var(--spi-shadow);
}

.equipo-box img {
  display: block;
}

.equipo-caption {
  height: auto;
  min-height: 48px;
  padding: 8px 10px;
  background: linear-gradient(to top, rgba(35, 61, 34, 0.85), rgba(35, 61, 34, 0));
}

.equipo-caption p {
  font-size: 14px;
  font-weight: 400;
}

.eq-text {
  margin-left: 2.5rem;
}

.eq-text h2 {
  font-family: var(--spi-serif);
  font-weight: 500;
  font-size: 28px;
  color: var(--spi-ink);
  margin-bottom: 4px;
}

.eq-text h4 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--spi-green);
  margin-bottom: 14px;
}

.eq-text p {
  color: var(--spi-muted);
  opacity: 1;
  font-size: 15px;
  line-height: 1.6;
}

@media (min-width: 768px) and (max-width: 1400px) {
  .eq-text p { font-size: 14px; }
  .eq-text h2 { font-size: 24px; }
}

@media (max-width: 767px) {
  .equipo-text {
    padding: 20px;
    margin-left: 15px;
    margin-right: 15px;
  }
  .equipo-box { margin-bottom: 18px; }
  .eq-text { margin-left: 0; }
  .eq-text h2 { font-size: 22px; }
}

/* ---------- Encabezado ---------- */
#header {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid var(--spi-line);
}

.contact-info p {
  font-size: 15px;
  color: var(--spi-muted);
}

.contact-info .fa {
  color: var(--spi-green);
  margin-right: 4px;
}

.navbar-nav .nav-link {
  position: relative;
  color: var(--spi-ink) !important;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-left: 1.1rem !important;
  padding-right: 1.1rem !important;
  transition: color 0.25s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 2px;
  height: 2px;
  background: var(--spi-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--spi-green) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
  transform: scaleX(1);
}

/* Logo redondo */
.navbar-brand img {
  width: auto;
  height: 110px;
  margin-top: 4px;
  margin-bottom: 4px;
}

@media (min-width: 401px) and (max-width: 992px) {
  .navbar-brand img { height: 80px; }
}

@media (max-width: 400px) {
  .navbar-brand img { height: 60px; margin-top: 0; margin-bottom: 0; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-nav .nav-link {
    font-size: 16px;
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
  }
  .navbar-nav .nav-link::after { left: 0.8rem; right: 0.8rem; }
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp {
  width: 56px;
  height: 56px;
  bottom: 96px;
  background-color: #25d366;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.whatsapp-icon {
  margin-top: 14px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--spi-green-dark);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 40px;
  padding-top: 20px;
}

footer hr {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.heading-footer {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* El bloque de contacto del footer reutiliza .equipo-text: anular la tarjeta */
footer .equipo-text {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 20px 0 0;
  margin-left: 0;
  margin-right: 0;
  align-items: flex-start;
}

footer .equipo-text:hover {
  box-shadow: none;
}

.logo-box {
  flex: 0 0 150px;
  max-width: 150px;
}

.logo-box img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.contacto-text h2,
.footer-form h2 {
  font-family: var(--spi-serif);
  font-weight: 500;
  color: #fff;
}

.footer-form h2 {
  font-size: 26px;
  margin-bottom: 4px;
}

.contacto-text p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.contacto-text .fa {
  color: #9fc39c;
  margin-right: 6px;
}

footer .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

footer .form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

footer .form-control:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: #9fc39c;
  box-shadow: 0 0 0 3px rgba(159, 195, 156, 0.2);
  color: #fff;
}

footer .error {
  color: #ffb4a8;
  font-size: 13px;
}

footer .custom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--spi-green-dark);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

footer .custom-btn:hover {
  background: var(--spi-cream);
  transform: translateY(-1px);
}

footer .copy {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px !important;
  text-align: center;
}

.footer-copy p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  margin-bottom: 0;
  padding-bottom: 20px;
}

/* Evita que márgenes internos se escapen por debajo del fondo verde */
footer {
  display: flow-root;
}

.footer-copy a {
  color: #fff;
}

/* ---------- Accesibilidad: respetar "reducir movimiento" ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .servicios-box,
  .servicios-box img,
  .whatsapp,
  .navbar-nav .nav-link::after {
    transition: none !important;
  }
}
