/* =============================================
   PROVINCIA GESTIÓN Y COBRANZAS SAS — Landing
   ============================================= */

:root {
  --green-dark: #1a4a34;
  --green-mid: #4a7c44;
  --green-light: #84a24a;
  --green-pale: #e8f0e4;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --shadow-sm: 0 1px 3px rgba(26, 74, 52, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 74, 52, 0.1);
  --shadow-lg: 0 10px 40px rgba(26, 74, 52, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-mid);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.header:not(.header--scrolled) {
  background: linear-gradient(to bottom, rgba(26, 74, 52, 0.45), transparent);
}

.header:not(.header--scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.92);
}

.header:not(.header--scrolled) .nav-link:hover {
  color: var(--white);
}

.header:not(.header--scrolled) .nav-link::after {
  background: var(--green-light);
}

.header:not(.header--scrolled) .header__toggle span {
  background: var(--white);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: background var(--transition), box-shadow var(--transition);
}

.header__logo:hover {
  background: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.header__logo img {
  height: 58px;
  width: auto;
  max-height: calc(var(--header-height) - 18px);
  transition: transform var(--transition);
}

.header__logo:hover img {
  transform: scale(1.02);
}

.header__list {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-mid);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--green-dark);
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  transition: var(--transition);
  border-radius: 2px;
}

.header__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../Hero.jpg') center / cover no-repeat;
  padding: calc(var(--header-height) + 60px) 0 80px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 74, 52, 0.82) 0%,
    rgba(26, 74, 52, 0.65) 50%,
    rgba(26, 74, 52, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: var(--white);
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 28px;
  color: var(--green-pale);
}

.hero__text {
  margin-bottom: 36px;
}

.hero__text p {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 12px;
}

.hero__text p:last-child {
  margin-bottom: 0;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--green-light);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(132, 162, 74, 0.35);
}

.btn--primary:hover {
  background: var(--green-mid);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74, 124, 68, 0.4);
}

/* ---- Sections ---- */

.section {
  padding: 100px 0;
}

.section__header {
  margin-bottom: 56px;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.02em;
}

.section__divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--green-mid), var(--green-light));
  border-radius: 2px;
  margin-top: 16px;
}

.section__divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Nosotros ---- */

.section--nosotros {
  background: var(--white);
}

.nosotros__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.nosotros__text p {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.nosotros__text p:last-child {
  margin-bottom: 0;
}

.nosotros__indicators {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.indicator {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.indicator:hover {
  background: var(--green-pale);
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.indicator__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-mid);
  border-radius: 50%;
  color: var(--white);
}

.indicator__icon svg {
  width: 18px;
  height: 18px;
}

.indicator span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.3;
}

/* ---- Actividades ---- */

.section--actividades {
  background: var(--gray-50);
}

.actividades__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.actividad-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.actividad-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.actividad-card__image {
  height: 220px;
  overflow: hidden;
}

.actividad-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.actividad-card:hover .actividad-card__image img {
  transform: scale(1.05);
}

.actividad-card__body {
  padding: 28px 24px 32px;
}

.actividad-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.actividad-card__body p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---- Productores ---- */

.section--productores {
  background: var(--white);
}

.productores__intro {
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 48px;
  line-height: 1.8;
}

.productores__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.productor-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.productor-card:hover {
  background: var(--green-pale);
  border-color: var(--green-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.productor-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  border-radius: 50%;
  color: var(--white);
}

.productor-card__icon svg {
  width: 26px;
  height: 26px;
}

.productor-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-dark);
}

/* ---- Diferenciales ---- */

.section--diferenciales {
  background: linear-gradient(135deg, var(--green-dark) 0%, #245a40 100%);
  padding: 80px 0;
}

.diferenciales__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.diferencial {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 32px 20px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.diferencial:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.diferencial__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--green-light);
  transition: all var(--transition);
}

.diferencial:hover .diferencial__icon {
  background: var(--green-light);
  color: var(--white);
}

.diferencial__icon svg {
  width: 24px;
  height: 24px;
}

.diferencial span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
}

.btn--outline {
  background: var(--white);
  color: var(--green-dark);
  border: 2px solid var(--green-mid);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--green-pale);
  color: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ---- Contacto ---- */

.section--contacto {
  background: var(--gray-50);
  padding: 100px 0;
}

.section--contacto .section__header {
  text-align: center;
  margin-bottom: 48px;
}

.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.contacto__card {
  text-align: center;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.contacto__card:hover {
  box-shadow: var(--shadow-md);
}

.contacto__card--featured {
  border-color: var(--green-light);
  background: linear-gradient(180deg, var(--white) 0%, var(--green-pale) 100%);
}

.contacto__card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.contacto__card-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.7;
}

.contacto__email {
  display: inline-block;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 600;
  color: var(--green-mid);
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 2px solid var(--green-pale);
  transition: all var(--transition);
  word-break: break-all;
}

.contacto__card--featured .contacto__email {
  margin-bottom: 24px;
}

.contacto__email:hover {
  background: var(--green-pale);
  border-color: var(--green-light);
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contacto__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.9rem;
}

.contacto__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---- Footer ---- */

.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 60px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand img {
  height: 72px;
  width: auto;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 10px;
  box-sizing: content-box;
}

.footer__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.footer__cuit {
  font-size: 0.875rem;
  opacity: 0.75;
}

.footer__address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer__email {
  font-size: 0.95rem;
}

.footer__email a {
  color: var(--green-light);
}

.footer__email a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ---- Animations ---- */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.nosotros__indicators .indicator:nth-child(2) { transition-delay: 0.1s; }
.nosotros__indicators .indicator:nth-child(3) { transition-delay: 0.2s; }
.nosotros__indicators .indicator:nth-child(4) { transition-delay: 0.3s; }

.actividades__grid .actividad-card:nth-child(2) { transition-delay: 0.15s; }
.actividades__grid .actividad-card:nth-child(3) { transition-delay: 0.3s; }

.productores__grid .productor-card:nth-child(2) { transition-delay: 0.1s; }
.productores__grid .productor-card:nth-child(3) { transition-delay: 0.2s; }
.productores__grid .productor-card:nth-child(4) { transition-delay: 0.3s; }

.diferenciales__grid .diferencial:nth-child(2) { transition-delay: 0.05s; }
.diferenciales__grid .diferencial:nth-child(3) { transition-delay: 0.1s; }
.diferenciales__grid .diferencial:nth-child(4) { transition-delay: 0.15s; }
.diferenciales__grid .diferencial:nth-child(5) { transition-delay: 0.2s; }
.diferenciales__grid .diferencial:nth-child(6) { transition-delay: 0.25s; }

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .actividades__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .productores__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .diferenciales__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 24px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .header__nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__list {
    flex-direction: column;
    gap: 0;
  }

  .header__list li {
    border-bottom: 1px solid var(--gray-200);
  }

  .header__list li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  .section {
    padding: 72px 0;
  }

  .nosotros__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nosotros__indicators {
    grid-template-columns: 1fr;
  }

  .productores__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .productor-card {
    padding: 28px 16px;
  }

  .contacto__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contacto__card {
    padding: 32px 24px;
  }

  .header__logo {
    padding: 4px 10px;
  }

  .header__logo img {
    height: 46px;
    max-height: calc(var(--header-height) - 14px);
  }

  .footer__brand img {
    height: 60px;
    padding: 8px 12px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-bottom: 60px;
  }

  .productores__grid {
    grid-template-columns: 1fr;
  }

  .diferenciales__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .diferencial {
    flex-direction: row;
    text-align: left;
    padding: 20px;
  }
}
