/* ====== CALIDAD Y SEGURIDAD - ESTILOS COMPLETOS ====== */

/* Variables de color consistentes */
:root {
    --primary-teal: #00bec6ff;
    --primary-teal-dark: #009aa0;
    --primary-blue: #004063ff;
    --primary-blue-light: #e8f4f8;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 14px;
    --border-radius-sm: 10px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== HERO SECTION ====== */
.quality-hero {
    background: linear-gradient(135deg, rgba(0, 64, 99, 0.88), rgba(0, 190, 198, 0.85)), 
                url('/static/images/calidad/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quality-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.quality-hero h1 {
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 2.8rem;
    animation: fadeInDown 0.8s ease;
}

.quality-hero p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.7;
    opacity: 0.95;
}

/* ====== ANIMACIONES ====== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ====== SECCIÓN DE COMPROMISO ====== */
.commitment-section {
    padding: 70px 0 80px;
    background: var(--bg-light);
}

.commitment-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    background: white;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.commitment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.commitment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-teal);
}

.commitment-card:hover::before {
    opacity: 1;
}

.commitment-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: var(--transition);
}

.commitment-card:hover img {
    transform: scale(1.03);
}

.commitment-card .card-body {
    padding: 28px 30px 30px;
}

.commitment-card h3 {
    color: var(--primary-teal);
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.25rem;
}

.commitment-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ====== SECCIÓN DE CERTIFICACIONES ====== */
.certifications-section {
    padding: 70px 0 80px;
    background: white;
}

.certifications-section h2 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.certifications-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
    margin: 12px auto 0;
    border-radius: 2px;
}

.certification-item {
    text-align: center;
    padding: 25px 20px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.certification-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-teal);
    background: white;
}

.certification-item img {
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: grayscale(100%);
    transition: var(--transition);
    opacity: 0.7;
}

.certification-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.certification-item h4 {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0;
}

/* ====== SECCIÓN DE PROCESOS ====== */
.process-section {
    padding: 70px 0 80px;
    background: var(--bg-gray);
}

.process-section h2 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.process-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
    margin: 12px auto 0;
    border-radius: 2px;
}

.process-step {
    position: relative;
    padding-left: 85px;
    padding-top: 5px;
    margin-bottom: 35px;
    background: white;
    padding: 25px 30px 25px 85px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-teal);
    transform: translateX(5px);
}

.step-number {
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 190, 198, 0.3);
    transition: var(--transition);
}

.process-step:hover .step-number {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 25px rgba(0, 190, 198, 0.4);
}

.process-step h3 {
    color: var(--primary-teal);
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.15rem;
}

.process-step p {
    color: #6c757d;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ====== SECCIÓN DE TESTIMONIOS ====== */
.testimonials-section {
    padding: 70px 0 80px;
    background: white;
}

.testimonials-section h2 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.testimonials-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
    margin: 12px auto 0;
    border-radius: 2px;
}

