/* ==========================================================================
   ESTILOS PERSONALIZADOS - OPTICLEAN SOLUCIONES
   ========================================================================== */

/**
 * Configuración base y variables CSS
 */

:root {
  --color-lima: #a3e635;
  --color-aguamarina: #20b2aa;
  --color-gris-claro: #f3f4f6;
  --color-op-blue: #008cba;
  --color-op-green: #65a30d;
  --color-white: #ffffff;
  --color-gray-800: #1f2937;
  --color-gray-600: #4b5563;
  --color-gray-500: #6b7280;
  --color-gray-400: #9ca3af;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/**
 * Estilos base y reset mejorado
 */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--color-white);
  line-height: 1.6;
  color: var(--color-gray-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/**
 * Utilidades de accesibilidad
 */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/**
 * Header y Navegación
 */

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-lg);
  background: rgb(255, 255, 255);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .header-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

/**
 * Logo y Marca - NUEVO LOGO
 */

.logo-container {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  /* Mantiene la altura consistente */
  width: auto;
  /* Mantiene la proporción */
  max-width: 200px;
  /* Evita que sea demasiado ancho */
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  /* color: var(--color-op-blue); */
  color: #05C7F2;
}

.logo-text2 {
  font-size: 1.5rem;
  font-weight: 600;
  /* color: var(--color-op-blue); */
  color: silver;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .logo-img {
    height: 40px;
    /* Un poco más pequeño en móviles */
  }

  .logo-text {
    font-size: 1.25rem;
    /* Texto más pequeño en móviles */
  }
}

/**
 * Controles de Navegación
 */

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/**
 * Selector de Idioma
 */

.language-selector {
  position: relative;
  display: inline-block;
  text-align: left;
}

.language-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--color-aguamarina);
  color: var(--color-white);
  border: none;
  border-radius: 9999px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-button:hover {
  background-color: var(--color-op-blue);
  transform: scale(1.05);
}

.language-button:focus {
  outline: 2px solid var(--color-aguamarina);
  outline-offset: 2px;
}

.language-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.language-text {
  display: none;
}

@media (min-width: 768px) {
  .language-text {
    display: inline;
  }
}

.language-menu {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  width: 12rem;
  border-radius: 0.375rem;
  box-shadow: var(--shadow-lg);
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.language-menu:not(.hidden) {
  display: block;
}

.language-options {
  padding: 0.25rem 0;
}

.language-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--color-gray-700);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.language-option:hover {
  background-color: var(--color-gris-claro);
}

/**
 * Botón de WhatsApp
 */

.whatsapp-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: #25D366;
  color: var(--color-white);
  border-radius: 9999px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #128C7E;
  transform: scale(1.05);
}

.whatsapp-button:focus {
  outline: 2px solid #25D366;
  outline-offset: 2px;
}

.whatsapp-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.whatsapp-text {
  display: none;
}

@media (min-width: 768px) {
  .whatsapp-text {
    display: inline;
  }
}

/**
 * Sección Hero
 */

.hero-section {
  background: linear-gradient(135deg, var(--color-aguamarina) 0%, var(--color-lima) 100%);
  color: var(--color-white);
  padding: 5rem 1rem;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  box-shadow: var(--shadow-xl);
  background-attachment: fixed;
}

.hero-container {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 0 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0.9;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--color-white);
  color: var(--color-op-blue);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.hero-cta:hover {
  background-color: var(--color-gris-claro);
  transform: scale(1.05);
}

.hero-cta:focus {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/**
 * Secciones Generales
 */

.section-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .section-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-container {
    padding: 0 2rem;
  }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-op-blue);
  margin-bottom: 3rem;
}

/**
 * Sección Nosotros
 */

.about-section {
  padding: 4rem 0;
  background-color: var(--color-gris-claro);
}

.about-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.mission-card,
.vision-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
}

.mission-card {
  border-top: 4px solid var(--color-aguamarina);
}

.vision-card {
  border-top: 4px solid var(--color-lima);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.card-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
}

.card-content {
  color: var(--color-gray-600);
  line-height: 1.625;
}

/**
 * Sección Valores
 */

.values-section {
  padding: 4rem 0;
}

.values-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-op-green);
  margin-bottom: 3rem;
}

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

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--color-white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border-bottom: 4px solid transparent;
}

.value-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.value-card:nth-child(1) {
  border-bottom-color: var(--color-op-blue);
}

.value-card:nth-child(2) {
  border-bottom-color: var(--color-aguamarina);
}

.value-card:nth-child(3) {
  border-bottom-color: var(--color-op-green);
}

.value-card:nth-child(4) {
  border-bottom-color: var(--color-op-blue);
}

.value-card:nth-child(5) {
  border-bottom-color: var(--color-aguamarina);
}

.value-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
}

.value-card:nth-child(1) .value-icon {
  color: var(--color-op-blue);
}

.value-card:nth-child(2) .value-icon {
  color: var(--color-aguamarina);
}

.value-card:nth-child(3) .value-icon {
  color: var(--color-op-green);
}

.value-card:nth-child(4) .value-icon {
  color: var(--color-op-blue);
}

.value-card:nth-child(5) .value-icon {
  color: var(--color-aguamarina);
}

.value-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.value-description {
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

/**
 * Sección Servicios
 */

.services-section {
  padding: 4rem 0;
  background-color: var(--color-gris-claro);
}

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

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--color-white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: scale(1.02);
}

.service-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

.service-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-op-blue);
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--color-gray-600);
  margin-bottom: 1rem;
}

/**
 * Call to Action
 */

.cta-container {
  text-align: center;
  margin-top: 3rem;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--color-op-green);
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.cta-button:hover {
  background-color: var(--color-lima);
  transform: scale(1.05);
}

.cta-button:focus {
  outline: 2px solid var(--color-op-green);
  outline-offset: 2px;
}

/**
 * Footer
 */

.main-footer {
  background-color: var(--color-gray-800);
  color: var(--color-white);
  padding: 3rem 0;
}

.footer-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-container {
    padding: 0 2rem;
  }
}

.footer-phone {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.footer-web {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.web-link {
  color: var(--color-lima);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.web-link:hover {
  color: var(--color-aguamarina);
}

.link-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-address {
  color: var(--color-gray-400);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.whatsapp-link {
  color: var(--color-op-green);
  transition: color 0.3s ease;
}

.whatsapp-link:hover {
  color: var(--color-lima);
}

.whatsapp-footer-icon {
  width: 1.875rem;
  height: 1.875rem;
}

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

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

.footer-copyright {
  margin-top: 2rem;
  color: var(--color-gray-500);
  font-size: 0.75rem;
}

/**
 * Estados de carga y transiciones
 */

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/**
 * Mejoras de responsive
 */

@media (max-width: 768px) {
  .nav-controls {
    gap: 0.5rem;
  }

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

  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/**
 * Mejoras de contraste para accesibilidad
 */

@media (prefers-contrast: high) {
  .hero-section {
    background: linear-gradient(135deg, #1a9c96 0%, #8cc42a 100%);
  }

  .cta-button {
    border: 2px solid currentColor;
  }
}

/**
 * Modo reducción de movimiento
 */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/**
 * Utilidades de impresión
 */

@media print {

  .nav-controls,
  .hero-cta,
  .cta-button {
    display: none !important;
  }

  .main-header {
    position: static;
    box-shadow: none;
  }
}