/* styles.css */
:root {
  --primary-color: #B8860B; /* Gold */
  --primary-dark: #8B6508;
  --secondary-color: #0F172A; /* Slate 900 */
  --text-color: #334155;
  --text-light: #64748B;
  --bg-color: #F8FAFC;
  --white: #FFFFFF;
  --radius: 8px; /* ROUND_EIGHT */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--secondary-color);
  font-weight: 700;
}

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

/* Header & Nav */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo {
  width: auto;
  object-fit: contain;
}

header .site-logo {
  height: 82px;
}

footer .site-logo {
  height: 90px;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

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

/* Hero Section */
.hero {
  margin-top: 70px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--secondary-color);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.6) 100%);
  z-index: 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero h1 span {
  color: var(--primary-color);
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #CBD5E1;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius); /* Rounded Eight */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}

/* Sections */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
  border: 1px solid rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Service Accordion */
.service-accordion {
  margin-top: 1.5rem;
}

.service-item {
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 0.5rem;
}

.service-item:last-child {
  border-bottom: none;
}

.service-bullet {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0;
}

.service-bullet:hover {
  color: var(--primary-color);
}

.service-bullet i.lucide-chevron-down {
  margin-left: auto;
  transition: transform 0.3s ease;
  min-width: 16px;
}

.service-bullet.active i.lucide-chevron-down {
  transform: rotate(180deg);
}

.service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.4s ease-out;
  opacity: 0;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-details p {
  padding-bottom: 1.5rem; /* Agrega una línea en blanco al final */
}

.service-details.open {
  max-height: 1000px; /* Increased max-height to prevent clipping */
  padding-top: 0.5rem;
  padding-bottom: 1rem;
  opacity: 1;
}

/* Aliados Grid */
.aliados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
}

.aliado-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.aliado-logo {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  transition: var(--transition);
}

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

/* Footer */
footer {
  background: var(--secondary-color);
  color: var(--white);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col p, .footer-col a {
  color: #94A3B8;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-col a:hover {
  color: var(--primary-color);
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Brand Pages Specific */
.brand-hero {
  background: var(--secondary-color);
  color: var(--white);
  padding: 8rem 2rem 4rem;
  text-align: center;
  margin-top: 70px;
}

.brand-hero h1 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 3rem;
}

.brand-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: #CBD5E1;
}

.solutions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: var(--white);
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);
  border-radius: var(--radius);
  overflow: hidden;
}

.solutions-table th, .solutions-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid #E2E8F0;
  vertical-align: top;
}

.solutions-table th {
  background: var(--secondary-color);
  color: var(--white);
  font-weight: 600;
  width: 30%;
}

.solutions-table tr:last-child td {
  border-bottom: none;
}

.solutions-table tr:hover td {
  background: #F8FAFC;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

/* ------------- BRAND NAVIGATION CONTAINER ------------- */
.brand-navigation-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: -100px auto 4rem;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.nav-arrow {
  text-align: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: transform 0.3s ease;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-arrow:first-child:hover { transform: translateX(-5px); }
.nav-arrow:last-child:hover { transform: translateX(5px); }

.nav-arrow-icon {
  width: 36px;
  height: 36px;
  display: block;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 4px 6px rgba(184, 134, 11, 0.2));
}

.nav-arrow-text {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-logo-img {
  flex-shrink: 0;
  max-height: 120px;
  max-width: 300px;
  object-fit: contain;
  background: var(--white);
  padding: 1.5rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border: 2px solid rgba(184, 134, 11, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-logo-img:hover {
  transform: scale(1.08) translateY(-10px);
  box-shadow: 0 20px 40px rgba(184, 134, 11, 0.25);
  border-color: var(--primary-color);
}

/* Mobile Responsiveness for Brand Navigation Container */
@media (max-width: 768px) {
  .brand-navigation-container {
    padding: 0 1rem;
    margin-top: -60px;
  }
  
  .brand-logo-img {
    max-width: 48%; /* Adjust for spacing */
    height: auto;
    padding: 0.75rem;
  }
  
  .nav-arrow {
    width: 25%;
  }
  
  .nav-arrow-icon {
    width: 24px;
    height: 24px;
  }
  
  .nav-arrow-text {
    font-size: 0.70rem;
    letter-spacing: 0;
  }
}
