/* Reset y variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colores */
  --color-background: rgb(0, 0, 0);
  --color-foreground: rgb(250, 250, 250);
  --color-card: rgb(3, 3, 3);
  --color-primary: rgb(230 0 22);
  --color-muted: rgb(163, 163, 163);
  --color-border: rgb(38, 38, 38);

  /* Espaciado */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  /* Border radius */
  --radius: 0.5rem;

  /* Transiciones */
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

.nav {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header__img{
  height: 80px;
}

.logo-text {
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
}

.nav-menu {
  display: none;
  gap: 2rem;
}

.nav-link {
  color: var(--color-foreground);
  text-decoration: none;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-foreground);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-foreground);
  position: absolute;
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

.mobile-menu {
  display: none;
  background-color: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 1rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-link {
  color: var(--color-foreground);
  text-decoration: none;
  padding: 0.5rem;
  transition: var(--transition);
}

.mobile-link:hover {
  color: var(--color-primary);
}

/* Hero Section */
.hero-container {
    position: relative;
    width: 100%;
    height: 700px; /* Alto fijo o máximo */
    max-height: 700px;
    overflow: hidden;
    top: 0;
    z-index: -1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

/* Video de fondo dentro del hero */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Que se adapte sin deformarse */
    z-index: -1; /* Detrás del contenido */
}

.degrade-hero{
    background: linear-gradient(to top, oklch(.05 0 0), transparent);
    width: 100%;
    height: 15%;
    position: absolute;
    bottom: 0;
}

/* Contenido encima del video */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

.hero-content h2{
    font-size: 2.5rem;
    color: #e7e7e7;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.hero-content h3{
    font-size: 2.5rem;
    color: oklch(.58 .24 27);
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.hero-content p{
    color: #e7e7e7;
    width: 35%;
    margin: 20px auto;
    font-weight: normal;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

/* Filtro oscuro opcional para contraste */
.hero-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* filtro semitransparente */
    z-index: 0;
}

.hero-content-service{
    color: #e7e7e7;
    padding: 10px 20px;
    background: oklch(.58 .24 27);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    text-decoration: none;
}
.hero-content-cita{
    background: oklch(.58 .24 27);
    padding: 10px 20px;
    background: transparent;
    border-radius: 5px;
    border: solid 1px oklch(.58 .24 27);
    text-decoration: none;
    color: oklch(.58 .24 27);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

/* Section Styling */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-muted);
  font-size: 1.125rem;
}

/* Services Section */
.services {
  padding: 4rem 0;
  background-color: var(--color-background);
}

.services-grid {
  display: grid;
  gap: 2rem;
}

.service-card {
  background-color: var(--color-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--color-primary);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.service-description {
  color: var(--color-muted);
}

/* Pricing Section */
.pricing {
  padding: 4rem 0;
  background-color: var(--color-card);
}

.pricing-grid {
  display: grid;
  gap: 2rem;
}

.pricing-card {
  position: relative;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--color-primary);
}

.pricing-card-popular {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-content {
  padding: 2rem;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.pricing-description {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.pricing-price-container {
  margin-bottom: 2rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: bold;
}

.pricing-period {
  color: var(--color-muted);
  margin-left: 0.5rem;
}

.btn-primary-full {
  width: 100%;
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  text-align: center;
  margin-bottom: 2rem;
}

.btn-primary-full:hover {
  opacity: 0.9;
}

.btn-outline-full {
  width: 100%;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  text-align: center;
  margin-bottom: 2rem;
}

.btn-outline-full:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.feature-item span {
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* Testimonials Section */
.testimonials {
  padding: 4rem 0;
  background-color: var(--color-background);
}

.testimonials-grid {
  display: grid;
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--color-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
}

.testimonial-content {
  color: var(--color-foreground);
  margin-bottom: 1rem;
  font-style: italic;
}

.author-name {
  font-weight: 600;
}

.author-role {
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background-color: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-weight: bold;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--color-muted);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted);
}

.contact-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--color-primary);
}

.footer-hours {
  color: var(--color-muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-link {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

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

/* Responsive Design */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 769px) {
  .logo-text {
    display: none;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .pricing-card-popular {
    transform: scale(1);
  }

  .hero-content{
    top: 45%;
  }

  .hero-content h2, .hero-content h3{
    font-size: 2rem;
  }

  .hero-content p{
    width: 80%;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}
