/* VARIABLES DE COLOR */
:root {
  --azul-medianoche: #0b1c2d;
  --naranja-vibrante: #ff7a00;
  --blanco-humo: #f5f7fa;
  --gris-texto: #555;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Montserrat",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: var(--blanco-humo);
  color: var(--gris-texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ANIMACIONES */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 10px 45px rgba(37, 211, 102, 0.6);
  }
}

@keyframes ripple-animation {
  from {
    transform: scale(0);
    opacity: 1;
  }
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* BOTONES */
.btn {
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
  display: inline-block;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: none;
  font-size: 14px;
  touch-action: manipulation;
}

@media (min-width: 768px) {
  .btn {
    font-size: 16px;
  }
}

.btn-primary {
  background-color: var(--naranja-vibrante);
  color: #fff;
}

.btn-primary:hover {
  background-color: #e66e00;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid var(--naranja-vibrante);
  color: var(--naranja-vibrante);
}

.btn-secondary:hover {
  background-color: var(--naranja-vibrante);
  color: #fff;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background-color: #fff;
  color: var(--azul-medianoche);
}

/* HERO */
.hero {
  background:
    linear-gradient(
      135deg,
      rgba(11, 28, 45, 0.75) 0%,
      rgba(11, 28, 45, 0.6) 100%
    ),
    url("../assets/hero.png") center/cover no-repeat;
  background-size: cover;
  background-position: center 30%;
  color: #fff;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  will-change: background-position;
}

@media (max-width: 480px) {
  .hero {
    min-height: 85vh;
    padding: 15px;
    background-position: center 20%;
    background-attachment: scroll;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .hero {
    min-height: 90vh;
    padding: 20px;
    background-position: center 25%;
    background-attachment: scroll;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 30px 8%;
    background-attachment: fixed;
    background-position: center 30%;
    min-height: 100vh;
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .logo {
    font-size: 28px;
  }
}

.hero-content {
  margin-top: auto;
  margin-bottom: auto;
  max-width: 600px;
  width: 100%;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
    margin-bottom: 12px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .hero-title {
    font-size: 36px;
    margin-bottom: 15px;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 48px;
  }
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 30px;
  max-width: 500px;
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 18px;
  }
}

.badge {
  display: inline-block;
  background-color: rgba(255, 122, 0, 0.2);
  color: #ff7a00;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  animation: slideInDown 0.8s ease-out;
}

@media (max-width: 480px) {
  .badge {
    font-size: 12px;
    padding: 6px 14px;
    margin-bottom: 15px;
  }
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 15px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .hero-buttons {
    gap: 12px;
  }

  .hero-buttons .btn {
    flex: 1;
    min-width: 140px;
  }
}

/* BENEFICIOS */
.beneficios {
  padding: 50px 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .beneficios {
    padding: 100px 8%;
  }
}

.beneficios h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--azul-medianoche);
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .beneficios h2 {
    font-size: 36px;
    margin-bottom: 60px;
  }
}

.beneficios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .beneficios-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
}

.card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 16px;
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.6s ease-out backwards;
  will-change: transform;
}

@media (min-width: 768px) {
  .card {
    padding: 40px 30px;
  }
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

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

.icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--naranja-vibrante);
}

.card h4,
.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--azul-medianoche);
}

.card p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

/* SECTORES */
.sectores {
  background-color: #fff;
  padding: 50px 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .sectores {
    padding: 100px 8%;
  }
}

.sectores h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--azul-medianoche);
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .sectores h2 {
    font-size: 36px;
    margin-bottom: 60px;
  }
}

.sectores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .sectores-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
  }
}

.sector-card {
  padding: 30px 20px;
  border-radius: 16px;
  transition: all var(--transition-smooth);
  background-color: #f9f9f9;
  border: 2px solid transparent;
  animation: fadeInUp 0.6s ease-out backwards;
  will-change: transform;
}

@media (min-width: 768px) {
  .sector-card {
    padding: 40px 30px;
  }
}

.sector-card:nth-child(1) {
  animation-delay: 0.1s;
}

.sector-card:nth-child(2) {
  animation-delay: 0.2s;
}

.sector-card:nth-child(3) {
  animation-delay: 0.3s;
}

.sector-icon {
  font-size: 56px;
  color: var(--naranja-vibrante);
  margin-bottom: 20px;
  display: block;
}

.sector-card h4,
.sector-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--naranja-vibrante);
  margin-bottom: 15px;
  letter-spacing: -0.3px;
}

.sector-card p {
  font-size: 15px;
  font-weight: 400;
  color: var(--gris-texto);
  line-height: 1.6;
}

.sector-card:hover {
  background-color: var(--azul-medianoche);
  border-color: var(--naranja-vibrante);
  color: #fff;
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(255, 122, 0, 0.15);
}

.sector-card:hover h3,
.sector-card:hover h4 {
  color: var(--naranja-vibrante);
}

.sector-card:hover p {
  color: #f0f0f0;
}

.sector-card:hover .sector-icon {
  animation: bounce 0.6s ease;
}

/* CONTACTO */
.contacto {
  padding: 50px 20px;
  background-color: var(--azul-medianoche);
  color: #fff;
  text-align: center;
}

@media (min-width: 768px) {
  .contacto {
    padding: 100px 8%;
  }
}

.contacto h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .contacto h2 {
    font-size: 36px;
  }
}

.contacto p {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .contact-buttons {
    flex-direction: column;
  }

  .contact-buttons .btn {
    width: 100%;
  }
}

.response-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--naranja-vibrante);
  margin-top: 15px;
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.4);
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
  animation: pulse 2s infinite;
  z-index: 1000;
  border: none;
}

@media (min-width: 768px) {
  .whatsapp-float {
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    font-size: 32px;
  }
}

.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 15px 45px rgba(37, 211, 102, 0.6);
  animation: none;
}

/* EFECTO RIPPLE */
.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

/* SEÑALES DE CONFIANZA */
.trust-signals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(11, 28, 45, 0.1);
}

@media (min-width: 640px) {
  .trust-signals {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    margin-top: 60px;
    padding-top: 40px;
  }
}

.trust-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--gris-texto);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: fadeInUp 0.8s ease-out backwards;
}

.trust-item:before {
  content: "✓";
  display: inline-block;
  color: var(--naranja-vibrante);
  font-weight: 700;
  font-size: 16px;
}

/* RESPONSIVE MOBILE */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  .icon {
    font-size: 40px;
  }

  .sector-icon {
    font-size: 48px;
  }

  .card p,
  .sector-card p {
    font-size: 14px;
  }
}

/* RESPONSIVE TABLET */
@media (min-width: 481px) and (max-width: 1023px) {
  .beneficios,
  .sectores,
  .contacto {
    padding: 60px 5%;
  }

  .beneficios h2,
  .sectores h2,
  .contacto h2 {
    margin-bottom: 40px;
  }
}

/* RESPONSIVE DESKTOP */
@media (min-width: 1024px) {
  ::-webkit-scrollbar {
    width: 10px;
  }

  ::-webkit-scrollbar-track {
    background: var(--blanco-humo);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--naranja-vibrante);
    border-radius: 5px;
  }
}
