/* Variables y tipografías */
:root {
  --primary-color: #183B6B;
  --accent-color: #DAA520;
  --light-color: #F4F4F4;
  --dark-color: #111;
  --font-heading: 'Rubik', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --whatsapp-link1: "https://wa.me/573202564116?text=Hola,%20quiero%20consultar%20mi%20estado%20de%20cuenta";
  --whatsapp-link2: "https://wa.me/573102981277?text=Hola,%20quiero%20consultar%20mi%20estado%20de%20cuenta"; /* Replace SECOND_NUMBER_HERE with the actual second WhatsApp number */
}

/* Reset y base */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--primary-color);
  color: white;
  padding: 1rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  display: block;
  overflow: visible;
  text-align: center;
}
.logo img {
  height: 60px;
  display: block;
  visibility: visible;
  max-width: 100%;
  width: auto;
  z-index: 1002;
  margin: 0 auto;
}
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 3px;
}
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.site-nav a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent-color);
  outline: none;
}
.dropdown {
  position: relative;
}
.dropdown-toggle {
  cursor: pointer;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 10px;
  min-width: 200px;
}
.dropdown-menu a {
  display: block;
  padding: 5px 10px;
  color: #333;
  text-decoration: none;
}
.dropdown-menu a:hover {
  background: #f2f2f2;
}
.dropdown-menu.show {
  display: block;
}

/* Hero */
.hero {
  min-height: 480px;
  background-size: cover;
  background-position: center; /* Modified: Center background for better visual balance */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Added: Center content horizontally */
  color: white;
  margin-bottom: 3rem;
  padding: 1rem; /* Modified: Reduced base padding for flexibility */
  box-sizing: border-box;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 59, 107, 0.75);
  z-index: 0;
}
.hero-content {
  position: relative;
  max-width: 100%; /* Modified: Allow full width with constraints */
  width: 90%; /* Added: Constrain width relative to container */
  z-index: 1;
  padding: 0 20px; /* Modified: Consistent padding */
  text-align: center;
  box-sizing: border-box; /* Added: Ensure padding doesn’t cause overflow */
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2.5rem); /* Modified: Slightly smaller max size */
  margin-bottom: 1rem;
  line-height: 1.2;
  max-width: 95%; /* Modified: Tighter constraint */
  margin-left: auto;
  margin-right: auto;
}
.hero p {
  font-size: clamp(1rem, 3vw, 1.25rem); /* Modified: Responsive font size */
  margin-bottom: 2rem;
  font-weight: 500;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 380px;
    padding: 1rem; /* Modified: Consistent with base */
  }

  .hero-content {
    padding: 10px; /* Modified: Tighter padding for mobile */
    width: 100%; /* Added: Ensure full width within container */
  }

  .hero h1 {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem); /* Modified: Smaller for mobile */
    max-width: 98%; /* Modified: Maximum constraint for small screens */
  }

  .hero p {
    font-size: clamp(0.9rem, 3vw, 1rem); /* Modified: Smaller for mobile */
    max-width: 98%; /* Modified: Maximum constraint for small screens */
  }
}
.btn {
  background: var(--accent-color);
  color: white;
  padding: 1rem 2.25rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgb(218 165 32 / 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover,
.btn:focus {
  background: #c1911d;
  box-shadow: 0 6px 20px rgb(193 145 29 / 0.7);
  outline: none;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 2.8rem;
  margin-bottom: 4rem;
}
.card {
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 2.5rem;
  color: var(--dark-color);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
  cursor: default;
}
.card:hover,
.card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.2);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244,244,244,0.9);
  z-index: 0;
  transition: background 0.3s ease;
}
.card:hover::before,
.card:focus-within::before {
  background: rgba(244,244,244,0.75);
}
.card-text {
  position: relative;
  z-index: 1;
}
.card h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  margin-bottom: 0.9rem;
}
.card p {
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: 1.8rem;
}

/* Contact section */
.contact-section {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.contact-form {
  flex: 1 1 400px;
  background: white;
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.1);
}
.contact-form h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-bottom: 1.3rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 1.5px solid #ccc;
  transition: border-color 0.3s ease;
  font-family: var(--font-body);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.contact-form button {
  width: 100%;
  background: var(--accent-color);
  color: white;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1rem 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgb(218 165 32 / 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.contact-form button:hover,
.contact-form button:focus {
  background: #c1911d;
  box-shadow: 0 8px 22px rgb(193 145 29 / 0.7);
  outline: none;
}
.contact-image {
  flex: 1 1 350px;
  background: url('abogadotransito6.png') no-repeat center center/cover;
  border-radius: 18px;
  min-height: 420px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.08);
}

/* Footer */
.site-footer {
  background: var(--primary-color);
  color: white;
  padding: 2rem 0;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.site-footer h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--accent-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  cursor: pointer;
  background-image: url('walogo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px 36px;
  z-index: 10000;
  transition: background 0.3s ease;
}
.whatsapp-float:hover,
.whatsapp-float:focus {
  background: #c1911d;
  outline: none;
}

/* Side image sections */
.side-image-section {
  padding: 3rem 0;
  background-color: var(--light-color);
}
.side-image-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.side-image-section.reverse .side-image-content {
  flex-direction: row-reverse;
}
.text-content {
  flex: 1 1 400px;
}
.text-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.text-content p {
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
  color: var(--dark-color);
  line-height: 1.5;
}
.image-content {
  flex: 1 1 400px;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.1);
}

/* Unified cover section */
.unified-cover {
  background: white;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.12);
  padding: 3rem 2rem;
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--dark-color);
}
.info-article {
  flex: 1 1 280px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--light-color);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgb(24 59 107 / 0.1);
  transition: box-shadow 0.3s ease;
}
.info-article:hover,
.info-article:focus-within {
  box-shadow: 0 10px 30px rgb(24 59 107 / 0.25);
}
.info-article h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.info-article p {
  flex-grow: 1;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 1.8rem;
  color: var(--dark-color);
}
.info-article .btn {
  align-self: flex-start;
  font-weight: 600;
}

/* Form message */
.form-message {
  margin-top: 1rem;
  color: green;
  font-weight: bold;
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .burger {
    display: flex;
    align-self: flex-end;
    margin-bottom: 0.5rem;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .site-nav.active {
    display: flex;
  }

  .site-nav a {
    margin: 0.5rem 0;
    color: #333;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #f9f9f9;
    padding: 10px 20px;
    margin: 5px 0;
  }

  .dropdown-menu a {
    padding: 8px 10px;
    font-size: 14px;
    color: #333;
  }

  .dropdown-menu a:hover {
    background: #e6e6e6;
  }

  .hero {
    min-height: 380px;
    padding: 2rem;
  }

  .hero-content {
    padding: 15px; /* Added: Reduced padding for mobile */
  }

  .hero h1 {
    font-size: clamp(2.75rem, 4.5vw, 1.75rem); /* Added: Smaller font size for mobile */
    max-width: 95%; /* Added: Tighter constraint for very small screens */
  }

  .hero p {
    font-size: 1rem; /* Added: Smaller font size for mobile */
    max-width: 95%; /* Added: Tighter constraint for very small screens */
  }

  .side-image-content {
    flex-direction: column;
  }

  .side-image-section.reverse .side-image-content {
    flex-direction: column;
  }

  .image-content {
    width: 100%;
    min-height: 220px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .contact-section {
    flex-direction: column;
  }

  .contact-image {
    min-height: 220px;
    margin-top: 1.5rem;
  }

  .unified-cover {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .info-article {
    max-width: 100%;
  }
}