/* Doña Limpia & Shine - Estilos Modernos */

/* Variables CSS para colores y medidas */
:root {
  --primary-color: #0284c7;
  --primary-hover: #0369a1;
  --secondary-color: #0f172a;
  --accent-color: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* Reset y base */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: #ffffff;
}

/* Container responsivo */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Tipografía moderna */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
}

/* Párrafos y texto */
p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 768px) {
  p {
    font-size: 1.25rem;
  }
}

/* Top Bar moderno */
.top-bar {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  padding: 1rem 0;
  font-size: 1rem;
  display:none;
}

.top-bar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.top-bar a:hover {
  opacity: 0.8;
}

/* Header moderno */
.header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.logo {
  height: 3rem;
  width: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.company-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0.5rem 0 0 0;
  display: none; /* Ocultar en mobile por defecto */
}

/* Navegación de idioma en mobile */
.header-lang-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  flex-shrink: 0;
}

/* Clases para controlar visibilidad en header */
.header-reserve-btn {
  display: none !important; /* Ocultar botón reservar en mobile por defecto */
}

@media (min-width: 768px) {
    .top-bar {
        display: block;
    }
  .header {
    padding: 2rem 0;
  }
  
  .header-content {
    gap: 2rem;
  }
  
  .logo-section {
    gap: 1.5rem;
  }
  
  .logo {
    height: 5rem;
  }
  
  .company-name {
    font-size: 2.25rem;
  }
  
  .tagline {
    font-size: 1.125rem;
    display: block; /* Mostrar tagline en desktop */
  }
  
  .header-reserve-btn {
    display: inline-flex !important; /* Mostrar botón reservar en desktop */
  }
}

/* Botones modernos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: white;
  transform: translateY(-2px);
}

/* Secciones */
.section {
  padding: 2rem 0;
}



/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 25%, #fbbf24 75%, #fde047 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(251, 146, 60, 0.05) 100%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h2 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero h3 {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 10/9;
}

/* Servicios Grid */
.services-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 2rem;
}

.service-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.service-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Poblaciones Section - Siempre visible */
.poblaciones-section {
  background: var(--accent-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-top: 3rem;
  border: 1px solid var(--border-color);
}

.poblaciones-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.poblaciones-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .poblaciones-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .poblaciones-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.poblacion-item {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.poblacion-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--primary-color);
  color: white;
}

/* Galería */
.gallery-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Contacto */
.contact-info {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 1.125rem;
}

.contact-icon {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--primary-hover);
}

/* Footer */
.footer {
  background: var(--secondary-color);
  color: #cbd5e1;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-text {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: white;
}

/* Utilidades responsivas */
.text-center {
  text-align: center;
}

.hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hidden-mobile {
    display: block;
  }
}

.mobile-only {
  display: block;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
}

/* Animaciones suaves */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible para navegación por teclado */
.btn:focus-visible,
.contact-link:focus-visible,
.footer-link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
