/* ============================================================
   ESTILOS PREMIUM SHOWROOM Y PORTAFOLIO DIGITAL
   ============================================================ */

:root {
    --bg-gradient: linear-gradient(135deg, #070b19 0%, #0166af 100%); /* Fondo Midnight a Azul América Hosting #0166af */
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --primary: #00C01A; /* Verde solicitado #00C01A */
    --primary-hover: #009d14;
    --primary-light: rgba(0, 192, 26, 0.15);
    --secondary-blue: #0166af; /* El Azul oficial de tu marca #0166af */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --radius-card: 20px;
    --radius-pill: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Header / Hero */
.hero-section {
    padding: 6rem 2rem 4rem 2rem;
    text-align: center;
    background: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    line-height: 1.25; /* Previene el corte vertical de letras altas */
    padding: 0.1em 0; /* Previene que el degradado webkit recorte el borde */
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de Sistemas */
.systems-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Tarjeta Premium */
.system-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.system-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.1);
    background: var(--bg-card-hover);
}

.system-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #0b0f19;
}

.system-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.system-card:hover .system-img {
    transform: scale(1.05);
}

.system-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.system-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-badge {
    background: rgba(1, 102, 175, 0.15);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(1, 102, 175, 0.2);
}

.system-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.system-subtitle {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.system-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex: 1;
}

.system-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.btn-more-info {
    background: var(--primary);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.btn-more-info:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 20px rgba(0, 192, 26, 0.4);
}

/* Detalle / Ficha */
.detail-container {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    margin-bottom: 2.5rem;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.btn-demo {
    background: linear-gradient(90deg, var(--primary) 0%, #009d14 100%) !important; /* Degradado verde */
    color: #ffffff !important;
    font-size: 0.925rem !important; /* Ligeramente más pequeño para garantizar una sola línea */
    font-weight: 700 !important;
    padding: 0.75rem 1rem !important; /* Más angosto lateralmente */
    border-radius: var(--radius-pill) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: var(--transition) !important;
    box-shadow: 0 10px 25px rgba(0, 192, 26, 0.3) !important; /* Sombra verde */
    white-space: nowrap !important; /* Forzar de forma absoluta que NO salte de línea */
}

.btn-demo:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px rgba(0, 192, 26, 0.5) !important; /* Sombra verde */
    color: #ffffff !important;
}

/* Footer general */
.footer-showroom {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 5rem;
}

/* Formularios Admin */
.admin-card {
    background: #111827;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    max-width: 700px;
    margin: 4rem auto;
}

.form-control-showroom {
    background: #1f2937 !important;
    border: 1px solid var(--border) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
}

.form-control-showroom:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.25) !important;
}

/* Estilos de Tabla Admin */
.admin-table {
    width: 100%;
    margin-top: 2rem;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.admin-table th {
    color: #ffffff;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .systems-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .systems-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }

    .detail-container {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }
}

/* Botón de WhatsApp Premium */
.btn-whatsapp {
    background: #25d366 !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: var(--radius-pill) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: var(--transition) !important;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3) !important;
    white-space: nowrap !important;
    border: none !important;
}

.btn-whatsapp:hover {
    background: #128c7e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5) !important;
    color: #ffffff !important;
}

/* Ajuste de Contraste para Botones de Acción en Admin Table */
.admin-table .btn-outline-primary {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.admin-table .btn-outline-primary:hover {
    color: #ffffff !important;
    border-color: var(--secondary-blue) !important;
    background: var(--secondary-blue) !important;
    box-shadow: 0 0 12px rgba(1, 102, 175, 0.4) !important;
}

.admin-table .btn-outline-danger {
    color: #ff4d4d !important;
    border-color: rgba(255, 77, 77, 0.3) !important;
    background: rgba(255, 77, 77, 0.05) !important;
}

.admin-table .btn-outline-danger:hover {
    color: #ffffff !important;
    border-color: #ff4d4d !important;
    background: #ff4d4d !important;
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.4) !important;
}

/* Ajuste de legibilidad para el subtítulo en la tabla admin */
.admin-table .text-muted {
    color: #94a3b8 !important; /* Gris claro de alta visibilidad */
    opacity: 0.85;
}

/* Estilos de los Botones de Filtro en Portada */
.filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.5rem !important;
    transition: var(--transition) !important;
}

.filter-btn:hover {
    background: var(--primary) !important; /* Cambia a verde en hover */
    border-color: var(--primary) !important;
    color: #ffffff !important; /* Mantiene texto blanco */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 192, 26, 0.3) !important;
}

.filter-btn.active {
    background: var(--primary) !important; /* Verde cuando está activo */
    border-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(0, 192, 26, 0.4) !important;
}
