/* --- Variables y Globales --- */
:root {
    --primary-color: #5c8af0; /* Azul claro similar a la imagen */
    --secondary-color: #4a6fa5; /* Azul más oscuro */
    --text-color: #333;
    --bg-light: #1965a0;
    --white: #ffffff;
    --btn-purple: #7b5fac; /* Botón enviar morado */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main{
    background-color: var(--white);
}
body {
    color: var(--text-color);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Componentes Reutilizables --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.btn {
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--text-color);
}

.btn:hover { opacity: 0.9; transform: scale(1.05); }

/* --- Header --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    
}

.nav a {
    margin: 0 15px;
    font-weight: bold;
    font-size: 0.9rem;
}


.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-btn {
    width: 40px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.toggle-btn .circle {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.toggle-btn.active .circle { 
    left: 22px; 
}


/*USO DE HERO PARA EL BANNER*/
    /* CONTENEDOR PRINCIPAL (la caja con la imagen de fondo) */
.hero {
  position: relative;
  width: 100%;          /* ancho de la "caja" */
  min-height: 800px;          /* parecido a tu imagen */
  padding: 24px 32px;
  overflow: hidden;

  /* Imagen de fondo: cámbiala por tu ruta */
  background-image: url("/images/banner_limpiezasalicia.jpg");
  background-size: cover;     /* se adapta a cualquier tamaño */
  background-position: top ;
  background-repeat: no-repeat;

  /* Capa de color por si la imagen no ocupa todo en pantallas raras */
  background-color: #d8dcef;
}

/* Capa opcional para dar un poco de velo a la imagen */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1)
  );
  pointer-events: none;
}

/* Todo el contenido por encima de la imagen */
.hero > * {
  position: relative;
  z-index: 1;
}

/* TOP BAR */
.hero__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  font-size: 14px;
}

.hero__menu {
  display: flex;
  gap: 16px;
}

.hero__menu a {
  color: #111827;
  text-decoration: none;
  font-weight: 500;
}

/* Selector de idioma + toggle */
.hero__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
}

/* Toggle simple */
.toggle {
  position: relative;
  width: 46px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d1d5db;
  border-radius: 999px;
  transition: background-color 0.2s;
}

.toggle__slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s;
}

/* Estado activado */
.toggle input:checked + .toggle__slider {
  background-color: #2563eb;
}

.toggle input:checked + .toggle__slider::before {
  transform: translateX(20px);
}

/* CONTENIDO CENTRAL */
.hero__content {
  text-align: center;
  margin-top: 40px;
}

.hero__title {
  font-size: 32px;
  line-height: 1.2;
  color: #4f46e5;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #4b5563;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__btn {
  border: none;
  background: #4f46e5;
  color: #ffffff;
  padding: 10px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.4);
}

/* --- Index: Grid Gallery --- */
.section-title {
    text-align: center;
    color: var(--primary-color);
    margin: 40px 0 20px;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 200px 200px;
    gap: 15px;
}

.card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card.wide { grid-column: span 2; }
.card.tall { grid-row: span 2; position: relative; }

/* Estilos específicos de las tarjetas */
.stat-card {
    background: #d4a373; /* Tono marrón/naranja imagen */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.stat-box h3 { font-size: 2rem; }
.tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.vertical-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    font-size: 2rem;
    color: white;
    font-weight: bold;
    letter-spacing: 5px;
}

/* --- Index: About Section --- */
.about-card {
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.about-image { 
    position: relative; 
    width: 100%;
}
.about-image img {
    width: 500px;
    border-radius: 15px;
}

.badge {
    position: absolute;
    bottom: -10px;
    left: -10px;
    background: #f4d35e;
    color: black;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.about-text{
    width: 90%;
    margin: auto;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { line-height: 1.6; font-size: 0.9rem; }

/* --- Index: Locations --- */
.locations { text-align: center; margin-bottom: 60px; }
.locations-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 30px;
}

.location-list li {
    background: #f4d35e;
    margin: 10px 0;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.location-map-illustration img { width: 300px; }

/* --- Footer --- */
.footer-cta {
    background-color: #4a5568; /* Gris oscuro */
    color: white;
    text-align: center;
    padding: 40px 20px 10px;
    border-radius: 20px 20px 0 0;
    margin: 20px 20px 0;
}

.cta-box { 
    margin-bottom: 40px; 
}

.cta-box h3{
    margin-bottom: 1.5rem;
}
.footer-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* --- Contact Page Styles --- */
.page-contact {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.contact-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-container {
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.form-section {
    flex: 1;
    padding: 40px;
}

.form-section h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ccc; /* Borde gris inicial */
    border-radius: 20px; /* Bordes redondeados como en la imagen */
    outline: none;
    background: #f9f9f9;
}

.form-group input:focus { border-color: var(--primary-color); }

.btn.full-width {
    width: 100%;
    background-color: var(--btn-purple); /* Morado */
    margin-top: 10px;
}

.image-section {
    flex: 1;
    position: relative;
    /* Efecto de curva usando clip-path o imagen de fondo */
    background: white;
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Clip-path para hacer el efecto de curva entrante */
    clip-path: ellipse(150% 100% at 100% 50%);
}

.footer-simple {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}
.logo img {
    height: 100px; /* Limita la altura al tamaño del header */
    width: 100%;
    object-fit: contain; /* Evita que la imagen se deforme */
}

/* Responsive */
@media (max-width: 768px) {
    .grid-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
    .card.wide, .card.tall { grid-column: span 1; grid-row: span 1; }
    .about-card { flex-direction: column; text-align: center; }
    .locations-content { flex-direction: column; }
    .contact-container { flex-direction: column; }
    .image-section { display: none; } /* Ocultar imagen en móvil para simplificar */
}
