/* ========================================
   GLOBAL STYLES & RESET
   ======================================== */

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6; /* Added for better readability */
}

/* Main container for content centering */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Dark theme utility class */
.dark-theme {
  background-color: #000;
  color: #fff;
}

.dark-theme a {
  color: #0af;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

/* Fixed header with glassmorphism effect */
/* Fixed header with glassmorphism effect */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem 0;
  position: relative;
}

/* Línea horizontal con gradiente */
header::after {
  content: '';
  position: absolute;
  bottom: 1;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: linear-gradient(to right, transparent, #0af, transparent);
}


.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* Espacio entre el ícono y el texto */
}

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain; /* Para evitar que se distorsione */
}

/* Header logo/title */
header h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

/* Header flex layout for responsive design */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Navigation container */
nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

/* Navigation links */

header nav a,
.header-flex nav a {
  text-decoration: none;
  color: #a1a1a1 !important; /* Fuerza el color */
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  position: relative;
}


/* Hover con mayor especificidad */
header nav a:hover,
.header-flex nav a:hover {
  color: #ffffff !important;
  
}


/* Underline effect on hover */
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: rgb(255, 255, 255);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 80%;
}


/* ========================================
   HERO SECTION
   ======================================== */

/* Main hero banner */
.hero {
  background-color: #000;
  text-align: center;
  padding: 6rem 1rem;
  margin-top: 2rem;
}

/* En móviles, menos espacio */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 1rem 3rem 1rem;
  }
}

/* En pantallas muy pequeñas */
@media (max-width: 480px) {
  .hero {
    padding: 4.5rem 1rem 2rem 1rem;
  }
}

/* Hero title with gradient text effect */
.hero h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #00bfff, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem; /* Added spacing */
}

/* Hero subtitle */
.hero p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2rem;
}


@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem 2rem 1rem; /* Menos padding superior */
    margin-top: 1rem; /* Reducir margen superior */
  }
  
  .hero h2 {
    font-size: 1.8rem; /* Título más pequeño */
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1rem; /* Texto más pequeño */
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
}


/* ========================================
   CALL-TO-ACTION BUTTONS
   ======================================== */

/* Standard CTA button */
.cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #0af;
  color: #000 !important;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
}

.cta:hover {
  background-color: #08c;
}

/* Gradient CTA button variant */
.cta-gradient {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  color: #000 !important;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-gradient:hover {
  background: linear-gradient(to right, #00aaff, #0050dd);
}

/* Taller CTA button for special sections */
.cta-gradient.tall {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  color: #000 !important;
}

/* ========================================
   LAYOUT SECTIONS
   ======================================== */

/* Generic section container */
.section {
  padding: 3rem 1rem;
  background-color: #000;
}

/* Light variant section */
.section.light {
  background-color: #111;
}

/* Section headings */
.section h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: #fff;
}

/* ========================================
   GRID LAYOUTS & CARDS
   ======================================== */

/* Responsive grid system */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  flex: 0 1 340px; /* ancho mínimo de tarjeta */
  max-width: 340px;
}

/* Card component with hover effects */
.card {
  background-color: #111;
  padding: 2rem;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  color: #fff;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 170, 255, 0.2);
}

/* Card headings */
.card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #0af;
}

/* ========================================
   ICON & SERVICE COMPONENTS
   ======================================== */

/* Icon wrapper for service cards */
.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background-color: rgba(0, 170, 255, 0.1); /* Added background */
}

.icon-wrapper img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Custom service list styling */
.card ul.service-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.card ul.service-list li {
  margin-bottom: 0.5rem;
  color: #ccc;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
}

.card ul.service-list li::before {
  content: "•";
  color: #0af;
  position: absolute;
  left: 0;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

/* Testimonials container */
.testimonials {
  background-color: #000;
  padding: 4rem 1rem;
  color: #fff;
}

.testimonials h2 {
  text-align: center;
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 2rem;
}

/* Testimonials grid layout */
.testimonial-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Individual testimonial card */
.testimonial {
  background-color: #111;
  border: 1px solid #333;
  padding: 1.5rem;
  border-radius: 6px;
  font-style: italic;
  color: #ccc;
  position: relative;
}

/* Quote mark styling */
.testimonial::before {
  font-size: 2rem;
  line-height: 0;
  vertical-align: top;
  color: #0af;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
}



/* Testimonial author styling */
.testimonial-author {
  margin-top: 1rem;
  font-weight: 600;
  color: #0af;
  font-style: normal;
}

/* ========================================
   IMPACT METRICS SECTION
   ======================================== */

/* Impact metrics container */
.impact-metrics {
  background-color: #000;
  padding: 4rem 1rem;
  color: #fff;
}

.impact-metrics h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
  color: #fff;
}

/* Impact grid layout */
.impact-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Individual impact item with animation */
.impact-item {
  background-color: #111;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateY(40px);
}

.impact-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.impact-item:nth-child(1).visible {
  transition-delay: 0.1s;
}

.impact-item:nth-child(2).visible {
  transition-delay: 0.3s;
}

.impact-item:nth-child(3).visible {
  transition-delay: 0.5s;
}

