/* ================================
   1. ESTILO GENERAL / FONDO
================================== */

body,
.inicio-body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #f8f9fa;
  background: radial-gradient(circle at top left, #0b4b88 0, #042044 45%, #020814 100%);
}

/* Animación suave tipo fondo vivo */
@keyframes gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.inicio-body {
  background-size: 300% 300%;
  animation: gradient 12s ease infinite;
}

/* Títulos */
h1 {
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

h2 {
  color: #213663;
  margin-top: 10px;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* ================================
   2. CARDS (CRUD + INICIO)
================================== */

.card {
  background-color: #ffffff;
  color: #333;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  padding: 28px 32px;
  width: 95%;
  max-width: 800px;
  margin: 20px auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

/* Responsive */
@media (max-width: 480px) {
  .card {
    width: 95%;
    padding: 20px;
  }
}

/* ================================
   3. FORMULARIOS
================================== */

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-weight: 600;
  margin-top: 5px;
}

input[type="text"],
input[type="number"],
input[type="email"] {
  padding: 10px;
  border: 1px solid #cfd4da;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 0 2px rgba(13,110,253,0.25);
}

/* Botón genérico de formulario */
input[type="submit"] {
  background-color: #0d6efd;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="submit"]:hover {
  background-color: #0b5ed7;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

/* ================================
   4. HEADER / NAVBAR COMO FLYER
================================== */

/* OJO: la clase main-header está en el <nav>, no en el <header> */
.main-header {
  background: linear-gradient(90deg, #061a36, #0b4b88, #0b60c5);
  color: #fff;
  width: 100%;
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.navbar {
  background: transparent !important; /* dejamos que el header mande */
  box-shadow: none;
}

.navbar-brand span {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.1rem;
}

.navbar-nav .nav-link {
  font-weight: 600;
  margin: 0 0.35rem;
  color: #ffffff !important;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.navbar-nav .nav-link:hover {
  color: #ffd43b !important;
}

.navbar-nav .nav-link.active {
  border-bottom: 2px solid #ff4b4b; /* rojo como LAVANDERÍA */
}

/* ================================
   5. BOTONES ESPECIALES (INICIO)
================================== */

.btn-entrar {
  display: inline-block;
  margin-top: 30px;
  background-color: #0d6efd;
  color: #fff;
  padding: 12px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .5px;
  transition: 0.25s;
  box-shadow: 0 0 18px rgba(13,110,253,0.65);
}

.btn-entrar:hover {
  background-color: #6c8ff5;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 24px rgba(108,143,245,0.9);
}

/* Botones de acción (volver / listar) */
.btn-volver,
.btn-listar {
  background-color: #0d6efd;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin: 4px;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.btn-volver:hover,
.btn-listar:hover {
  background-color: #0b5ed7;
  transform: translateY(-1px);
}

/* ================================
   6. MENSAJES
================================== */

.alert {
  padding: 10px 20px;
  border-radius: 6px;
  margin: 15px 0;
  text-align: center;
  font-weight: 600;
}

.alert.success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.alert.error {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

/* ================================
   7. TABLAS (LISTA DE USUARIOS)
================================== */

table {
  border-collapse: collapse;
  width: 90%;
  margin: 20px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border-radius: 10px;
  overflow: hidden;
  background-color: #ffffff;
  color: #333;
}

th, td {
  padding: 10px 15px;
  text-align: center;
}

th {
  background: linear-gradient(90deg, #061a36, #0b4b88);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.85rem;
}

tr:nth-child(even) {
  background-color: #f7f7f7;
}

tr:hover {
  background-color: #e6e9ff;
}

/* Botones de acciones en tabla */
.btn-editar_lista,
.btn-eliminar_lista {
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.btn-editar_lista {
  background-color: #198754;
}

.btn-eliminar_lista {
  background-color: #dc3545;
}

.btn-editar_lista:hover,
.btn-eliminar_lista:hover {
  opacity: 0.9;
}

/* ================================
   8. CONTENEDOR PRINCIPAL (#contenido)
================================== */

#contenido {
  width: 95%;
  min-height: 650px;
  margin: 30px auto 40px;
  background: transparent;
}

/* ================================
   9. CARRUSEL INICIO (PORTADA)
================================== */

.inicio-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px 15px 10px;
}

.carousel-inner img {
  border-radius: 18px;
  height: 380px;
  object-fit: cover;
  filter: brightness(90%);
}

.carousel-caption h5 {
  font-size: 1.6rem;
  font-weight: 700;
}

.carousel-caption p {
  font-size: 1rem;
}
.carousel-caption h5 {
  color: #070405 !important;
}
.carousel-caption p {
  color: #f7f1f3 !important;
}
/* Capa oscura sobre cada imagen del carrusel */
.carousel-item {
  position: relative;
}

.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(3, 7, 18, 0.70),
    rgba(15, 23, 42, 0.45),
    rgba(15, 23, 42, 0.80)
  );
}
.carousel-item img {
  position: relative;
  z-index: 0;
}
/* Caja de texto del carrusel mejorada */
.carousel-caption {
  z-index: 2; /* por encima del overlay */
  bottom: 14%;
  left: 8%;
  right: auto;
  text-align: left;
  max-width: 420px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(4, 18, 40, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Título del carrusel */
.carousel-caption h5 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

/* Texto del carrusel */
.carousel-caption p {
  font-size: 0.95rem;
  margin: 0;
  color: #e2e8ff;
}
@media (max-width: 576px) {
  .carousel-caption {
    left: 50%;
    transform: translateX(-50%);
    bottom: 10%;
    max-width: 90%;
    text-align: center;
  }
}



/* ================================
   FOOTER UNIVERSAL ABI EUROCLEAN
================================== */

.site-footer {
  margin-top: 40px;
  padding: 15px 0;
  background: linear-gradient(90deg, #061a36, #0b4b88, #0b60c5);
  color: #fff;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
  font-size: 0.9rem;
}

.footer-brand-title {
  font-weight: 700;
  font-size: 1rem;
}

.footer-brand-sub {
  font-size: 0.8rem;
  opacity: 0.85;
}

.footer-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.footer-middle small {
  font-size: 0.8rem;
}

.footer-contact {
  font-size: 0.8rem;
}

.footer-phone {
  margin-bottom: 6px;
}

.footer-social {
  display: inline-flex;
  gap: 8px;
}

.footer-social-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.footer-social-circle.whatsapp {
  background: #22c55e;
}

.footer-social-circle.instagram {
  background: radial-gradient(circle, #fbc02d, #e91e63, #7b1fa2);
}

.footer-social-circle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  opacity: 0.95;
}

/* Responsive: en móvil todo centrado y con más espacio */
@media (max-width: 768px) {
  .site-footer {
    text-align: center;
  }
  .footer-brand {
    justify-content: center !important;
  }
  .footer-right {
    text-align: center !important;
  }
}

/* ============================
   BANNER PRINCIPAL ABIEUROCLEAN — VERSION PEQUEÑA
============================ */

.banner-abieuroclean {
  max-width: 900px;               /* 🔹 Antes 1100px → ahora más pequeño */
  margin: 30px auto 20px;
  padding: 18px 22px;             /* 🔹 Más compacto */
  border-radius: 14px;
  background: radial-gradient(circle at top left, #0b4b88 0, #041b3a 60%, #020814 100%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
}

.banner-wrapper {
  display: flex;
  flex-wrap: nowrap;              /* 🔹 Ya no se extiende tanto */
  align-items: center;
  justify-content: space-between; /* 🔹 Alineación más elegante */
  gap: 18px;
}

.banner-text {
  flex: 1;
  color: #fcf9f9;
  padding: 10px 0;
}

.banner-text h1 {
  font-size: 1.9rem;       /* 🔹 Antes 2.4rem */
  margin: 0 0 4px 0;
  letter-spacing: 1.5px;
}

.banner-text h3 {
  font-size: 1.1rem;       /* 🔹 Más discreto */
  color: #ff4b4b;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.banner-text p {
  margin-bottom: 8px;
  font-size: 0.85rem;      /* 🔹 Más elegante */
}

.banner-contacto {
  margin-top: 6px;
  font-size: 0.8rem;       /* 🔹 Más compacto */
}

.banner-image-box {
  flex: 0 0 220px;         /* 🔹 Imagen más pequeña */
}

.banner-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

/* Responsive: versión móvil */
@media (max-width: 768px) {
  .banner-abieuroclean {
    padding: 14px 18px;
  }

  .banner-wrapper {
    flex-direction: column-reverse;
    text-align: center;
    gap: 12px;
  }

  .banner-image-box {
    flex: unset;
    width: 65%;
  }

  .banner-text h1 {
    font-size: 1.6rem;
  }
}
/* Vista inicio (menú del CRUD) */
.crud-inicio .card-intro p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.card-opcion {
  text-align: center;
}

.card-opcion h4 {
  margin-top: 10px;
  margin-bottom: 8px;
  font-weight: 700;
  color: #213663;
}

.card-opcion p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Iconito redondo arriba de cada card */
.card-opcion-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #141212;
  margin-bottom: 8px;
}

/* Colores por acción */
.icon-agregar  { background: #198754; }
.icon-listar   { background: #0d6efd; }
.icon-buscar   { background: #6c757d; }
.icon-eliminar { background: #dc3545; }
.login-body {
  background: linear-gradient(135deg, #09203f, #537895);
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 400px;
}
/* ================================
   SECCIÓN SERVICIOS (INDEX)
================================== */

.section-servicios {
  padding: 60px 0 50px;
  color: #f8f9fa;
}

.section-servicios h2 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.section-servicios p {
  font-size: 0.95rem;
}

.servicios-grid {
  margin-top: 25px;
}

.servicio-card {
  background: rgba(3, 13, 35, 0.92);
  border-radius: 14px;
  padding: 20px 18px;
  height: 100%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.servicio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  border-color: #4dabf7;
}

.servicio-card h3 {
  color: #e2f0ff;
  font-size: 1.05rem;
  margin-top: 10px;
  margin-bottom: 8px;
}

.servicio-card p {
  font-size: 0.9rem;
  color: #d0e1ff;
}

/* Icono grande arriba */
.servicio-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4dabf7, #9775fa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

/* Texto de domicilios */
.servicios-domicilios p {
  font-size: 0.95rem;
  color: #f1f3f5;
}

.servicios-domicilios a {
  color: #4dabf7;
  text-decoration: none;
  font-weight: 600;
}

.servicios-domicilios a:hover {
  text-decoration: underline;
}
/* LEYENDA DE SERVICIOS */
.leyenda-servicios h2 {
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0px 3px 12px rgba(0,0,0,0.4);
}

.service-item {
  color: #ffffff;
  transition: transform .3s ease, filter .3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  filter: brightness(1.15);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #4cc9f0; /* Azul aqua lindo */
  text-shadow: 0px 0px 10px rgba(76, 201, 240, 0.5);
}

.service-item p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}
/* ================================
   SECCIÓN MAPA / UBICACIÓN
================================== */

.section-mapa {
  padding: 50px 0 60px;
}

.mapa-wrapper {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}

.section-mapa iframe {
  display: block;
}

/* Caja de info al lado del mapa */
.mapa-info {
  background: rgba(3, 13, 35, 0.92);
  border-radius: 16px;
  padding: 22px 20px;
  color: #f1f5f9;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.mapa-info h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #e2f0ff;
}

.mapa-info p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.mapa-info i {
  color: #4dabf7;
  margin-right: 6px;
}

/* Botones de acción */
.mapa-contacto-btns {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-mapa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.25s;
}

.btn-mapa.whatsapp {
  background: #22c55e;
  color: #0b1120;
}

.btn-mapa.whatsapp:hover {
  background: #16a34a;
  color: #f8fafc;
}

.btn-mapa.maps {
  background: transparent;
  color: #e2e8f0;
  border-color: #3b82f6;
}

.btn-mapa.maps:hover {
  background: #1d4ed8;
  color: #e5f0ff;
}
/* ==========================================
   SECCIÓN CONTACTO
========================================== */

.section-contacto {
  padding: 60px 0;
  color: #e2e8f0;
}

.contacto-info {
  background: rgba(3, 13, 35, 0.92);
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.25);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.contacto-info h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #e2f0ff;
}

.contacto-item {
  display: flex;
  gap: 12px;
  margin: 12px 0;
  font-size: 0.95rem;
}

.contacto-item i {
  font-size: 1.3rem;
  color: #4dabf7;
}

/* Redes */
.contacto-redes {
  margin-top: 15px;
}

.contacto-icons {
  margin-top: 8px;
  display: flex;
  gap: 10px;
}

.contacto-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: 0.25s;
}

.contacto-circle.whatsapp { background: #22c55e; }
.contacto-circle.instagram {
  background: radial-gradient(circle at 30% 30%, #fbc02d, #e91e63, #7b1fa2);
}
.contacto-circle.tiktok {
  background: #000;
  border: 1px solid #fff;
}

.contacto-circle:hover {
  transform: translateY(-2px) scale(1.08);
}

/* FORMULARIO */
.contacto-form {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

.contacto-form h4 {
  font-weight: 700;
  margin-bottom: 15px;
  color: #cfe5ff;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.8);
}

.contacto-form button {
  width: 100%;
  padding: 10px;
  background: #0d6efd;
  border-radius: 999px;
  color: white;
  font-weight: 700;
  border: none;
  transition: 0.25s;
}

.contacto-form button:hover {
  background: #1a4bff;
  transform: translateY(-2px);
}
/* Responsive */
@media (max-width: 768px) {
  .section-mapa .row,
  .section-contacto .row {
    flex-direction: column;
  }

  .mapa-info,
  .contacto-info {
    margin-top: 20px;
  }
}
