/* =============================================
   BRILLA SIN FRONTERAS — style.css
   ============================================= */

/* ---- RESET & VARIABLES ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --yellow: #f5c800;
  --blue: #1a3a8c;
  --blue-dark: #122970;
  --blue-light: #2550c8;
  --white: #ffffff;
  --gray-light: #f4f6fa;
  --gray: #6b7280;
  --text: #1a1a2e;
  --radius: 10px;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(26, 58, 140, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 80px 0;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}
.full-width {
  width: 100%;
  text-align: center;
}

/* ---- SECTION TITLES ---- */
.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}
.section-title.left {
  text-align: left;
}
.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}
.section-title.left::after {
  margin-left: 0;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1rem;
}
.logo-icon.small {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
}
.logo-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--blue);
  text-transform: uppercase;
  line-height: 1.2;
}
.logo-text sup {
  font-size: 0.6rem;
  color: var(--gray);
  font-weight: 400;
  vertical-align: super;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover {
  color: var(--blue);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-social {
  display: flex;
  gap: 1rem;
  font-size: 1.2rem;
  color: var(--blue);
}
.nav-social a:hover {
  color: var(--yellow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(to bottom, rgba(10, 20, 80, 0.72) 0%, rgba(10, 20, 80, 0.55) 60%, rgba(10, 20, 80, 0.8) 100%),
    url("./imgs/hero.webp") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 1.5rem 0;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(245, 200, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 780px;
  z-index: 1;
  animation: fadeUp 0.9s ease both;
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.03em;
}
.hero-sub em {
  font-style: italic;
  color: var(--yellow);
}

.hero-stats {
  display: flex;
  gap: 0;
  background: var(--blue);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 80px;
  width: min(600px, 90%);
  z-index: 1;
  animation: fadeUp 0.9s 0.2s ease both;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.4rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--transition);
}
.stat-item:last-child {
  border-right: none;
}
.stat-item:hover {
  background: var(--blue-light);
}

.stat-number {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  text-transform: uppercase;
}

/* =============================================
   CONÓCENOS
   ============================================= */
.conocenos {
  background: var(--white);
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  color: var(--gray);
  line-height: 1.7;
  font-size: 1rem;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mvv-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  background: var(--gray-light);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.mvv-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.mvv-card:nth-child(1) .mvv-icon {
  background: #ffeaea;
  color: #e53935;
}
.mvv-card:nth-child(2) .mvv-icon {
  background: #fffde7;
  color: #f59e0b;
}
.mvv-card:nth-child(3) .mvv-icon {
  background: #eef2ff;
  color: var(--blue);
}

.mvv-card h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.mvv-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  justify-content: center;
  margin-top: 0.3rem;
}
.values-list li {
  font-size: 0.88rem;
  color: var(--blue);
  font-weight: 700;
  background: rgba(26, 58, 140, 0.08);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}

/* =============================================
   ÁREAS DE TRABAJO
   ============================================= */
.areas {
  background: var(--gray-light);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.area-card {
  position: relative;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.area-card img {
  transition: transform 0.5s ease;
}
.area-card:hover img {
  transform: scale(1.06);
}
.area-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 80, 0.65) 0%, transparent 60%);
  z-index: 1;
}

.area-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--blue-dark);
  z-index: 2;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* =============================================
   PROYECTOS
   ============================================= */
.proyectos {
  background: var(--white);
}

.proyectos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.proyectos-text p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 0.97rem;
  margin-bottom: 2rem;
}

.proyectos-image {
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.proyectos-image::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: 10px;
  bottom: 10px;
  border: 3px solid var(--yellow);
  border-radius: var(--radius);
  z-index: -1;
}

/* =============================================
   TESTIMONIOS
   ============================================= */
.testimonios {
  background: var(--blue);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.testimonios .section-title {
  color: var(--white);
}
.testimonios .section-title::after {
  background: var(--yellow);
}

.testimonios-slider {
  position: relative;
  max-width: 680px;
  margin: 2.5rem auto 2rem;
  min-height: 140px;
  text-align: center;
}

.testimonio {
  display: none;
  animation: fadeIn 0.5s ease;
}
.testimonio.active {
  display: block;
}

.testimonio blockquote {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  quotes: "\201C" "\201D";
  font-style: italic;
}
.testimonio blockquote::before {
  content: open-quote;
  margin-right: 2px;
}
.testimonio blockquote::after {
  content: close-quote;
  margin-left: 2px;
}

.testimonio cite {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--yellow);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
}
.dot.active {
  background: var(--yellow);
  transform: scale(1.2);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.slider-arrow:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--blue);
}
.slider-arrow.prev {
  left: 0;
}
.slider-arrow.next {
  right: 0;
}

/* =============================================
   CÓMO AYUDAR
   ============================================= */
.ayudar {
  background: var(--white);
}

.ayudar-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 2.5rem;
}

.ayudar-opciones {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.opcion {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 2px solid var(--gray-light);
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-light);
}
.opcion:hover,
.opcion.active {
  border-color: var(--blue);
  background: rgba(26, 58, 140, 0.05);
}
.opcion-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background var(--transition);
}
.opcion.active .opcion-icon {
  background: var(--yellow);
  color: var(--blue);
}

.opcion span {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  line-height: 1.3;
}

/* Form */
.ayudar-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}
.form-group input {
  padding: 0.75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  background: #fafafa;
}
.form-group input:focus {
  border-color: var(--blue);
  background: var(--white);
}
.form-group input::placeholder {
  color: #9ca3af;
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  padding: 0 1rem;
  background: #fafafa;
  transition: border-color var(--transition);
}
.phone-input:focus-within {
  border-color: var(--blue);
  background: var(--white);
}
.phone-flag {
  font-size: 1.2rem;
}
.phone-input input {
  border: none !important;
  padding: 0.75rem 0 !important;
  background: transparent !important;
  flex: 1;
}
.phone-input input:focus {
  border: none;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #0d1f5c;
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.footer-logo span {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer-contact p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-contact i {
  color: var(--yellow);
  width: 14px;
}
.footer-contact a:hover {
  color: var(--yellow);
}

.footer-col h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}
.footer-col ul li a {
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover {
  color: var(--yellow);
}

.what-list li {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.7rem;
  padding-left: 1rem;
  position: relative;
}
.what-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 700;
}

.footer-bottom {
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--blue);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(26, 58, 140, 0.3);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast i {
  color: var(--yellow);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .mvv-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .areas-grid {
    gap: 0.8rem;
  }
  .area-card {
    height: 200px;
  }
  .proyectos-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .proyectos-image {
    height: 240px;
  }
  .ayudar-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ayudar-opciones {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .opcion {
    flex: 1;
    min-width: 140px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .nav-links,
  .nav-social {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-stats {
    flex-direction: column;
    width: 90%;
    border-radius: var(--radius);
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .areas-grid {
    grid-template-columns: 1fr;
  }
  .area-card {
    height: 200px;
  }
  .slider-arrow {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 56px 0;
  }

  /* Mobile menu open */
  .navbar.open .nav-links,
  .navbar.open .nav-social {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    box-shadow: var(--shadow);
    gap: 1rem;
    z-index: 999;
  }
  .navbar.open .nav-social {
    flex-direction: row;
    border-bottom: none;
    padding-top: 0;
  }
}
