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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 2px solid #dc2626;
  box-shadow: 0 2px 20px rgba(220, 38, 38, 0.1);
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #1a1a1a;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: #dc2626;
}

/* Video Section */
.video-section {
  margin-top: 80px;
  height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Service Detail Section */
.service-detail-section {
  flex: 1;
  padding-top: 120px;
  padding-bottom: 80px;
  padding-left: 50px;
  padding-right: 50px;
  background: #ffffff;
}

.service-detail-container {
  max-width: 1200px;
  margin: 0 auto;
}

.service-detail-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 60px;
  text-align: center;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.service-detail-image {
  width: 100%;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(220, 38, 38, 0.2);
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-detail-image:hover img {
  transform: scale(1.05);
}

.service-detail-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-detail-subtitle {
  font-size: 32px;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 10px;
}

.service-detail-description {
  font-size: 18px;
  line-height: 1.8;
  color: #4b5563;
}

.service-detail-features {
  margin-top: 20px;
}

.service-detail-features h3 {
  font-size: 24px;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.service-detail-features ul {
  list-style: none;
  padding-left: 0;
}

.service-detail-features li {
  font-size: 16px;
  color: #4b5563;
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
}

.service-detail-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: bold;
  font-size: 18px;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
  margin-top: 20px;
  text-align: center;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

/* Reverse layout */
.service-detail-content.reverse {
  grid-template-columns: 1fr 1fr;
}

.service-detail-content.reverse .service-detail-image {
  order: 2;
}

.service-detail-content.reverse .service-detail-text {
  order: 1;
}

/* Footer */
footer {
  background: #6b7280;
  padding: 60px 50px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #ffffff;
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  color: #f3f4f6;
  text-decoration: none;
  line-height: 1.8;
  display: block;
}

.footer-section a:hover {
  color: #dc2626;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #f3f4f6;
}

/* WhatsApp Bubble */
.whatsapp-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #1fa855 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
  text-decoration: none;
}

.whatsapp-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-bubble svg {
  width: 35px;
  height: 35px;
}

.whatsapp-button.pulse {
      animation: pulse 2s infinite;
}
/* Menú de opciones */
.contact-menu {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
  min-width: 280px;
}

.contact-menu.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.contact-menu-header {
  background: #25d366;
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: #333;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item:hover {
  background: #f5f5f5;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.contact-info {
  flex: 1;
}

.contact-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
  color: #333;
}

.contact-description {
  font-size: 12px;
  color: #666;
}

/* Overlay para cerrar el menú */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 998;
  display: none;
}

.overlay.active {
  display: block;
}

/* Animación de pulso */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
}

.whatsapp-button.pulse {
  animation: pulse 2s infinite;
}

/* ========================================== */
/* RESPONSIVE MEJORADO - Agregar al final de style3.css */
/* ========================================== */

/* Tablet - 1024px y menos */
@media (max-width: 1024px) {
  .service-detail-content {
    gap: 50px;
  }

  .service-detail-title {
    font-size: 48px;
  }

  .service-detail-subtitle {
    font-size: 28px;
  }

  .service-detail-image {
    height: 400px;
  }
}

/* Tablet pequeña - 768px y menos */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 15px 20px;
  }

  .logo-img {
    height: 40px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    padding: 30px 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu a {
    padding: 15px 0;
    width: 100%;
    display: block;
    font-size: 18px;
  }

  .nav-menu a::after {
    display: none;
  }

  /* Video Section */
  .video-section {
    margin-top: 70px;
    height: 30vh;
  }

  /* Service Detail Section */
  .service-detail-section {
    padding: 100px 20px 60px 20px;
  }

  .service-detail-title {
    font-size: 36px;
    margin-bottom: 40px;
  }

  /* Contenido en columna única */
  .service-detail-content,
  .service-detail-content.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Resetear el orden para que todo vaya de arriba a abajo */
  .service-detail-content.reverse .service-detail-image,
  .service-detail-content .service-detail-image {
    order: 1;
  }

  .service-detail-content.reverse .service-detail-text,
  .service-detail-content .service-detail-text {
    order: 2;
  }

  .service-detail-image {
    height: 300px;
    width: 100%;
  }

  .service-detail-subtitle {
    font-size: 24px;
  }

  .service-detail-description {
    font-size: 16px;
  }

  .service-detail-features h3 {
    font-size: 20px;
  }

  .service-detail-features li {
    font-size: 15px;
    padding: 8px 0;
    padding-left: 25px;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  /* Footer */
  footer {
    padding: 40px 20px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-section h3 {
    font-size: 18px;
  }

  .footer-section p,
  .footer-section a {
    font-size: 14px;
  }

  /* WhatsApp */
  .whatsapp-bubble {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-bubble svg {
    width: 30px;
    height: 30px;
  }

  .contact-menu {
    right: 20px;
    left: 20px;
    bottom: 85px;
    min-width: auto;
  }
}

/* Móvil - 480px y menos */
@media (max-width: 480px) {
  /* Header */
  header {
    padding: 12px 15px;
  }

  .logo-img {
    height: 35px;
  }

  .nav-menu {
    top: 60px;
    padding: 20px 0;
  }

  .nav-menu a {
    padding: 12px 0;
    font-size: 16px;
  }

  /* Video Section */
  .video-section {
    margin-top: 60px;
    height: 25vh;
  }

  /* Service Detail Section */
  .service-detail-section {
    padding: 80px 15px 40px 15px;
  }

  .service-detail-title {
    font-size: 28px;
    margin-bottom: 30px;
    line-height: 1.2;
  }

  .service-detail-content {
    gap: 30px;
  }

  .service-detail-image {
    height: 250px;
    border-radius: 15px;
  }

  .service-detail-text {
    gap: 15px;
  }

  .service-detail-subtitle {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .service-detail-description {
    font-size: 15px;
    line-height: 1.6;
  }

  .service-detail-features {
    margin-top: 15px;
  }

  .service-detail-features h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .service-detail-features li {
    font-size: 14px;
    padding: 6px 0;
    padding-left: 25px;
  }

  .service-detail-features li::before {
    font-size: 16px;
  }

  .cta-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    margin-top: 15px;
  }

  /* Footer */
  footer {
    padding: 30px 15px 15px;
  }

  .footer-content {
    gap: 25px;
  }

  .footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .footer-section p,
  .footer-section a {
    font-size: 13px;
    line-height: 1.6;
  }

  .footer-bottom {
    padding-top: 20px;
    font-size: 12px;
  }

  /* WhatsApp */
  .whatsapp-bubble {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-bubble svg {
    width: 28px;
    height: 28px;
  }

  .contact-menu {
    right: 15px;
    left: 15px;
    bottom: 75px;
  }

  .contact-menu-header {
    padding: 12px 15px;
    font-size: 14px;
  }

  .contact-item {
    padding: 12px 15px;
  }

  .contact-icon {
    width: 35px;
    height: 35px;
    margin-right: 12px;
  }

  .contact-icon svg {
    width: 18px;
    height: 18px;
  }

  .contact-name {
    font-size: 13px;
  }

  .contact-description {
    font-size: 11px;
  }
}

/* Móvil pequeño - 375px y menos */
@media (max-width: 375px) {
  .service-detail-title {
    font-size: 24px;
  }

  .service-detail-subtitle {
    font-size: 20px;
  }

  .service-detail-description {
    font-size: 14px;
  }

  .service-detail-image {
    height: 220px;
  }

  .cta-button {
    padding: 10px 15px;
    font-size: 15px;
  }
}