.testimonial-card {
    border-left: 4px solid var(--primary-teal);
    padding: 28px 30px;
    background: var(--bg-light);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    color: rgba(0, 190, 198, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
    border-left-color: var(--primary-blue);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 18px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #343a40;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-teal);
    font-style: normal;
    font-size: 0.92rem;
}

/* ====== RESPONSIVE ====== */

/* Tablets grandes */
@media (max-width: 992px) {
    .quality-hero {
        padding: 80px 0 60px;
    }
    
    .quality-hero h1 {
        font-size: 2.3rem;
    }
    
    .quality-hero p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .commitment-card img {
        height: 170px;
    }
    
    .commitment-card .card-body {
        padding: 22px 25px 25px;
    }
    
    .certification-item img {
        height: 65px;
    }
    
    .process-step {
        padding: 20px 20px 20px 75px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
        left: -2px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .quality-hero {
        padding: 60px 0 50px;
    }
    
    .quality-hero h1 {
        font-size: 1.8rem;
    }
    
    .quality-hero p {
        font-size: 0.95rem;
    }
    
    .commitment-section {
        padding: 50px 0 60px;
    }
    
    .commitment-card img {
        height: 180px;
    }
    
    .commitment-card .card-body {
        padding: 20px 22px 25px;
    }
    
    .commitment-card h3 {
        font-size: 1.1rem;
    }
    
    .commitment-card p {
        font-size: 0.88rem;
    }
    
    .certifications-section {
        padding: 50px 0 60px;
    }
    
    .certifications-section h2,
    .process-section h2,
    .testimonials-section h2 {
        font-size: 1.7rem;
    }
    
    .certification-item {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .certification-item img {
        height: 60px;
    }
    
    .certification-item h4 {
        font-size: 0.9rem;
    }
    
    .process-section {
        padding: 50px 0 60px;
    }
    
    .process-step {
        padding: 18px 18px 18px 70px;
        margin-bottom: 25px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 18px;
        left: -2px;
    }
    
    .process-step h3 {
        font-size: 1rem;
    }
    
    .process-step p {
        font-size: 0.85rem;
    }
    
    .testimonials-section {
        padding: 50px 0 60px;
    }
    
    .testimonial-card {
        padding: 22px 25px;
        margin-bottom: 20px;
    }
    
    .testimonial-card p {
        font-size: 0.9rem;
    }
    
    .testimonial-author {
        font-size: 0.85rem;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .quality-hero {
        padding: 50px 0 40px;
    }
    
    .quality-hero h1 {
        font-size: 1.5rem;
    }
    
    .quality-hero p {
        font-size: 0.85rem;
        padding: 0 10px;
    }
    
    .commitment-section {
        padding: 40px 0 50px;
    }
    
    .commitment-card {
        border-radius: var(--border-radius-sm);
        margin-bottom: 20px;
    }
    
    .commitment-card img {
        height: 160px;
    }
    
    .commitment-card .card-body {
        padding: 18px 18px 22px;
    }
    
    .commitment-card h3 {
        font-size: 1rem;
    }
    
    .commitment-card p {
        font-size: 0.82rem;
    }
    
    .certifications-section {
        padding: 40px 0 50px;
    }
    
    .certifications-section h2,
    .process-section h2,
    .testimonials-section h2 {
        font-size: 1.4rem;
    }
    
    .certifications-section h2::after,
    .process-section h2::after,
    .testimonials-section h2::after {
        width: 50px;
        height: 3px;
    }
    
    .certification-item {
        padding: 15px 10px;
        margin-bottom: 12px;
    }
    
    .certification-item img {
        height: 50px;
        margin-bottom: 10px;
    }
    
    .certification-item h4 {
        font-size: 0.8rem;
    }
    
    .process-section {
        padding: 40px 0 50px;
    }
    
    .process-step {
        padding: 15px 15px 15px 60px;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
        left: -2px;
    }
    
    .process-step h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .process-step p {
        font-size: 0.8rem;
    }
    
    .testimonials-section {
        padding: 40px 0 50px;
    }
    
    .testimonial-card {
        padding: 18px 20px;
        margin-bottom: 15px;
        border-left-width: 3px;
    }
    
    .testimonial-card::before {
        font-size: 3rem;
        top: 5px;
        right: 15px;
    }
    
    .testimonial-card p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .testimonial-author {
        font-size: 0.8rem;
    }
}

/* Móviles muy pequeños */
@media (max-width: 400px) {
    .quality-hero h1 {
        font-size: 1.3rem;
    }
    
    .quality-hero p {
        font-size: 0.8rem;
    }
    
    .commitment-card img {
        height: 140px;
    }
    
    .certification-item img {
        height: 40px;
    }
    
    .process-step {
        padding: 12px 12px 12px 50px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .process-step h3 {
        font-size: 0.8rem;
    }
    
    .process-step p {
        font-size: 0.75rem;
    }
}