.card-farmacity {
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(21,101,192,0.13);
    background: #fff;
    border: 3px solid #1565c0;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s, border-color 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: fadeInUp 1s cubic-bezier(.4,2,.6,1);
}
.card-farmacity:hover {
    transform: translateY(-12px) scale(1.05) rotate(-1deg);
    box-shadow: 0 12px 36px 0 #e5393555, 0 0 0 6px #1565c055;
    border-color: #e53935;
    filter: brightness(1.08) saturate(1.2);
}
.card-farmacity .fa-3x {
    filter: drop-shadow(0 2px 8px #1565c055);
    margin-bottom: 1rem;
    transition: color 0.3s, filter 0.3s;
}
.card-farmacity:hover .fa-3x {
    color: #e53935 !important;
    filter: drop-shadow(0 4px 16px #ffe60099);
}
.card-farmacity .card-title {
    color: #e53935;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px #ffe60033;
}
.card-farmacity .card-text {
    color: #1565c0;
    font-size: 1.05rem;
    text-shadow: 0 1px 4px #fff8;
}
.card-farmacity .icon-bg {
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 5rem;
    color: #ffe60022;
    z-index: 0;
    pointer-events: none;
    animation: spin 6s linear infinite;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1.1); }
}
/* Farmacity - Estilos Modernos Azul y Rojo */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #222;
}

.navbar {
    background-color: #1565c0 !important; /* Azul fuerte */
}
.navbar-brand {
    color: #e53935 !important; /* Rojo para el título */
    font-weight: bold;
    font-size: 1.7rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-brand .icon-farmacity {
    font-size: 2rem;
    color: #e53935;
    margin-right: 0.3rem;
}
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin-right: 1rem;
    transition: color 0.2s;
}
.navbar-nav .nav-link:hover {
    color: #e53935 !important;
}

header {
    background: none;
    color: #fff;
    margin-bottom: 2rem;
    padding: 0;
    text-align: center;
    animation: fadeInDown 1s;
}
.carousel-inner img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 0;
}
.carousel {
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(21,101,192,0.10);
}
section {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(21,101,192,0.08);
    margin-bottom: 2rem;
    background: #fff;
    padding: 2rem 1rem;
    animation: fadeInUp 1.2s;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Eliminado duplicado de fadeInUp para que funcione la animación de tarjetas */
.card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(21,101,192,0.10);
}
.card-title {
    color: #1565c0;
    font-weight: bold;
}
.btn-primary {
    background-color: #e53935;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.2s;
}
.btn-primary:hover {
    background-color: #1565c0;
    color: #fff;
}

footer {
    background-color: #1565c0;
    color: white;
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.footer-section {
    flex: 1 1 200px;
    padding: 1rem;
}
.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #e53935;
}
.footer-section p, .footer-section ul {
    font-size: 0.9rem;
    line-height: 1.5;
}
.footer-section ul {
    list-style-type: none;
    padding: 0;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
}
.footer-section ul li a {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}
.footer-section ul li a:hover {
    color: #e53935;
}
.social-media .social-icons a {
    display: inline-block;
    margin-right: 0.5rem;
}
.social-media .social-icons img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}
.social-media .social-icons a:hover img {
    transform: scale(1.1);
}
.work-with-us p a {
    color: #e53935;
    text-decoration: underline;
}
.work-with-us p a:hover {
    color: #1565c0;
}
.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
    }
    .navbar-nav {
        text-align: center;
    }
    header, section {
        margin-bottom: 1rem;
    }
}