/* ======== GENERALES ======== */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f5f5;
  color: #222;
  line-height: 1.6;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  color: #111;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ======== HERO ======== */
.hero {
  background: url('https://images.unsplash.com/photo-1593642532400-2682810df593') no-repeat center center/cover;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.6);
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.overlay h1 {
  font-size: 3rem;
}

.overlay p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn-cta {
  background-color: #1e3d58;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-cta:hover {
  background-color: #142b3d;
}

/* ======== NAVBAR ======== */
.navbar {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #1e3d58;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #222;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #1e3d58;
}

/* ======== SECCIONES ======== */
section {
  padding: 4rem 2rem;
  text-align: center;
}

.areas .cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background-color: #f5f5f5;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  width: 250px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  user-select: none;
  display: flex;               /* AÑADIDO */
  align-items: center;         /* AÑADIDO */
  justify-content: center;     /* AÑADIDO */
  min-height: 120px;           /* AÑADIDO para asegurar altura uniforme */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  resize: vertical;
}

button {
  background: #1e3d58;
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #142b3d;
}

footer {
  background: #1e3d58;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* Burbuja flotante */
#chat-burbuja {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  color: white;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  user-select: none;
}

/* Ventana de chat */
#ventana-chat {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  height: 400px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  overflow: hidden;
  z-index: 1000;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* Mostrar ventana */
#ventana-chat.mostrar {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Header del chat */
.chat-header {
  background: #f0f0f0;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  font-size: 16px;
}

.chat-header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #888;
}

/* Contenido del chat */
.chat-content {
  display: flex;
  flex-direction: column;
  padding: 10px;
  height: 100%;
  box-sizing: border-box;
}

#OVOCBot {
  flex-grow: 1;
  overflow-y: auto;
  border: 1px solid #eee;
  padding: 8px;
  font-size: 14px;
  border-radius: 4px;
  margin-bottom: 8px;
}

#user-input {
  padding: 8px;
  font-size: 14px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.chat-content button {
  background: #25D366;
  color: white;
  padding: 10px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
}


.puntos::after {
  content: '';
  animation: puntosAnim 1s infinite;
}

@keyframes puntosAnim {
  0%   { content: '.'; }
  33%  { content: '..'; }
  66%  { content: '...'; }
  100% { content: '.'; }
}

.info-area {
  position: relative;
  background-color: #f9f9f9;
  border: 2px solid #ccc;
  padding: 20px;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

.info-area.oculto {
  display: none;
}

.info-area .cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.info-area .cerrar:hover {
  color: #d00;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


.clientes {
  padding: 60px 20px;
  background: #fafafa;
  text-align: center;
}

.clientes h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 30px;
}

.slider {
  overflow: hidden;
  position: relative;
  max-width: 100%;
  margin: auto;
}

.slide-track {
  display: flex;
  animation: scroll 20s linear infinite;
  width: calc(250px * 8); /* 8 es la cantidad de slides (duplicado) */
}

.slide {
  width: 250px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 20px;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.slide img:hover {
  filter: grayscale(0%);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}



/* ======== RESPONSIVE ======== */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #1e3d58;
    cursor: pointer;
    margin-top: 0.5rem;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 1rem;
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    border-top: 1px solid #ddd;
  }
}
