:root {
    --primary-color: #0033FF;
    --secondary-color: #002bc7;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-bar .contact-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
}

.top-bar .contact-info span {
    text-align: center;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Navigation */
.main-nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 100px;
}

.nav-links {
    display: flex;
    gap: 5px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a.active {
    background-color: #005B96; /* Color azul corporativo */
    color: white !important; /* Forzamos el color blanco */
}

.nav-links a:hover {
    background-color: #005B96;
    color: white; /* El texto se mantiene visible en blanco */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    background-color: var(--text-dark);
    height: 2px;
    width: 25px;
    margin-bottom: 4px;
    transition: transform 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero {
    background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.stat {
    text-align: center;
}

.number {
    font-size: 2rem;
    font-weight: bold;
}

.text {
    font-size: 1.2rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.separator {
    height: 2px;
    background-color: var(--primary-color);
    width: 100px;
    margin: 0 auto;
}

.about-content {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.tab-panel:not(#nosotros-panel) .about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.2rem;
}

.revision {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

/* Animación de pulso */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-btn {
    animation: pulse 2s infinite;
}

/* Estilos para la sección de contacto */
.contact-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

/* Estilos para las tarjetas de información */
.contact-info {
    display: grid;
    gap: 30px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card p, 
.info-card a {
    color: var(--text-light);
    text-decoration: none;
}

.info-card a:hover {
    color: var(--primary-color);
}

/* Estilos para el formulario */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contact-info {
        gap: 10px;
    }
    
    .contact-info span {
        font-size: 0.75rem;
    }
}

.team-image {
    margin-bottom: 2rem;
    width: 100%;
}

.team-image img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.services {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(0.95);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card h3 {
    padding: 1.5rem;
    margin: 0;
    text-align: center;
    font-size: 1.1rem;
    color: #333;
}

.service-card .service-description {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

.logo-transition {
    position: relative;
    width: 800px;
    height: 400px;
    margin: 0 auto 3rem;
}

.logo-transition img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-1 {
    opacity: 1;
    animation: fadeInOut 4s infinite;
}

.logo-2 {
    opacity: 0;
    animation: fadeOutIn 4s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fadeOutIn {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Ajuste para pantallas más pequeñas */
@media (max-width: 992px) {
    .logo-transition {
        width: 600px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .logo-transition {
        width: 400px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .logo-transition {
        width: 300px;
        height: 150px;
    }
}

.about-tabs {
    margin: 2rem 0;
}

.tab-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
}

.content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content.active {
    display: block;
    opacity: 1;
}

.content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.content p {
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.valores-section {
    margin-top: 4rem;
}

.valores-bars {
    margin-top: 2rem;
}

.valor-bar {
    margin-bottom: 1.5rem;
}

.valor-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #0056b3;
    transition: width 1s ease-in-out;
}

/* Efecto de animación para las barras */
.progress {
    animation: progressAnimation 1.5s ease-out forwards;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
}

.about-valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.about-section, .valores-section {
    padding: 1rem;
}

.tabs-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
    font-weight: 500;
}

.tab-btn.active {
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
}

.about-content {
    padding: 1rem 0;
}

.about-image {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.valores-bars {
    margin-top: 2rem;
}

.valor-bar {
    margin-bottom: 1.5rem;
}

.valor-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    height: 35px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #0056b3;
    transition: width 1s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .about-valores-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para las pestañas */
.tab-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-link {
    padding: 10px 0;
    color: #666;
    text-decoration: none;
    position: relative;
}

.tab-link.active {
    color: #0056b3;
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0056b3;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Estilos para los valores */
.valores-list {
    margin-top: 20px;
}

.valor-item {
    margin-bottom: 15px;
}

.valor-name {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.valor-bar {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.valor-progress {
    height: 100%;
    background-color: #0056b3;
    transition: width 1s ease-in-out;
}

.tabs-navigation {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    color: #666;
    cursor: pointer;
    position: relative;
    font-size: 16px;
}

.tab-btn.active {
    color: #0056b3;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0056b3;
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

.tab-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.tab-content p {
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.splash-screen img {
    max-width: 200px;
    animation: fadeIn 1s ease-in;
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.main-content {
    animation: fadeIn 0.5s ease-in;
}

.politica-calidad {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.titulo-seccion {
    text-align: center;
    color: #333;
    margin: 40px 0;
    font-size: 2.2em;
    font-weight: 600;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.titulo-seccion::before,
.titulo-seccion::after {
    content: "||";
    color: #005B96; /* Color azul corporativo */
    font-weight: bold;
}

.descripcion-principal {
    max-width: 1200px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.descripcion-principal p {
    margin-bottom: 20px;
    color: #555;
}

.contenedor-pilares {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.pilar {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pilar p {
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .pilar {
        flex: 100%;
        margin-bottom: 20px;
    }
}

.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 15px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: #0077be; /* Color azul corporativo, ajustar según tu paleta */
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li i {
    margin-right: 10px;
    color: #0077be; /* Color azul corporativo */
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #0077be; /* Color azul corporativo */
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #0077be; /* Color azul corporativo */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid #333;
}

@media (max-width: 768px) {
    .footer-section {
        flex: 100%;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

.about-section {
    display: flex;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.left-column, .right-column {
    flex: 1;
}

.section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 15px;
    border: none;
    background: none;
    cursor: pointer;
    color: #005587;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    border-bottom-color: #005587;
}

.content-box {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
}

.content-box img {
    width: 100%;
    margin-bottom: 15px;
}

.content-box p {
    line-height: 1.6;
    color: #666;
}

.valores-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.valor-item {
    background-color: #005587;
    color: white;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 3px;
}

.valor-nombre {
    font-weight: 500;
    font-size: 14px;
}

.valor-porcentaje {
    font-size: 14px;
}

.why-us-section {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 25px;
}

.tabs-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.tab {
    padding: 8px 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
}

.tab.active {
    color: #005587;
    border-bottom: 2px solid #005587;
}

.content-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.content-box img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 4px;
}

.mission-text {
    color: #666;
    line-height: 1.6;
    text-align: center;
    font-size: 16px;
    padding: 0 20px;
}

.two-columns-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-section {
    flex: 1;
    min-width: 300px; /* Asegura un ancho mínimo en móviles */
}

.right-column {
    flex: 1;
    min-width: 300px; /* Asegura un ancho mínimo en móviles */
}

/* Ajustes específicos para móviles */
@media (max-width: 768px) {
    .two-columns-section {
        flex-direction: column;
    }

    .about-section, 
    .right-column {
        width: 100%;
    }

    .tabs-container {
        margin: 1rem 0;
    }

    .tabs-navigation {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-btn {
        flex: 1;
        min-width: 100px;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .tab-content img {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }
}

.services .card {
    transition: transform 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.services .card:hover {
    transform: translateY(-10px);
}

.services .card-img-top {
    height: 200px;
    object-fit: cover;
}

.services .card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.services .card-text {
    color: #666;
    line-height: 1.6;
}

.services h2 {
    position: relative;
    padding-bottom: 15px;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #007bff;
}

/* Estilos para las tarjetas de servicios */
.service-image-container {
    height: 250px; /* Altura fija para todas las imágenes */
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la proporción y cubre el contenedor */
}

.service-card {
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.25rem;
    margin: 1rem 0;
    color: #333;
    text-align: center;
}

.service-card p {
    color: #666;
    text-align: center;
    margin-bottom: 1rem;
}

/* Estilos para el footer */
.btn-floating {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-floating:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

footer .list-unstyled li a {
    transition: all 0.3s ease;
}

footer .list-unstyled li a:hover {
    color: #fff !important;
    padding-left: 8px;
}

footer .text-muted {
    color: #6c757d !important;
}

footer hr {
    opacity: 0.1;
}

.modal-content {
    border: none;
    border-radius: 10px;
}

.modal-header {
    border-radius: 10px 10px 0 0;
}

.modal .btn-close-white:focus {
    box-shadow: none;
}

.modal-body .fas {
    font-size: 1.1rem;
}

/* Estilos para el menú móvil */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #f8f9fa;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    }

    .mobile-menu {
        width: 100%;
    }

    .mobile-menu .nav-item {
        display: flex;
        align-items: center;
        padding: 1rem;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        transition: all 0.3s ease;
    }

    .mobile-menu .nav-item:last-child {
        border-bottom: none;
    }

    .mobile-menu .nav-item i {
        width: 30px;
        font-size: 1.2rem;
        color: #0d6efd; /* Color primario de Bootstrap */
        margin-right: 1rem;
    }

    .mobile-menu .nav-item span {
        font-size: 0.9rem;
        font-weight: 500;
    }

    .mobile-menu .nav-item:hover {
        background-color: #f1f4f9;
        padding-left: 1.5rem;
    }

    .mobile-menu .nav-item:active {
        background-color: #e9ecef;
    }
}

/* Estilos para desktop */
@media (min-width: 992px) {
    .mobile-menu {
        display: flex;
        gap: 1rem;
    }

    .mobile-menu .nav-item {
        padding: 0.5rem 1rem;
        color: #0d6efd;
        text-decoration: none;
        border: 1px solid #0d6efd;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .mobile-menu .nav-item:hover {
        background-color: #0d6efd;
        color: white;
    }

    .mobile-menu .nav-item i {
        display: none;
    }
}

/* Ajustes para los botones de navegación */
.navbar-nav .nav-item {
    font-size: 0.75rem;          
    padding: 0.25rem 0.6rem;     
    margin: 0 0.1rem;            /* Espacio entre botones aún más reducido */
    border: 1px solid #0d6efd;
    border-radius: 4px;
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Ajuste del contenedor de navegación */
.navbar-nav {
    gap: 0.2rem;                /* Espacio entre botones más pequeño */
}

/* Estado activo del botón */
.navbar-nav .nav-item.active {
    background-color: #0d6efd;
    color: white;
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.3);
}

/* Hover state */
.navbar-nav .nav-item:hover {
    background-color: #0d6efd;
    color: white;
}

/* Mantener la responsividad para móviles */
@media (max-width: 991px) {
    .navbar-nav {
        justify-content: center;
        padding: 0.5rem;
        gap: 0.15rem;           /* Espacio aún más reducido en móvil */
    }
    
    .navbar-nav .nav-item {
        font-size: 0.7rem;      
        padding: 0.2rem 0.5rem;  
    }
} 

/* Estilos para las tarjetas de servicios */
.card {
    border: none;
    transition: transform 0.3s ease;
    overflow: hidden;
}

/* Contenedor de imagen */
.card img {
    width: 100%;
    height: 250px; /* Altura fija para todas las imágenes */
    object-fit: cover;
    border-radius: 30px; /* Esto hace las esquinas más redondeadas */
    padding: 15px;
    transition: transform 0.3s ease;
}

/* Efectos hover */
.card:hover {
    transform: translateY(-10px);
}

.card:hover img {
    transform: scale(1.05);
}

/* Estilos para el contenido */
.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #004C97;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .card img {
        height: 220px;
    }
}