@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0081c6;
  --primary-light: #00a2f9;
  --primary-dark: #006093;
  --bg-color: #ffffff;
  --text-dark: #111111;
  --text-light: #2a2a2a;
  --section-bg: #eef2f2;
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  background-color: var(--bg-color);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: transparent;
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo img {
  height: 40px;
  transition: var(--transition);
}

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

nav ul {
  display: flex;
  gap: 2.5rem;
}

nav a {
  font-weight: 600;
  font-size: 2.25rem;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--primary-dark);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 139, 139, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-dark);
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
  z-index: -1;
  border-radius: 50% 50% 0 0;
  /* Curva simulando pintura/liquido */
}

.btn:hover {
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 139, 139, 0.35);
  color: white;
}

.btn:hover::before {
  bottom: 0;
  border-radius: 0;
}

/* Hero Section */
.hero {
  padding: 8rem 5% 7rem;
  background-color: transparent;
  background-image: radial-gradient(circle at top right, rgba(0, 129, 198, 0.08), transparent 40%);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 450px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(0, 139, 139, 0.15));
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-content {
  flex: 1.2;
  text-align: left;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero p.slogan {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 2.5rem;
}

.hero p.mission {
  max-width: 100%;
  margin: 0 0 3rem;
  font-size: 1.2rem;
  color: var(--text-light);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

/* Sections */
section {
  padding: 6rem 5%;
}

.section-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 4rem;
  text-align: center;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
}

/* Cards */

.card {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 139, 139, 0.1);
  border-color: rgba(0, 139, 139, 0.3);
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.card p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Services */
.services {
  background-color: transparent;
}

/* Values */
.values {
  background-color: rgba(238, 242, 242, 0.6);
}

/* Contact Page */
.contact-section {
  max-width: 700px;
  margin: 0 auto;
}

.contact-channels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: -2rem 0 2.5rem;
}

.contact-channels .channel {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: white;
  border: 1px solid rgba(0, 129, 198, 0.25);
  border-radius: 50px;
  padding: 0.8rem 1.6rem;
  font-weight: 500;
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.contact-channels .channel:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 8px 25px rgba(0, 129, 198, 0.15);
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.05rem;
  transition: var(--transition);
  background-color: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(0, 139, 139, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 180px;
}

/* Footer */
footer {
  background-color: white;
  text-align: center;
  padding: 3rem 5%;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer p {
  color: var(--text-light);
  font-size: 0.95rem;
}

footer .footer-contact {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

footer .footer-contact a {
  color: var(--primary-dark);
  font-weight: 500;
  transition: var(--transition);
}

footer .footer-contact a:hover {
  color: var(--primary);
}

footer .footer-contact span {
  margin: 0 0.5rem;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 5% 4rem;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p.slogan {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }

  nav ul {
    display: none;
  }
}

/* Chatbot Styles */
.chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: var(--transition);
  font-size: 1.8rem;
}

.chatbot-toggler:hover {
  transform: scale(1.05);
  background-color: #1ebe5d;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.chatbot-window {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 360px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition);
}

.chatbot-window.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chatbot-header {
  background-color: var(--primary);
  color: white;
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.chatbot-header .close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-header .close-btn:hover {
  transform: scale(1.2);
}

.chatbot-body {
  padding: 1.2rem;
  height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #f8fafc;
}

.chat-msg {
  max-width: 85%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.chat-msg.bot {
  background-color: white;
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-msg.user {
  background-color: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 139, 139, 0.2);
}

.chatbot-footer {
  display: flex;
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: white;
  gap: 0.5rem;
}

.chatbot-footer input {
  flex: 1;
  border: 1px solid #e2e8f0;
  padding: 0.8rem 1rem;
  border-radius: 20px;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.chatbot-footer input:focus {
  border-color: var(--primary);
}

.chatbot-footer button {
  background: var(--primary);
  border: none;
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-footer button:hover {
  background: var(--primary-dark);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.7rem 1rem;
}

.typing-indicator span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite ease-in-out;
  opacity: 0.7;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-8px); }
}