/* PORTILLO ASESOR V2 - ADAPTADO PARA UCEZ (Diseño Limpio/Azul con Slider y Menú Móvil) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --brand-blue: #0047AB; /* Azul UCEZ */
  --brand-light-blue: #38bdf8; 
  --brand-gradient: linear-gradient(135deg, rgba(0,71,171,0.92) 0%, rgba(56,150,220,0.85) 100%);
  --bg-color: #f8fafc;
  --white: #ffffff;
  --whatsapp: #25d366;
}

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

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  padding-bottom: 80px;
}

/* --- HEADER / NAVEGACIÓN --- */
.main-header {
  background-color: var(--white);
  padding: 16px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 45px;
  display: block;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--brand-blue);
  cursor: pointer;
}

.close-menu {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brand-blue);
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--brand-light-blue);
  font-weight: 600;
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* --- HERO SLIDER --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh; 
  min-height: 600px; 
  overflow: hidden; 
  background-color: var(--brand-blue); 
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0; 
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  position: relative;
  z-index: 3;
}

.hero-card {
  background: var(--brand-gradient);
  backdrop-filter: blur(4px);
  max-width: 550px;
  padding: 45px 40px;
  border-radius: 12px;
  color: var(--white);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s ease 0.3s;
}

.hero-slide.active .hero-card {
  transform: translateY(0);
  opacity: 1;
}

.hero-card h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #e2e8f0;
}

.btn-cotizar {
  display: inline-block;
  background-color: #56bbed;
  color: var(--white);
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 8px 15px rgba(86, 187, 237, 0.3);
}

.btn-cotizar:hover {
  background-color: #3ba4dc;
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  bottom: 25px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dot.active, .dot:hover {
  background-color: #56bbed;
  transform: scale(1.2);
}

/* --- GRID SECTION --- */
.grid-section {
  padding: 70px 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.grid-header h2 {
  font-size: 2.5rem;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.grid-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 45px;
}

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

.ramo-card {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 40px 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ramo-card.active, .ramo-card:hover {
  border-color: #56bbed;
  box-shadow: 0 15px 35px rgba(86, 187, 237, 0.15);
  transform: translateY(-5px);
}

.icon-wrapper {
  font-size: 3rem;
  color: var(--brand-blue);
  margin-bottom: 20px;
}

.ramo-card.active .icon-wrapper, .ramo-card:hover .icon-wrapper {
  color: #56bbed;
}

.ramo-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.ramo-card p {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.scroll-explore {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-explore i {
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* --- ABOUT Y ALIADOS --- */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--brand-blue);
  margin-bottom: 30px;
}

.aliados-section { 
  max-width: 1100px; 
  margin: 60px auto; 
  text-align: center; 
}
.subtitle { color: var(--text-muted); margin-top: -20px; margin-bottom: 30px; }
.aliados-wrapper { position: relative; }
.aliados-container {
  display: flex;
  gap: 20px;
  padding: 10px 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.aliados-container::-webkit-scrollbar { display: none; }
.aliado {
  flex: 0 0 calc(33.333% - 20px);
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  scroll-snap-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.aliado img { max-width: 100%; max-height: 80px; object-fit: contain; filter: grayscale(100%); opacity: 0.7; transition: 0.3s; }
.aliado:hover img { filter: grayscale(0%); opacity: 1; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--white); color: var(--brand-blue); border: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.carousel-btn:hover { background: var(--bg-color); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* BOTÓN WHATSAPP FLOTANTE CIRCULAR */
.whatsapp-fixed {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--whatsapp);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  text-decoration: none;
  z-index: 10000;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.whatsapp-fixed:hover { transform: scale(1.1); }

/* RESPONSIVE (Optimizaciones Clave y Menú Móvil) */
@media (max-width: 900px) {
  .hero-card { margin: 0 auto; text-align: center; }
  .aliado { flex: 0 0 calc(50% - 20px); }
  
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 80vw;
    max-width: 350px;
    height: 100vh;
    background-color: var(--white); 
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 80px 30px 40px;
    transition: right 0.4s ease;
    z-index: 10001; 
  }
  .main-nav.open {
    right: 0; 
  }
  .main-nav ul {
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }
  .main-nav a {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--brand-blue);
    display: block;
  }
  .close-menu { display: block; }
}

@media (max-width: 600px) {
  .main-header { padding: 12px 20px; }
  .hero-slider { 
    height: 90vh; 
    min-height: 550px; 
  }
  .hero-container { padding: 0 20px; }
  .hero-card { 
    margin: 0; 
    padding: 30px 25px; 
  }
  .hero-card h1 { 
    font-size: 1.6rem; 
    margin-bottom: 15px; 
  }
  .hero-card p {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }
  .cards-container { grid-template-columns: 1fr; }
  .aliado { flex: 0 0 calc(100% - 20px); }
  .header-container { justify-content: center; }
}