/* =========================
   🎨 VARIABLES
========================= */
:root {
  --primary: #007bff;
  --primary-hover: #0056b3;
  --dark: #0d1b2a;
  --light: #f8f9fa;
  --text: #212529;
  --text-muted: #6c757d;
  --white: #ffffff;
  --success: #25D366;
}

/* =========================
   BASE
========================= */
body {
  font-family: 'Lora';
  background: linear-gradient(rgba(13,27,42,0.6)), url("../img/bg.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Raleway';
}

p {
  line-height: 1.75;
}

/* =========================
   HEADINGS
========================= */
.text-faded { color: aliceblue }

.site-heading {
  margin: 5rem 0;
  text-transform: uppercase;
  line-height: 1;
}

.site-heading-upper {
  display: block;
  font-size: medium;
  font-weight: 800;
}

.site-heading-lower {
  font-size: 5rem;
  font-weight: 100;
  line-height: 4rem;
}

.page-section {
  margin: 5rem 0;
}

.section-heading {
  text-transform: uppercase;
}

.section-heading-upper {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.section-heading-lower {
  display: block;
  font-size: 2rem;
  font-weight: 100;
}

.bg-faded {
  background-color: rgba(255,255,255,0.9);
}

/* =========================
   NAVBAR
========================= */
.custom-navbar {
  background-color: var(--dark) !important;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  transition: 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

/* =========================
   BOTONES
========================= */
.btn {
  box-shadow: 0 3px 3px rgba(33,37,41,.1);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

/* EXTRA DEL MIN.CSS (NO ESTABA) */
.btn-xl {
  font-weight: 700;
  font-size: .8rem;
  padding: 1.5rem 2rem;
}

.font-weight-light {
  font-weight: 100 !important;
}

/* =========================
   INTRO / SLIDER
========================= */
/* =========================
   SLIDER HOME FIX
========================= */

/* ALTURA FIJA */
#introCarousel {
  height: 400px; /* 👈 el tamaño que vos definiste */
}

/* estructura completa */
#introCarousel .carousel-inner,
#introCarousel .carousel-item {
  height: 100%;
}

/* imágenes */
#introCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTENEDOR */
.intro {
  position: relative;
}
.container-intro{
    padding-top: 10
}

/* TEXTO ENCIMA - IZQUIERDA */
.intro-text {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(10%, -40%);
  max-width: 500px;
  width: 90%;
  margin-left: 5%;
  z-index: 999;
}

/* =========================
   CTA
========================= */
/* =========================
   CTA (TRANSPARENTE AZUL)
========================= */
.cta {
  margin-top: 80px !important;
  padding: 10rem 0;
  background-color: rgba(0, 123, 255, 0.411); /* 👈 azul claro transparente */
  color: var(--text);
}

.cta .cta-inner {
  position: relative;
  padding: 3rem;
  margin: .5rem;
  background-color: rgba(255,255,255,0.85);
  border-radius: 8px;
}

/* borde suave como template original */
.cta .cta-inner::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  bottom: -0.5rem;
  left: -0.5rem;
  right: -0.5rem;
  border: 0.25rem solid rgba(255,255,255,0.6);
  border-radius: 10px;
}

@media (max-width: 768px) {

  /* SLIDER */
  #introCarousel {
    height: 250px;
  }

  #introCarousel .carousel-inner,
  #introCarousel .carousel-item {
    height: 100%;
  }

  #introCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* CONTENEDOR */
  .intro {
    position: relative;
    padding-bottom: 0; /* ❌ eliminamos el hack */
  }

  /* TEXTO → vuelve al flujo normal */
  .intro-text {
    position: relative; /* 👈 CLAVE */
    top: auto;
    left: auto;
    transform: none;

    width: 90%;
    margin: -40px auto 20px auto; /* 👈 efecto leve de superposición opcional */

    z-index: 1;

    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 8px;
  }

  /* CTA */
  .cta {
    margin-top: 20px !important;
  }

}
/* =========================
   FOOTER
========================= */
.footer {
  background-color: var(--dark) !important;
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
}

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

/* =========================
   FLOAT BUTTONS
========================= */
.floating-contact {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  gap: 12px;
  z-index: 9999;
}

.contact-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: 0.3s;
  position: relative;
}

.contact-btn:hover {
  transform: scale(1.1);
}

.whatsapp { background-color: var(--success); }
.mail { background: linear-gradient(135deg, var(--primary), #00c6ff); }

/* TOOLTIP */
.contact-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 80px;
  right: 50%;
  transform: translateX(50%);
  background: #000;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  transition: 0.3s;
}

.contact-btn:hover::after {
  opacity: 1;
}

/* =========================
   FORM CV
========================= */
.cv-container {
  display: flex;
  flex-direction: column;
  margin-top: 2%;
}

.formMessage {
  margin-top: 6px;
  font-size: 14px;
  min-height: 20px;
}

.cv-input-wrapper {
  position: relative;
  width: 220px;
}

.cv-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: white;
  cursor: pointer;
}

.cv-text {
  color: #6c757d;
  font-size: 14px;
}

.cv-dropdown {
  position: absolute;
  top: 100%;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
  display: none;
  z-index: 999;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.cv-option {
  padding: 10px;
  cursor: pointer;
}

.cv-option:hover {
  background: #f1f1f1;
}

/* =========================
   SCROLL TOP
========================= */
#scrollTopBtn {
  position: fixed;
  bottom: 150px;
  right: 25px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: none;
  z-index: 9999;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .floating-contact {
    bottom: 15px;
    right: 15px;
    border-color: #000;
  }

  @keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* clase para usar en el loader */
.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}
}