/* ===========================
   AMIB GROUP ERP - LANDING
   =========================== */

:root {
    --primary-color: #e53935;   /* rojo del logo */
    --primary-dark: #b71c1c;
    --secondary-color: #1f2933; /* azul gris oscuro texto AMIB */
    --accent-color: #00b894;

    --bg-color: #f5f7fb;
    --white: #ffffff;
    --text-color: #222222;
    --text-light: #6b7280;
    --border-color: #d1d5db;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

/* Layout general */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 20;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.08em;
}

.logo img {
    height: 46px;
    margin-right: 10px;
}

.logo span.sub {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-light);
}

/* Menú */
nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color .2s, transform .2s;
}

nav a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    background: radial-gradient(circle at top left, #ffe5e5, #f5f7fb);
    padding: 60px 0 40px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 2.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p.lead {
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: var(--text-light);
}

.badge-tagline {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(229, 57, 53, 0.08);
    color: var(--primary-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 8px;
}

.hero-bullets {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.hero-bullets li {
    margin-left: 18px;
    margin-bottom: 4px;
}

.hero-cta {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, background-color .15s;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(229, 57, 53, 0.45);
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--white);
    transform: translateY(-1px);
}

/* Tarjeta resumen derecha (hero) */
.hero-card {
    background: var(--white);
    border-radius: 18px;
    padding: 20px 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.hero-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.hero-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.hero-card ul {
    margin-left: 18px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Secciones genéricas */
.section {
    padding: 50px 0;
}

.section.gray {
    background-color: #eef1f7;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    text-align: center;
    color: var(--secondary-color);
}

.section p.section-sub {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Features / módulos */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.feature-item {
    background: var(--white);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.feature-item h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--secondary-color);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Formulario de contacto */
.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 32px;
    margin-top: 16px;
}

.contact-box {
    background-color: var(--white);
    border-radius: 14px;
    padding: 22px 22px 24px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.contact-box h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    font-size: 0.92rem;
    outline: none;
    background-color: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.25);
}

/* Info de contacto */
.contact-info {
    font-size: 0.95rem;
    color: var(--text-light);
}

.contact-info p {
    margin-bottom: 6px;
}

.contact-info strong {
    color: var(--secondary-color);
}

/* Mensajes */
.alert {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.alert-success {
    background-color: #ecfdf5;
    border: 1px solid #34d399;
    color: #047857;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #f97373;
    color: #b91c1c;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px 0 24px;
    background: #0b1220;
    color: #e5e7eb;
    font-size: 0.85rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

footer a {
    color: #9ca3af;
    text-decoration: none;
}

footer a:hover {
    color: #e5e7eb;
}

/* Botón flotante de WhatsApp */
.whatsapp-flotante {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 50;
}

.whatsapp-flotante:hover {
    background-color: #1ebe5d;
}

/* ===========================
   Panel / Login sencillo
   =========================== */

.admin-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #ffe5e5, #111827);
    padding: 20px;
}

.admin-card {
    background: var(--white);
    border-radius: 16px;
    padding: 22px 24px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.35);
}

.admin-card h1 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: var(--secondary-color);
}

.admin-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 14px;
}

.admin-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 6px 10px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-size: 0.84rem;
    color: var(--text-light);
}

.admin-nav a.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Tabla registros */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

th, td {
    padding: 8px 6px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

th {
    font-weight: 600;
    color: var(--secondary-color);
    background-color: #f9fafb;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }

    nav ul {
        display: none; /* menú simple para esta versión */
    }
}
