/* =====================================================
   CADABRA — main.css
   Fuentes, navbar, hero, secciones, contacto, footer
   ===================================================== */

/* ── Fuente personalizada ── */
@font-face {
  font-family: 'Pathway Extreme';
  src: url('../fonts/PathwayExtreme/PathwayExtreme.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Base ── */
body {
  font-family: 'Roboto Slab', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.75;
  opacity: 0;
  animation: fadeIn .5s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
}

/* ── Navbar ── */
#mainNav {
  transition: background-color .3s ease, box-shadow .3s ease;
}
#mainNav.navbar-shrink {
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
#mainNav .navbar-brand img {
  height: 40px;
  transition: opacity .2s ease;
}
#mainNav .nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0 !important;
  transition: color .2s ease;
}
#mainNav .nav-link:hover { color: var(--cadabra-orange) !important; }

/* toggler visible sobre fondo oscuro */
#mainNav .navbar-toggler { border-color: rgba(255,255,255,.5); }
#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
#mainNav.navbar-shrink .navbar-toggler { border-color: rgba(0,0,0,.2); }
#mainNav.navbar-shrink .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991px) {
  #mainNav .navbar-collapse {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-top: .5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
  }
  #mainNav .nav-link { color: #000 !important; padding: .5rem 0 !important; }
}

/* ── Hero / Masthead ── */
header.masthead {
  padding-top: 10.5rem;
  padding-bottom: 6rem;
  text-align: center;
  color: #fff;
  background-image:
    linear-gradient(rgba(0,35,64,.7), rgba(0,35,64,.7)),
    url('../img/hero-bg.jpg');
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
  background-size: cover;
}
header.masthead .masthead-heading {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-family: 'Pathway Extreme', sans-serif;
}
header.masthead .masthead-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Pathway Extreme', sans-serif;
}
@media (min-width: 768px) {
  header.masthead { padding-top: 17rem; padding-bottom: 12.5rem; }
  header.masthead .masthead-heading { font-size: 4.5rem; }
  header.masthead .masthead-description { font-size: 1.4rem; margin-bottom: 4rem; }
}

/* ── Secciones generales ── */
.page-section { padding: 6rem 0; }
.page-section h2.section-heading {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}
.page-section h3.section-subheading {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  font-family: 'Roboto Slab', serif;
  margin-bottom: 4rem;
  color: #6c757d;
}
@media (min-width: 992px) { .page-section { padding: 9rem 0; } }

/* ── Botón XL ── */
.btn-xl {
  padding: 1.25rem 2.5rem;
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
}
.btn-primary.btn-xl {
  background: linear-gradient(135deg, #fca621 0%, #ff8a00 100%);
  border: none;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all .3s ease;
  box-shadow: 0 4px 15px rgba(252,166,33,.3);
}
.btn-primary.btn-xl:hover,
.btn-primary.btn-xl:focus {
  background: linear-gradient(135deg, #e6951d 0%, #e6951d 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(252,166,33,.4);
  color: #fff;
}

/* ── Cards de beneficios y tecnologías ── */
.team-card, .technologies-card {
  border-radius: 15px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.team-card:hover, .technologies-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,.15) !important;
}
.team-card .card-icon,
.technologies-card .card-icon {
  transition: color .3s ease, transform .3s ease;
}
.team-card:hover .card-icon,
.technologies-card:hover .card-icon {
  color: #fca621 !important;
  transform: scale(1.1);
}

/* ── Services — ícono fa-stack ── */
.text-primary { color: var(--cadabra-orange) !important; }

/* ── Carrusel tecnologías (Swiper) ── */
.tech-swiper .swiper-slide {
  text-align: center;
  padding: 1rem;
}
.tech-swiper img {
  max-height: 56px;
  object-fit: contain;
  filter: grayscale(15%);
}

/* ── PowerBI iframe ── */
.powerbi-container {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
  background: #fff;
}
.powerbi-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  display: block;
}
@media (max-width: 768px) { .powerbi-container { height: 500px; } }
@media (max-width: 480px) { .powerbi-container { height: 400px; border-radius: 8px; } }

/* ── Sección Contacto ── */
.contact-section {
  background: linear-gradient(135deg, #002340 0%, #238ec2 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FCA621' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.section-heading-contact {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,.3);
}
.section-subheading-contact {
  color: rgba(255,255,255,.9);
  font-size: 1.3rem;
  margin-bottom: 50px;
}
@media (max-width: 768px) {
  .contact-section { padding: 60px 0; }
  .section-heading-contact { font-size: 2.2rem; }
}

.contact-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
}
.contact-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #fca621 0%, #0fbc6b 50%, #238ec2 100%);
}
.contact-form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 16px;
  transition: all .3s ease;
  background: rgba(255,255,255,.9);
}
.contact-form-control:focus {
  border-color: #fca621;
  box-shadow: 0 0 0 .25rem rgba(252,166,33,.15);
  background: #fff;
  transform: translateY(-2px);
}
.contact-btn {
  background: linear-gradient(135deg, #fca621 0%, #0fbc6b 100%);
  border: none;
  border-radius: 50px;
  padding: 15px 40px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all .3s ease;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(252,166,33,.3);
  color: #fff;
}
.contact-btn:disabled {
  opacity: .7;
  transform: none;
}
.contact-info {
  background: linear-gradient(135deg, #002340 0%, #238ec2 100%);
  color: #fff;
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 30px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  transition: all .3s ease;
}
.contact-info-item:hover {
  background: rgba(255,255,255,.2);
  transform: translateX(10px);
}
.contact-info-item:hover a { color: #fca621 !important; }
.contact-info-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, #fca621 0%, #0fbc6b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  margin-top: 5px;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

/* ── Botones sociales ── */
.btn-social {
  height: 2.5rem;
  width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50% !important;
  background-color: #212529;
  color: #fff;
  border: none;
  font-size: 1rem;
  transition: all .3s ease;
}
.btn-social:hover { background-color: var(--cadabra-orange); color: #fff; transform: translateY(-2px); }
.btn-social.whatsapp { background-color: #25d366; }
.btn-social.whatsapp:hover { background-color: #1da851; }

/* ── WhatsApp flotante ── */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.whatsapp-button:hover { transform: scale(1.1); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.whatsapp-tooltip {
  position: fixed;
  bottom: 28px;
  right: 90px;
  background: #fff;
  color: #002340;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  z-index: 9998;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.whatsapp-button:hover + .whatsapp-tooltip,
.whatsapp-button:focus + .whatsapp-tooltip { opacity: 1; }

/* ── Footer ── */
footer { background-color: #e7f1f2; }
