:root {
    --primary-color: #0f172a;
    --secondary-color: #2563eb;
    --text-color: #334155;
    --bg-light: #f8fafc;
    --whatsapp-color: #25d366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header & Navbar */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
	float: left;
}

.logo span {
    color: var(--secondary-color);
}

.logo {
  height: 55px; /* Ajusta la altura deseada */
  width: auto;  /* Mantiene la proporción original */
  display: flex;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%,#94a3b8 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

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

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background-color: #1d4ed8;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Services Section */
.services {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services h2, .clients h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.card {
  display: grid;
  place-items: center; 
 
}

/* Clientes Section */
.clients {
    background-color: #f1f5f9;
    padding: 5rem 2rem;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    max-width: 1000px;
    margin: 0 auto 3rem auto;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.client-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

.client-logo-placeholder {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.client-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.client-card p {
    font-size: 0.875rem;
    color: #64748b;
}

.aliados-section {
  padding: 40px 20px;
  text-align: center;
}

.aliados-intro {
  font-size: 1.1rem;
  color: #333333;
  margin-bottom: 25px;
  font-weight: 500;
}

.marcas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 150px;
}

.marca-item img {
  max-height: 60px; 
  width: auto;
  filter: grayscale(100%); 
  opacity: 0.8;
  transition: all 0.3s ease;
}

.marca-item img:hover {
  filter: grayscale(0%); 
  opacity: 1;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    color: #64748b;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.25rem;
    color: var(--secondary-color);
    width: 25px;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--secondary-color);
}

/* Widget de WhatsApp (Flotante) */
.whatsapp-bot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-btn {
    background-color: var(--whatsapp-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.chat-window {
    width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.chat-header {
    background-color: #075e54;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
}

.bot-info h4 {
    font-size: 0.9rem;
}

.bot-info span {
    font-size: 0.75rem;
    color: #cfd8dc;
}

.chat-body {
    padding: 15px;
    background-color: #e5ddd5;
    max-height: 250px;
    overflow-y: auto;
}

.message {
    background: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    max-width: 85%;
    margin-bottom: 10px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.chat-footer {
    padding: 10px;
    background: #f0f0f0;
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
}

.send-btn {
    background: var(--whatsapp-color);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

* {
  box-sizing: border-box;
}

.columna {
  float: left;
  width: 10%;
  padding-right: 5px;
}

.fila::after {
  content: "";
  clear: both;
  display: table;
}

/* Hace que el desplazamiento al hacer clic en el menú sea suave y fluido */
html {
    scroll-behavior: smooth;
}

/* Deja un espacio automático arriba al presionar el botón Inicio (o cualquier otro del menú) para que el header no tape el texto */
section {
    scroll-margin-top: 80px; 
}