/* Variables de color */
:root {
    --primary-color: #0056b3;
    --secondary-color: #28a745;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Banner */
.banner {
    height: 600px;
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="%230056b3"/><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.banner-content h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.banner-content .lead {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 12px 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
}

/* Secciones */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #0056b3 0%, #28a745 100%);
    border-radius: 2px;
}

/* Tarjetas de Servicios */
.service-card {
    background: white;
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Tarjetas de Locales */
.local-card {
    background: white;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.local-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.local-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.local-card h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.local-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Tablas */
.card {
    border: none;
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

table {
    margin-bottom: 0;
}

table th {
    color: white;
    font-weight: 600;
    border-top: none !important;
}

table td {
    padding: 12px 8px;
    vertical-align: middle;
}

table tbody tr:hover {
    background: rgba(0, 86, 179, 0.05);
}

/* Contacto */
.contact-box {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-box h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-box p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Formulario de Contacto */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 1px solid #ddd;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    margin-right: 10px;
    transition: all 0.3s ease;
    color: white !important;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .banner {
        height: 400px;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content .lead {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 30px 15px;
    }

    .contact-form {
        padding: 25px;
    }

    table th, table td {
        font-size: 0.85rem;
        padding: 8px 5px;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 300px;
    }

    .banner-content h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title::after {
        width: 60px;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Efecto smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Navbar hover */
.navbar-nav .nav-link {
    transition: all 0.3s ease;
    margin: 0 5px;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Estilos adicionales */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

a.text-white-50:hover {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}
