:root {
  --primary-color: #053b00; /* Dark green from original */
  --secondary-color: #2e8b57; /* Sea green */
  --accent-color: #4CAF50;
  --text-main: #333333;
  --text-light: #666666;
  --bg-color: #ffffff;
  --bg-light: #f5f8f5;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --radius: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--white);
  /* Elegant centered molecule watermark */
  background-image: url("data:image/svg+xml,%3Csvg width='800' height='800' viewBox='0 0 800 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%232e8b57' stroke-width='25' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='0.03'%3E%3Cpolygon points='400,200 550,287 550,460 400,547 250,460 250,287'/%3E%3Cline x1='280' y1='305' x2='280' y2='442'/%3E%3Cline x1='400' y1='235' x2='510' y2='298'/%3E%3Cline x1='400' y1='512' x2='510' y2='448'/%3E%3Cline x1='550' y1='460' x2='650' y2='517'/%3E%3Cline x1='400' y1='547' x2='400' y2='647'/%3E%3Cline x1='250' y1='287' x2='150' y2='230'/%3E%3Ccircle cx='650' cy='517' r='20'/%3E%3Ccircle cx='400' cy='667' r='20'/%3E%3Ccircle cx='130' cy='219' r='20'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-light); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.top-bar {
  background: var(--bg-light);
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 20px;
}

header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.logo img {
  max-height: 60px;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: var(--secondary-color);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Hero Section */
.hero {
  padding: 120px 0;
  background: linear-gradient(rgba(5, 59, 0, 0.75), rgba(46, 139, 87, 0.75)), url('../images/bg-image/hero_bg.png') center/cover no-repeat;
  text-align: center;
  color: var(--white);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 30px;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.slogan-highlight {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 60px 0;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

@media (min-width: 992px) {
  .promo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.bg-light {
  background: var(--bg-light);
}

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

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

footer h4 {
  color: var(--white);
  margin-bottom: 20px;
}

footer p, footer a {
  color: rgba(255,255,255,0.8);
}

footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    margin-left: auto;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    gap: 15px;
  }
  
  nav ul.show {
    display: flex;
  }

  .nav-container .btn {
    display: none;
  }

  .nav-container.menu-open .btn {
    display: inline-block;
    position: absolute;
    top: 100%;
    right: 20px;
    margin-top: 200px; /* Below the menu items */
    z-index: 10;
  }

  .top-bar .contact-info {
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }
}

/* Modal Styles for Promociones */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  margin: 5vh auto 0 auto;
  display: block;
  width: auto;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  animation-name: modalzoom;
  animation-duration: 0.3s;
}

#promoModalCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--white);
  padding: 15px 0;
  font-size: 1.25rem;
  font-weight: 600;
  animation-name: modalzoom;
  animation-duration: 0.3s;
}

@keyframes modalzoom {
  from {transform: scale(0.9); opacity: 0}
  to {transform: scale(1); opacity: 1}
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2005;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--secondary-color);
  text-decoration: none;
}

.promo-click-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-size: 3.5rem;
}

.promo-click-wrapper:hover .promo-click-overlay {
  opacity: 1;
}

/* Custom File Upload */
.file-upload-wrapper {
  position: relative;
  width: 100%;
}

.file-upload-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background-color: var(--white);
  border: 2px dashed #ccc;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  color: var(--text-light);
  font-weight: 500;
}

.file-upload-label:hover {
  border-color: var(--primary-color);
  background-color: rgba(46, 139, 87, 0.05); /* very light green tint */
}

/* Modern Form Controls */
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.2);
}

.form-control::placeholder {
  color: #adb5bd;
}

/* Form security honeypot */
.user-preferences-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
}

/* Modern Contact Info Boxes - Vertical Layout */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 576px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  background-color: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.contact-info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.contact-info-card:hover::before {
  transform: scaleX(1);
}

.contact-info-icon-wrapper {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 2.2rem;
  transition: transform 0.3s ease;
}

.contact-info-card:hover .contact-info-icon-wrapper {
  transform: scale(1.15);
}

.contact-info-text h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 700;
}

.contact-info-text p, .contact-info-text a {
  margin: 0;
  color: var(--text-light);
  line-height: 1.5;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-text a:hover {
  color: var(--primary-color);
}

/* Unique Portal Cards for Resultados Page */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portal-card {
  background-color: var(--white);
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 40px 30px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portal-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.portal-icon-container {
  width: 80px;
  height: 80px;
  background-color: var(--bg-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin: 0 auto 25px auto;
  transition: all 0.4s ease;
}

.portal-card:hover .portal-icon-container {
  background-color: var(--primary-color);
  color: var(--white);
  transform: rotateY(180deg);
}

.portal-card:hover .portal-icon-container i {
  transform: rotateY(180deg);
}

.portal-card h3 {
  margin-bottom: 15px;
  color: var(--text-main);
  font-size: 1.5rem;
}

.portal-card p {
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.6;
}

.portal-card .btn {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}