/* Impact item content */
.impact-item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.impact-item p {
  margin: 0;
  color: #ccc;
  font-size: 0.95rem;
}

/* Highlighted numbers with gradients */
.impact-highlight {
  font-size: 1.75rem;
  font-weight: bold;
  text-align: right;
  flex: 0 0 auto;
}

/* Different gradient colors for each impact item */
.impact-item:nth-child(1) .impact-highlight {
  background: linear-gradient(to right, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.impact-item:nth-child(2) .impact-highlight {
  background: linear-gradient(to right, #697edc, #cb8ddd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.impact-item:nth-child(3) .impact-highlight {
  background: linear-gradient(to right, #d678ce, #f76b1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

/* About section content wrapper */
.about-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.about-content .highlight {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ccc;
}

/* About grid layout */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: left;
}

.about-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #0af;
}

.about-grid p {
  font-size: 0.95rem;
  color: #ccc;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

/* Contact section grid layout */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 2rem;
}

/* Contact information styling */
.contact-info h2 {
  font-size: 1.75rem;
  color: #0af;
  margin-bottom: 1rem;
}

.contact-info p {
  color: #ccc;
  margin-bottom: 1rem;
}

.contact-email a {
  color: #0af;
  font-weight: bold;
  text-decoration: underline;
}

/* Social media icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(0, 170, 255, 0.1);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: rgba(0, 170, 255, 0.2);
  transform: scale(1.1);
}

.social-icons svg {
  width: 24px;
  height: 24px;
  color: #0af;
  transition: color 0.3s ease;
}

.social-icons a:hover svg {
  color: #fff;
}


/* ========================================
   CONTACT FORM
   ======================================== */

/* Main form container */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #111;
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid #333;
  max-width: 500px;
  text-align: left;
}

.contact-form h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.contact-form p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

/* Form labels (excluding checkbox labels) */
.contact-form label:not(.checkbox-row label) {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ddd;
}

/* Form inputs and textarea */
.contact-form input,
.contact-form textarea {
  background-color: #2b384f;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0af;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox styling */
.checkbox-row {
  margin: 1rem 0;
  width: 100%;
}

.checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.5;
  font-weight: normal;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  margin-top: 0.1rem;
  transform: scale(1.1);
  cursor: pointer;
}

.checkbox-row .checkbox-text {
  flex: 1;
  text-align: left;
}

.checkbox-row a {
  color: #0af;
  text-decoration: underline;
}

/* Form submit button */
.contact-form button.cta {
  margin-top: 0.5rem;
  background-color: #0af;
  color: #000 !important;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.contact-form button.cta:hover {
  background-color: #4dc3f7;
}

.contact-form .disclaimer {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .contact-form {
    max-width: 100%; /* Usar todo el ancho disponible */
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .contact-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 1rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* Evita zoom en iOS */
  }
}


/* ========================================
   COOKIE BANNER
   ======================================== */

/* Fixed cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  z-index: 999;
  border-top: 1px solid #333;
}

.cookie-content {
  max-width: 800px;
}

.cookie-content a {
  color: #0af;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cookie-btn.reject {
  background-color: #000;
  color: #fff;
  border: 1px solid #555;
}

.cookie-btn.reject:hover {
  background-color: #333;
}

.cookie-btn.accept {
  background: linear-gradient(to right, #00c6ff, #0072ff);
  color: #fff;
}

.cookie-btn.accept:hover {
  background: linear-gradient(to right, #00aaff, #0050dd);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }
  
  .cookie-content {
    margin-bottom: 1rem;
  }
  
  .cookie-content p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .cookie-actions {
    justify-content: center;
    margin-top: 0;
  }
  
  .cookie-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}


/* ========================================
   FOOTER
   ======================================== */

footer {
  background-color: #000;
  color: #888;
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid #333;
  font-size: 0.8rem; 
  line-height: 1.4; /* Mejor espaciado entre líneas */
  opacity: 0.9; /* Sutil transparencia */
}

/* ========================================
   ANIMATIONS & KEYFRAMES
   ======================================== */

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

/* ========================================
   GLOBAL OPTIMIZATIONS
======================================== */

* {
  box-sizing: border-box;
}

img, svg {
  max-width: 100%;
  height: auto;
}

/* Reduce animations if requested by user settings */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ========================================
   MOBILE & TABLET (≤ 768px)
======================================== */

@media (max-width: 768px) {

  /* Typography & Layout */
  body {
    font-size: 14px;
    line-height: 1.5;
  }

  .section {
    padding: 2rem 1rem;
  }

  .section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

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

  /* Header */
  header {
    padding: 1rem 0;
  }

  .header-flex {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }

  .logo h1 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
  }

  nav {
    margin-top: 1rem;
    order: 2;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .cta-gradient.tall {
    order: 1;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    margin-bottom: 1rem;
    display: none;
  }

  /* Contact Section */
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 2rem;
  }

  /* Grid system for cards */
  .grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
  }
}


/* ========================================
   SMALL DEVICES (≤ 480px)
======================================== */

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.75rem;
  }

  .card {
    padding: 1rem;
  }

  .card h3 {
    font-size: 1.1rem;
  }
}