/* --- Estilos Globales --- */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    scroll-behavior: smooth;
    font-size: 1.4rem;
    line-height: 1.6;
}

p, .list-group-item p, .list-group-item {
    text-align: justify !important;
    text-justify: inter-word;
}

/* --- Navegación --- */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.3rem 0.5rem;
    background-color: #ffffff !important;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
}

.nav-link {
    font-size: 1.3rem;
    transition: color 0.3s ease;
    color: #555 !important;
    margin-right: 15px;
}

.nav-link:hover {
    color: #000000 !important;
}

/* --- Header / Hero Section --- */
header {
    background: linear-gradient(135deg, #000000 0%, #212529 100%);
    padding: 110px 0 !important;
    border-bottom: 4px solid #6c757d;
}

header h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

header .lead {
    font-size: 1.8rem;
    color: #adb5bd;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center !important;
}

header p {
    max-width: 950px;
    margin: 30px auto 0;
    line-height: 1.8;
    color: #e9ecef;
    font-size: 1.4rem;
    text-align: justify !important;
}

header a.btn-cta {
    font-size: 1.3rem;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    color: #fff !important;
    text-decoration: none;
    display: inline-block;
}

header a.btn-cta:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

/* --- Secciones y Tarjetas --- */
h2 {
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 20px;
    margin-top: 40px;
    font-weight: 700;
    color: #212529;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: #adb5bd;
}

.list-group-item {
    border: 1px solid #e9ecef;
    margin-bottom: 25px;
    border-radius: 12px !important;
    padding: 35px;
    background-color: #ffffff;
}

.list-group-item h5 {
    font-size: 1.75rem;
    color: #495057;
    font-weight: 700;
    text-align: left;
}

.list-group-item p, .list-group-item small {
    font-size: 1.3rem;
}

/* --- Nosotros: Misión y Visión --- */
.mv-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 35px;
    background-color: #ffffff;
    height: 100%;
    border-top: 4px solid #212529;
}

.mv-card i {
    font-size: 2.2rem;
    color: #212529;
    margin-bottom: 15px;
}

.mv-card h5 {
    font-weight: 700;
    font-size: 1.6rem;
}

/* --- Tabla de precios --- */
.table-precios {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.table-precios thead {
    background-color: #212529;
    color: #ffffff;
}

.table-precios thead th {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 18px;
    border: none;
}

.table-precios tbody td {
    font-size: 1.3rem;
    padding: 18px;
    vertical-align: middle;
}

.table-precios .precio-destacado {
    font-size: 1.9rem;
    font-weight: 800;
    color: #212529;
}

.table-precios .bi-check-circle-fill {
    color: #198754;
    font-size: 1.2rem;
}

.table-precios .bi-x-circle {
    color: #ced4da;
    font-size: 1.2rem;
}

.nota-precios {
    font-size: 1.15rem;
    color: #6c757d;
}

/* --- Formulario de contacto --- */
.contact-card {
    max-width: 550px;
    margin: 0 auto;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.2rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1.2rem;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #212529;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-submit:hover {
    background-color: #000000;
}

.hidden {
    display: none;
}

.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 48px;
    color: #2ea44f;
    margin-bottom: 15px;
}

/* --- Botón flotante de WhatsApp --- */
.wsp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: transform 0.2s ease;
}

.wsp-float:hover {
    transform: scale(1.08);
    color: #ffffff;
}

/* --- Información de Contacto --- */
#info_contacto .list-group-item {
    font-size: 1.5rem;
    border-left: 6px solid #ced4da;
    text-align: left !important;
}

#info_contacto i {
    font-size: 1.6rem;
}

/* --- Footer --- */
footer {
    padding: 60px 0 !important;
}

footer .social-media a i {
    font-size: 2.5rem;
}

a {
    color: #333;
}

/* --- Ajustes Responsivos --- */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.8rem !important;
        line-height: 1.1;
    }

    header p {
        font-size: 1.15rem !important;
        text-align: justify !important;
        padding: 0 10px;
    }

    .list-group-item {
        padding: 20px !important;
    }

    #info_contacto .list-group-item {
        font-size: 1.2rem !important;
    }

    h2 {
        font-size: 1.9rem !important;
    }

    h5 {
        font-size: 1.35rem !important;
    }

    .wsp-float {
        width: 54px;
        height: 54px;
        font-size: 1.8rem;
        bottom: 18px;
        right: 18px;
    }

    /* Tabla de precios en formato tarjeta para mobile */
    .table-precios thead {
        display: none !important;
    }

    .table-precios,
    .table-precios tbody,
    .table-precios tr,
    .table-precios td {
        display: block !important;
        width: 100% !important;
    }

    .table-precios tr {
        margin-bottom: 20px;
        border-bottom: 3px solid #212529;
    }

    .table-precios tr:last-child {
        margin-bottom: 0;
    }

    .table-precios td {
        text-align: left !important;
        padding: 12px 15px !important;
        border: none !important;
        border-bottom: 1px solid #e9ecef !important;
    }

    .table-precios td:last-child {
        border-bottom: none !important;
        text-align: center !important;
    }

    .table-precios td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #6c757d;
        margin-bottom: 6px;
    }

    .table-precios td:last-child::before {
        display: none;
    }
}