/* Variables globales */
:root {
  --color-background: #1A1A1D;      /* Grafito profundo */
  --color-accent1: #00F5D4;         /* Turquesa neón */
  --color-accent2: #FF4E50;         /* Coral brillante */
  --color-secondary1: #F4E2D8;      /* Arena cálida */
  --color-secondary2: #A3B18A;      /* Oliva suave */
  --color-text-heading: #FFFFFF;    /* Blanco puro */
  --color-text-body: #CCCCCC;       /* Gris claro */
  --gradient-primary: linear-gradient(135deg, var(--color-accent1), var(--color-accent2));
}

/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-body);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--color-accent1);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent2);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 20px;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 15px auto 0;
}

section {
  padding: 80px 0;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-element {
  animation: pulse 3s infinite ease-in-out;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(26, 26, 29, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-heading);
  text-transform: lowercase;
  letter-spacing: 1px;
}

.desktop-menu ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.desktop-menu ul li a {
  color: var(--color-text-heading);
  font-weight: 600;
  transition: color 0.3s ease;
}

.desktop-menu ul li a:hover {
  color: var(--color-accent1);
}

.nav-cta {
  background: var(--gradient-primary);
  color: var(--color-text-heading) !important;
  padding: 8px 16px;
  border-radius: 4px;
  transition: transform 0.3s ease !important;
}

.nav-cta:hover {
  transform: translateY(-3px);
}

/* Menú móvil */
.menu-mobile {
  display: none;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--color-text-heading);
  transition: transform 0.3s ease;
}

/* Hero */
.hero {
  height: 100vh;
  background-image: url('../img/hero-background.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-out;
}

.hero .subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: var(--color-secondary1);
  animation: fadeIn 1s ease-out 0.2s forwards;
  opacity: 0;
}

.btn-cta {
  display: inline-block;
  padding: 15px 30px;
  background: var(--gradient-primary);
  color: var(--color-text-heading);
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 1s ease-out 0.4s forwards;
  opacity: 0;
}

.btn-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 245, 212, 0.3);
  color: var(--color-text-heading);
}

/* Sobre Nosotros */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
}

.about-image {
  height: 300px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.2), rgba(255, 78, 80, 0.2));
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px 5px 0 0;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  margin-bottom: 20px;
}

.service-link {
  margin-top: auto;
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--color-accent1);
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
}

.service-link:hover {
  background-color: var(--color-accent1);
  color: var(--color-background);
}

/* Ventajas */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.advantage-item {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.advantage-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Testimonios */
.testimonials {
  background-color: rgba(255, 255, 255, 0.02);
  position: relative;
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-item {
  display: none;
  text-align: center;
  padding: 20px;
}

.testimonial-item.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial-rating {
  margin-bottom: 15px;
}

.star {
  color: var(--color-accent1);
  font-size: 1.2rem;
}

.star.empty {
  color: rgba(255, 255, 255, 0.3);
}

.testimonial-author {
  margin-top: 20px;
}

.testimonial-name {
  font-weight: 700;
  margin-bottom: 5px;
}

.testimonial-company {
  color: var(--color-accent1);
  font-size: 0.9rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease;
}

.testimonial-dot.active {
  background: var(--gradient-primary);
}

/* Formulario de contacto */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-body);
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-accent1) 50%), 
                    linear-gradient(135deg, var(--color-accent1) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--color-text-heading);
  background-color: rgba(255, 255, 255, 0.1);
}

select option {
  background-color: var(--color-background);
  color: var(--color-text-heading);
  padding: 10px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent1);
  box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.9rem;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 4px;
  background: var(--gradient-primary);
  color: var(--color-text-heading);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 245, 212, 0.3);
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  background-color: rgba(255, 255, 255, 0.02);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  padding: 20px;
  max-height: 500px;
}

.faq-item:has(.faq-answer.active) .faq-question::after {
  transform: rotate(45deg);
}

/* Oficina */
.office-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.office-map {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
}

.office-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-info h3 {
  font-size: 1.3rem;
  margin-top: 20px;
  margin-bottom: 10px;
}

.office-info h3:first-child {
  margin-top: 0;
}

/* Footer */
.site-footer {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 20px;
  display: inline-block;
}

.footer-logo p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-contact h3, .footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--color-text-body);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--color-accent1);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Cookie Popup */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  background-color: rgba(26, 26, 29, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  z-index: 1100;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.cookie-content {
  text-align: center;
}

.cookie-content p {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.btn-cookie {
  background: var(--gradient-primary);
  border: none;
  padding: 10px 20px;
  color: var(--color-text-heading);
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.btn-cookie:hover {
  transform: translateY(-3px);
}
