/* =========================================================
   MECOFARM - HOJA DE ESTILOS GENERAL
   Version ordenada y depurada - actualización v50 DNI opcional numérico
   Usar en header.php: assets/css/style.css?v=50
========================================================= */

/* =========================================================
   1. RESET / BASE
========================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

/* =========================================================
   2. HEADER CORPORATIVO / MENU PRINCIPAL
   - Fondo azul a pantalla completa.
   - Contenido interno alineado al mismo ancho de las tarjetas.
   - Responsive para tablet y smartphone.
========================================================= */

.site-header {
    background: #0b3b8c;
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
}

.header-container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo {
    width: 165px;
    height: auto;
    display: block;
    background: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

/* Menu de escritorio */
.main-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex-wrap: wrap;
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.main-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 0;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: width 0.2s ease;
}

.main-menu a:hover::after,
.main-menu a.active::after {
    width: 100%;
}

/* Boton movil */
.menu-toggle {
    display: none;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

/* Tablet */
@media (max-width: 980px) {
    .header-container {
        width: min(1100px, calc(100% - 24px));
        gap: 16px;
    }

    .site-logo {
        width: 150px;
    }

    .main-menu {
        gap: 15px;
    }

    .main-menu a {
        font-size: 13px;
    }
}

/* Smartphone */
@media (max-width: 760px) {
    .site-header {
        padding: 8px 0;
    }

    .header-container {
        width: calc(100% - 24px);
        flex-wrap: wrap;
    }

    .site-logo {
        width: 138px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0 4px;
    }

    .main-menu.is-open {
        display: flex;
    }

    .main-menu a {
        padding: 13px 4px;
        border-top: 1px solid rgba(255,255,255,0.16);
        font-size: 14px;
    }

    .main-menu a::after {
        display: none;
    }

    .main-menu a.active {
        color: #dbeafe;
    }
}

/* =========================================================
   3. ESTRUCTURA GENERAL / TARJETAS / UTILIDADES
========================================================= */
.main-content {
    padding: 30px 0 40px;
}

.hero,
.card {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.mt-24 {
    margin-top: 24px;
}

.section-block {
    padding: 56px 0;
}

.section-soft {
    background: #f8fafc;
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading.centered {
    text-align: center;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2 {
    margin: 0 0 8px;
    font-size: 34px;
    color: #0f172a;
}

.section-heading p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #0b3b8c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================================================
   4. BOTONES
========================================================= */
.btn {
    display: inline-block;
    background: #0b3b8c;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn.secondary {
    background: #4b5563;
}

.btn-primary {
    min-width: 190px;
}

/* =========================================================
   5. FORMULARIOS GENERALES
========================================================= */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #0f172a;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

textarea {
    resize: vertical;
    min-height: 110px;
}

.readonly-field {
    background-color: #e9eef5;
    cursor: not-allowed;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-full {
    grid-column: 1 / -1;
}

.field-group label {
    margin-bottom: 7px;
}

.required-mark {
    color: #dc2626;
    font-weight: 700;
}

.optional-text {
    color: #64748b;
    font-weight: 400;
    font-size: 13px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.checkbox-wrap {
    display: flex;
    align-items: end;
}

/* =========================================================
   6. ALERTAS / TABLAS
========================================================= */
.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

/* =========================================================
   7. HOME - CARRUSEL INSTITUCIONAL
========================================================= */
.home-carousel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #0b3b8c;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 31, 78, 0.82) 0%, rgba(4, 31, 78, 0.62) 45%, rgba(4, 31, 78, 0.25) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20));
}

.carousel-content {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.carousel-content p {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #dbeafe;
}

.carousel-content h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: 50px;
    line-height: 1.08;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.carousel-content span {
    max-width: 700px;
    display: block;
    color: #f1f5f9;
    font-size: 18px;
    line-height: 1.7;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #0b3b8c;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.carousel-prev {
    left: 24px;
}

.carousel-next {
    right: 24px;
}

.carousel-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.carousel-dots button.active {
    background: #fff;
}

/* Home a pantalla completa dentro del layout actual */
body:has(.home-carousel) .main-content {
    width: 100%;
    max-width: none;
    padding-top: 0;
}

body:has(.home-carousel) .main-content > .home-carousel,
body:has(.home-carousel) .main-content > .section-block {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* =========================================================
   8. PAGE HERO - PAGINAS INTERNAS
========================================================= */
.page-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0b3b8c;
    border-radius: 16px;
}

.page-hero--small {
    min-height: 320px;
}

.page-hero__media {
    position: absolute;
    inset: 0;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(3, 24, 73, 0.85) 0%,
        rgba(3, 24, 73, 0.65) 45%,
        rgba(3, 24, 73, 0.35) 100%
    );
}

.page-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 50px;
    padding-bottom: 50px;
}

.page-hero__text {
    max-width: 640px;
    color: #fff;
}

.page-hero__eyebrow {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #dbeafe;
}

.page-hero__text h2 {
    margin: 0 0 12px;
    font-size: 42px;
    color: #fff;
}

.page-hero__text p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #e2e8f0;
}

/* =========================================================
   9. GRIDS INSTITUCIONALES / CARDS
========================================================= */
.about-grid,
.business-grid,
.cert-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.business-grid,
.cert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.about-card,
.info-card,
.cert-card,
.value-card,
.contact-card {
    height: 100%;
}

.about-card h3,
.info-card h3,
.cert-card h3,
.value-card h3,
.contact-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #0b3b8c;
}

.info-card ul {
    margin: 0;
    padding-left: 20px;
    color: #334155;
    line-height: 1.8;
}

.value-card p,
.cert-card p,
.contact-card p,
.about-card p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0;
}

/* =========================================================
   10. CTA BLOCK
========================================================= */
.cta-block {
    background: linear-gradient(135deg, #0b3b8c 0%, #1d4ed8 100%);
    border-radius: 16px;
}

.cta-block__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta-block__content h2 {
    margin: 0 0 10px;
    color: #fff;
}

.cta-block__content p {
    margin: 0;
    color: #dbeafe;
    line-height: 1.7;
    max-width: 720px;
}

.cta-block__actions {
    flex-shrink: 0;
}

/* =========================================================
   11. FARMACOVIGILANCIA INSTITUCIONAL
========================================================= */
.fv-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fv-intro h2 {
    margin-top: 0;
    color: #0b3b8c;
    text-transform: uppercase;
}

.fv-intro p {
    color: #475569;
    line-height: 1.7;
}

.fv-accordion details {
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
}

.fv-accordion details:last-child {
    border-bottom: none;
}

.fv-accordion summary {
    cursor: pointer;
    font-weight: 800;
    color: #0b3b8c;
}

.fv-accordion p {
    color: #475569;
    line-height: 1.7;
}

.fv-type-section h3 {
    margin-top: 0;
    color: #0b3b8c;
}

.fv-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.fv-type-option {
    cursor: pointer;
}

.fv-type-option input {
    display: none;
}

.fv-type-option span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 58px;
    padding: 14px;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font-weight: 800;
    text-align: center;
    transition: all 0.2s ease;
}

.fv-type-option input:checked + span {
    border-color: #0b3b8c;
    background: #0b3b8c;
    color: #fff;
}

.fv-consent {
    font-size: 14px;
    color: #334155;
}

.fv-consent label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500;
}

.fv-consent input {
    width: auto;
    margin-top: 3px;
}

.fv-consent a {
    color: #0b3b8c;
    font-weight: 800;
}

/* =========================================================
   13. FOOTER
========================================================= */
.site-footer {
    background: #0f172a;
    color: #fff;
    padding: 30px 0 18px;
    margin-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 18px;
}

.footer-brand h3,
.footer-info h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
}

.footer-brand p,
.footer-info p {
    margin: 0 0 8px;
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    color: #cbd5e1;
}

/* =========================================================
   14. RESPONSIVE GENERAL
========================================================= */
@media (max-width: 992px) {
    .business-grid,
    .cert-grid,
    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-block__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .carousel-content h1 {
        font-size: 40px;
    }
}

@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
        padding: 4px 0;
    }

    .main-menu {
        justify-content: center;
        gap: 16px;
    }

    .site-logo {
        width: 150px;
    }

    .fv-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .form-grid,
    .about-grid,
    .business-grid,
    .cert-grid,
    .values-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .form-actions {
        justify-content: stretch;
    }

    .btn-primary {
        width: 100%;
    }

    .home-carousel,
    .carousel-content {
        min-height: 480px;
    }

    .carousel-content h1 {
        font-size: 32px;
    }

    .carousel-content span {
        font-size: 16px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }

    .carousel-prev {
        left: 12px;
    }

    .carousel-next {
        right: 12px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .page-hero,
    .page-hero--small {
        min-height: 260px;
        border-radius: 12px;
    }

    .page-hero__text h2 {
        font-size: 30px;
    }

    .page-hero__text p {
        font-size: 15px;
    }

    .footer-bottom {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .fv-type-grid {
        grid-template-columns: 1fr;
    }

    .main-menu {
        gap: 12px;
    }

    .main-menu a {
        font-size: 13px;
    }
}

/* =========================================================
   CERTIFICACIONES - VERSI�0�7N PRO INSTITUCIONAL
   - Secci��n orientada a confianza regulatoria.
   - Imagen de certificaciones como protagonista visual.
========================================================= */

.certifications-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cert-pro-card {
    padding: 46px 52px;
    text-align: center;
}

.cert-pro-header {
    max-width: 820px;
    margin: 0 auto;
}

.cert-pro-header .section-kicker {
    margin-bottom: 10px;
}

.cert-pro-header h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 38px;
    line-height: 1.15;
}

.cert-pro-header h3 {
    margin: 0 0 18px;
    color: #0b3b8c;
    font-size: 23px;
    line-height: 1.35;
}

.cert-pro-header p {
    margin: 0 auto 14px;
    color: #475569;
    line-height: 1.75;
    font-size: 16px;
}

.cert-pro-image-wrap {
    margin: 30px auto 26px;
    max-width: 650px;
    padding: 8px;
}

.cert-pro-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.14));
}

.cert-pro-footer {
    max-width: 720px;
    margin: 0 auto;
}

.cert-pro-list {
    display: inline-block;
    text-align: left;
    margin: 0 0 24px;
    padding-left: 22px;
    color: #334155;
    line-height: 1.9;
}

.cert-pro-list li {
    margin-bottom: 2px;
}

.cert-pro-footer .btn {
    min-width: 140px;
}

/* Responsive Certificaciones */
@media (max-width: 900px) {
    .cert-pro-card {
        padding: 36px 30px;
    }

    .cert-pro-header h2 {
        font-size: 34px;
    }

    .cert-pro-image-wrap {
        max-width: 560px;
    }
}

@media (max-width: 600px) {
    .cert-pro-card {
        padding: 28px 20px;
        text-align: left;
    }

    .cert-pro-header h2 {
        font-size: 30px;
    }

    .cert-pro-header h3 {
        font-size: 21px;
    }

    .cert-pro-header p {
        font-size: 15px;
    }

    .cert-pro-image-wrap {
        max-width: 100%;
        margin: 24px auto 22px;
        padding: 0;
    }

    .cert-pro-footer {
        text-align: left;
    }

    .cert-pro-list {
        display: block;
    }
}

/* =========================================================
   CONTACTENOS - FORMULARIO COMERCIAL
========================================================= */

.contact-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-main-card {
    padding: 42px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 42px;
    align-items: start;
}

.contact-info h2 {
    margin: 0 0 16px;
    color: #0b3b8c;
    font-size: 38px;
}

.contact-info p {
    color: #475569;
    line-height: 1.7;
}

.contact-data {
    margin-top: 24px;
    padding: 22px;
    background: #f8fafc;
    border-left: 5px solid #0b3b8c;
    border-radius: 14px;
}

.contact-data p {
    margin: 0 0 10px;
}

.contact-data p:last-child {
    margin-bottom: 0;
}

.contact-form-box {
    background: #fff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    border-radius: 10px;
    border-color: #cbd5e1;
    padding: 13px 14px;
}

.contact-form textarea {
    min-height: 130px;
}

.contact-submit {
    width: 140px;
    border-radius: 999px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-main-card {
        padding: 32px;
    }
}

@media (max-width: 600px) {
    .contact-main-card {
        padding: 24px;
    }

    .contact-info h2 {
        font-size: 32px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-submit {
        width: 100%;
    }
}

/* =========================================================
   NOSOTROS - PRESENTACI�0�7N INSTITUCIONAL
========================================================= */

.about-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-hero-card {
    padding: 42px;
    text-align: center;
}

.about-hero-text h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 38px;
}

.about-lead {
    max-width: 760px;
    margin: 0 auto;
    color: #475569;
    font-size: 18px;
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.about-card {
    padding: 32px;
}

.about-card h3,
.about-compliance-card h3 {
    margin: 0 0 16px;
    color: #0b3b8c;
    font-size: 24px;
}

.about-card p,
.about-compliance-card p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 14px;
}

.about-list {
    margin: 0;
    padding-left: 20px;
    color: #334155;
    line-height: 1.9;
}

.about-compliance-card {
    padding: 38px;
}

.about-compliance-content {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.about-image-box {
    border-radius: 18px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.about-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .about-grid,
    .about-compliance-content {
        grid-template-columns: 1fr;
    }

    .about-hero-card,
    .about-card,
    .about-compliance-card {
        padding: 28px;
    }

    .about-image {
        height: 240px;
    }
}

@media (max-width: 600px) {
    .about-hero-card,
    .about-card,
    .about-compliance-card {
        padding: 22px;
    }

    .about-hero-text h2 {
        font-size: 30px;
    }

    .about-lead {
        font-size: 16px;
    }

    .about-image {
        height: 210px;
    }
}


/* =========================================================
   ADJUNTOS - DETALLE DE REPORTE
========================================================= */

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.attachment-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
}

.attachment-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-preview img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.attachment-icon {
    width: 110px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b3b8c;
    color: #fff;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.attachment-info strong {
    display: block;
    color: #0f172a;
    margin-bottom: 8px;
}

.attachment-info p {
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.6;
}

.attachment-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .attachment-card {
        grid-template-columns: 1fr;
    }

    .attachment-preview {
        justify-content: flex-start;
    }
}

/* =========================================================
   AJUSTES GLOBALES RESPONSIVE + IDENTIDAD MECOFARM
   Versión visual global v26
   - Elimina scroll horizontal.
   - Unifica alineación.
   - Integra rojo institucional de manera discreta.
========================================================= */

:root {
    --meco-blue: #0b3b8c;
    --meco-red: #d7262e;
    --meco-dark: #0f172a;
    --meco-muted: #64748b;
    --meco-soft: #f8fafc;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    text-rendering: optimizeLegibility;
}

.container,
.header-container,
.carousel-content {
    max-width: 1100px;
}

/* Línea roja institucional discreta bajo el header */
.site-header {
    border-bottom: 3px solid var(--meco-red);
}

/* Menú: acento rojo sutil en hover y activo */
.main-menu a::after {
    background: var(--meco-red);
}

/* Botones: microinteracción más corporativa */
.btn,
.table-action {
    transition: transform 0.16s ease, opacity 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.table-action:hover {
    box-shadow: 0 6px 16px rgba(11, 59, 140, 0.18);
}

/* Carrusel responsive y sin desborde */
.home-carousel,
.carousel-content {
    min-height: clamp(360px, 54vw, 620px);
}

.carousel-content {
    padding-left: 0;
    padding-right: 0;
}

.carousel-content h1 {
    max-width: 680px;
    font-size: clamp(32px, 4vw, 50px);
}

.carousel-content span {
    max-width: 650px;
    font-size: clamp(15px, 1.45vw, 18px);
}

.carousel-btn {
    z-index: 6;
}

.carousel-prev {
    left: max(12px, calc((100vw - 1100px) / 2 - 58px));
}

.carousel-next {
    right: max(12px, calc((100vw - 1100px) / 2 - 58px));
}

/* Indicador activo del carrusel con rojo institucional */
.carousel-dots button.active {
    background: var(--meco-red);
}

/* Tarjetas / fichas: encabezados centrados */
.info-card h3,
.cert-card h3,
.value-card h3,
.about-card h3,
.contact-card h3 {
    text-align: center;
}

/* =========================================================
   FOOTER CORPORATIVO FINAL
   - 3 secciones centradas: Dirección, Teléfonos, Correos.
   - Teléfonos, WhatsApp y correos clicables.
   - Responsive real.
========================================================= */

.site-footer {
    background: #0f172a;
    color: #ffffff;
    padding: 42px 0 20px;
    margin-top: 34px;
    border-top: 4px solid var(--meco-red);
    text-align: center;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1.25fr;
    gap: 30px;
    align-items: start;
    padding-bottom: 26px;
}

.footer-column {
    min-width: 0;
}

.footer-column h4 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.footer-title-icon,
.footer-contact-icon {
    display: inline-block;
    margin-right: 6px;
}

.footer-column p {
    margin: 0 0 10px;
    color: #cbd5e1;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.footer-column a {
    color: #dbeafe;
    text-decoration: none;
    font-weight: 700;
}

.footer-column a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--meco-red);
    text-underline-offset: 4px;
}

.footer-social {
    padding: 20px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-social p {
    margin: 0 0 12px;
    color: #cbd5e1;
    font-weight: 700;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.footer-social-links a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.footer-social-links a:hover {
    background: var(--meco-red);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
}

/* =========================================================
   RESPONSIVE GLOBAL REFORZADO
========================================================= */

@media (max-width: 980px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-column:nth-child(3) {
        grid-column: 1 / -1;
    }

    .home-carousel,
    .carousel-content {
        min-height: 460px;
    }
}

@media (max-width: 760px) {
    .header-container {
        flex-direction: row;
        align-items: center;
    }

    .main-menu.is-open {
        flex-basis: 100%;
    }

    .carousel-overlay {
        background:
            linear-gradient(90deg, rgba(4, 31, 78, 0.86) 0%, rgba(4, 31, 78, 0.68) 60%, rgba(4, 31, 78, 0.42) 100%),
            linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18));
    }

    .home-carousel,
    .carousel-content {
        min-height: 380px;
    }

    .carousel-content {
        width: calc(100% - 34px);
    }

    .carousel-content p {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .carousel-content h1 {
        max-width: 94%;
        font-size: 30px;
    }

    .carousel-content span {
        max-width: 94%;
        font-size: 15px;
        line-height: 1.55;
    }

    .carousel-btn {
        display: none;
    }

    .section-block {
        padding: 38px 0;
    }

    .card {
        padding: 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-column:nth-child(3) {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 24px);
    }

    .main-content {
        padding: 22px 0 30px;
    }

    .home-carousel,
    .carousel-content {
        min-height: 340px;
    }

    .carousel-content h1 {
        font-size: 26px;
    }

    .carousel-content span {
        font-size: 14px;
    }

    .footer-social-links a {
        width: 36px;
        height: 36px;
    }
}


/* =========================================================
   HOME - CERTIFICACIONES / BUENAS PRÁCTICAS
   Centra las fichas BPA y BPDyT al quedar solo dos tarjetas.
========================================================= */

.cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.cert-card h3 {
    text-align: center;
}

/* =========================================================
   CIERRE VISUAL MECOFARM v28
   Cambios finales:
   - Logo blanco sin recuadro.
   - Menú sin PRODUCTOS y en mayúsculas.
   - Hover rojo translúcido en toda la opción.
   - Línea roja inferior del header más delgada.
   - Carrusel con encuadre superior para evitar cortes de rostros.
   - Tarjetas de Nosotros y Certificaciones con imágenes centradas.
   - Footer agrupado por Dirección, Ventas y Farmacovigilancia.
========================================================= */

/* VARIABLES DE MARCA: cambiar colores corporativos desde aquí */
:root {
    --meco-blue: #0b3b8c;
    --meco-red: #d7262e;
    --meco-dark: #0f172a;
    --meco-footer: #0f172a;
    --meco-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

/* HEADER / MENÚ PRINCIPAL */
.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid var(--meco-red); /* Cambiar grosor línea roja aquí */
    background: var(--meco-blue);
}

.site-logo {
    width: 170px; /* Cambiar tamaño del logo aquí */
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.main-menu {
    gap: 10px;
}

.main-menu a {
    text-transform: uppercase;
    padding: 12px 11px;
    border-radius: 8px;
    font-size: 13px;
    letter-spacing: 0.2px;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.main-menu a:hover,
.main-menu a.active {
    background: rgba(215, 38, 46, 0.18); /* Hover rojo transparente */
    box-shadow: inset 0 -2px 0 rgba(215, 38, 46, 0.85);
}

.main-menu a::after {
    display: none;
}

/* CARRUSEL: para imagen completa cambiar object-fit a contain */
.home-carousel,
.carousel-content {
    min-height: clamp(390px, 48vw, 560px); /* Cambiar altura del carrusel aquí */
}

.carousel-slide img {
    object-fit: cover;
    object-position: center top; /* Evita cortar rostros/cabezas */
}

.carousel-overlay {
    background:
        linear-gradient(90deg, rgba(4, 31, 78, 0.80) 0%, rgba(4, 31, 78, 0.58) 45%, rgba(4, 31, 78, 0.18) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14));
}

.carousel-dots button.active {
    background: var(--meco-red);
}

/* TARJETAS NOSOTROS CON IMAGEN */
.about-card-with-image {
    text-align: center;
    padding: 26px 32px 32px;
}

.about-card-image {
    width: 88%;
    height: 190px; /* Cambiar altura de imagen de fichas Nosotros */
    margin: 0 auto 22px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: var(--meco-shadow);
}

.about-card-with-image h3 {
    text-align: center;
    margin-bottom: 16px;
}

.about-card-with-image p {
    text-align: justify;
}

/* TARJETAS CERTIFICACIONES CON IMAGEN */
.cert-card-with-image {
    text-align: center;
    padding: 28px 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cert-card-with-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.cert-card-image {
    width: auto;
    height: 145px; /* Cambiar tamaño del sello BPA/BPDyT */
    margin: 0 auto 18px;
    object-fit: contain;
}

.cert-card-with-image h3,
.cert-card-with-image p {
    text-align: center;
}

/* FOOTER FINAL AGRUPADO */
.site-footer {
    background: var(--meco-footer);
    border-top: 1px solid var(--meco-red);
    padding: 38px 0 18px;
    margin-top: 0;
}

.footer-main-final {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 34px;
    align-items: start;
    padding-bottom: 24px;
    text-align: center;
}

.footer-column h4 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
}

.footer-column p {
    margin: 0 0 9px;
    color: #dbeafe;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.footer-column strong {
    color: #ffffff;
}

.footer-column a {
    color: #dbeafe;
    text-decoration: none;
    font-weight: 700;
}

.footer-column a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--meco-red);
    text-underline-offset: 4px;
}

.footer-social-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 18px 0 16px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-social-inline span {
    color: #cbd5e1;
    font-weight: 800;
}

.footer-social-inline .footer-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-inline .footer-social-links a {
    width: 34px;
    height: 34px;
}

.footer-bottom {
    text-align: center;
    padding-top: 14px;
}

/* RESPONSIVE FINAL */
@media (max-width: 980px) {
    .site-logo {
        width: 150px;
    }

    .main-menu a {
        font-size: 12px;
        padding: 10px 8px;
    }

    .footer-main-final {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 760px) {
    .header-container {
        flex-direction: row;
        align-items: center;
    }

    .site-logo {
        width: 138px;
    }

    .main-menu {
        gap: 0;
    }

    .main-menu a {
        text-align: center;
        border-radius: 6px;
        padding: 13px 8px;
    }

    .main-menu a:hover,
    .main-menu a.active {
        background: rgba(215, 38, 46, 0.18);
        box-shadow: none;
    }

    .home-carousel,
    .carousel-content {
        min-height: 360px;
    }

    .carousel-slide img {
        object-position: center top;
    }

    .carousel-content {
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .carousel-content h1,
    .carousel-content span {
        max-width: 94%;
    }

    .about-card-image {
        width: 100%;
        height: 180px;
    }

    .about-card-with-image p {
        text-align: center;
    }

    .cert-card-image {
        height: 125px;
    }

    .footer-social-inline {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .home-carousel,
    .carousel-content {
        min-height: 330px;
    }

    .about-card-image {
        height: 160px;
    }

    .cert-card-image {
        height: 112px;
    }
}


/* =========================================================
   HEADER FIJO / FLOTANTE MECOFARM v31
   Objetivo:
   - Mantener el menú siempre visible al desplazarse.
   - Dar efecto flotante similar a sitios corporativos.
   - Reducir el alto visual del encabezado.

   AJUSTES RÁPIDOS:
   - Alto del header: modificar .site-header padding.
   - Tamaño del logo: modificar .site-logo width.
   - Alto de opciones menú: modificar .main-menu a padding.
   - Sombra flotante: modificar box-shadow de .site-header.
   - Separación del contenido: modificar body padding-top.
========================================================= */

/* Altura estimada del header fijo.
   Si el menú queda encima del carrusel o deja mucho espacio, ajustar aquí. */
:root {
    --meco-fixed-header-height: 74px;
}

/* Espacio superior para que el header fixed no tape el contenido */
body {
    padding-top: var(--meco-fixed-header-height);
}

/* Header fijo/flotante */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    padding: 5px 0; /* v31: reduce alto general del menú */
    background: var(--meco-blue);
    border-bottom: 1px solid var(--meco-red); /* Línea roja más fina */
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18); /* Efecto flotante */
}

/* Contenedor interno del header */
.header-container {
    min-height: 64px; /* v31: controla altura visual del bloque azul */
    align-items: center;
}

/* LOGO PRINCIPAL MECOFARM
   120px = compacto
   130px = recomendado
   135px = estándar
   170px = grande */
.site-logo {
    width: 130px; /* v31: tamaño recomendado para header compacto */
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Menú compacto */
.main-menu {
    gap: 10px;
}

/* Opciones del menú:
   padding controla el alto de cada opción. */
.main-menu a {
    text-transform: uppercase;
    padding: 8px 10px; /* v31: opción compacta */
    border-radius: 8px;
    font-size: 12.5px;
    letter-spacing: 0.2px;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

/* Hover rojo transparente */
.main-menu a:hover,
.main-menu a.active {
    background: rgba(215, 38, 46, 0.16);
    box-shadow: inset 0 -1px 0 rgba(215, 38, 46, 0.85);
}

/* Evita doble subrayado antiguo */
.main-menu a::after {
    display: none;
}

/* En home se elimina el padding superior adicional del main,
   porque el espacio ya lo controla body padding-top. */
body:has(.home-carousel) .main-content {
    padding-top: 0;
}

/* Responsive tablet */
@media (max-width: 980px) {
    :root {
        --meco-fixed-header-height: 70px;
    }

    .site-header {
        padding: 5px 0;
    }

    .header-container {
        min-height: 60px;
    }

    .site-logo {
        width: 125px;
    }

    .main-menu a {
        padding: 7px 8px;
        font-size: 12px;
    }
}

/* Responsive móvil */
@media (max-width: 760px) {
    :root {
        --meco-fixed-header-height: 66px;
    }

    .site-header {
        padding: 5px 0;
    }

    .header-container {
        min-height: 56px;
        flex-direction: row;
        align-items: center;
    }

    .site-logo {
        width: 120px;
    }

    .main-menu {
        max-height: calc(100vh - var(--meco-fixed-header-height));
        overflow-y: auto;
    }

    .main-menu a {
        text-align: center;
        border-radius: 6px;
        padding: 11px 8px;
        font-size: 13px;
    }

    .main-menu a:hover,
    .main-menu a.active {
        background: rgba(215, 38, 46, 0.18);
        box-shadow: none;
    }
}

/* FIN HEADER FIJO / FLOTANTE MECOFARM v31 */


/* =========================================================
   CARRUSEL RESPONSIVE CON IMÁGENES MÓVILES v32
   Objetivo:
   - Usar imágenes PC/Laptop y Smartphone desde index.php con <picture>.
   - Evitar cortes fuertes en móvil.
   - Mantener encuadre institucional en escritorio.

   Para cambiar imágenes:
   - PC/Laptop: modules/home/index.php -> Carrusel_pc_01/02/03
   - Móvil: modules/home/index.php -> Carrusel_movil_01/02/03
========================================================= */

.carousel-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.carousel-picture img,
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@media (max-width: 760px) {
    .carousel-picture img,
    .carousel-slide img {
        object-fit: cover;
        object-position: center center;
    }

    .home-carousel,
    .carousel-content {
        min-height: 430px;
    }
}

@media (max-width: 480px) {
    .home-carousel,
    .carousel-content {
        min-height: 390px;
    }
}

/* =========================================================
   FICHAS INSTITUCIONALES - IMÁGENES COMPLETAS v32
   Aplica a:
   - Nosotros
   - Certificaciones

   Objetivo:
   - Evitar cortes en imágenes internas de tarjetas.
   - Mantener hover uniforme al pasar el puntero.
========================================================= */

.about-card-image {
    object-fit: contain;
    object-position: center;
    background: #f8fafc;
}

.cert-card-image {
    width: 160px;
    max-width: 80%;
    height: 160px;
    object-fit: contain;
    object-position: center;
}

.about-card-with-image,
.cert-card-with-image {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.about-card-with-image:hover,
.cert-card-with-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

@media (max-width: 760px) {
    .about-card-image {
        width: 100%;
        height: 190px;
        object-fit: contain;
    }

    .cert-card-image {
        width: 145px;
        max-width: 75%;
        height: 145px;
    }
}

@media (max-width: 480px) {
    .about-card-image {
        height: 170px;
    }

    .cert-card-image {
        width: 125px;
        height: 125px;
    }
}

/* =========================================================
   CIERRE UX/UI MECOFARM v33
   Objetivo:
   - Logo más visible sin aumentar alto del menú.
   - Flechas del carrusel a extremos.
   - Fichas Nosotros horizontales en PC/laptop.
   - Fichas Certificaciones horizontales y alineadas con Nosotros.
   - Corte decorativo solo en imágenes rectangulares.
   - Medallas sin corte visual.
   - Hover uniforme y zoom suave solo en fotos.
========================================================= */

/* HEADER: logo mayor sin crecer franja */
:root {
    --meco-fixed-header-height: 72px;
}

body {
    padding-top: var(--meco-fixed-header-height);
}

.site-header {
    padding: 3px 0;
}

.header-container {
    min-height: 62px;
}

.site-logo {
    width: 145px; /* v33: logo ampliado sin aumentar la franja azul */
}

/* CARRUSEL: flechas a extremos */
.carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.carousel-prev {
    left: 28px;
}

.carousel-next {
    right: 28px;
}

/* ALINEACIÓN GENERAL DE HOME */
.about-grid,
.cert-grid {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.section-block {
    padding: 44px 0;
}

/* TARJETAS HORIZONTALES */
.about-card-horizontal,
.cert-card-horizontal {
    display: grid;
    align-items: center;
    gap: 22px;
    min-height: 230px;
    padding: 26px;
    overflow: hidden;
}

.about-card-horizontal {
    grid-template-columns: 42% 1fr;
}

.cert-card-horizontal {
    grid-template-columns: 34% 1fr;
}

/* BLOQUE VISUAL DE IMAGEN */
.institutional-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

/* Corte decorativo SOLO para fotos rectangulares */
.institutional-media.decorative-cut {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

/* Sin corte para medallas, sellos o logos circulares */
.institutional-media.no-cut {
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

/* Fotos de Nosotros */
.about-card-image {
    width: 100%;
    height: 185px;
    margin: 0;
    object-fit: cover;
    object-position: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.32s ease;
}

/* Medallas: tamaño actual, sin corte visual */
.cert-card-image {
    width: 145px;
    max-width: 100%;
    height: 145px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.22s ease;
}

/* Textos */
.institutional-copy h3 {
    margin: 0 0 12px;
    color: var(--meco-blue);
    font-size: 22px;
    line-height: 1.25;
    text-align: left;
}

.institutional-copy p {
    margin: 0;
    color: #334155;
    line-height: 1.7;
    text-align: left;
}

/* Hover final */
.about-card-with-image,
.cert-card-with-image {
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease;
}

.about-card-with-image:hover,
.cert-card-with-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.13);
}

.about-card-with-image:hover .about-card-image {
    transform: scale(1.045);
}

.cert-card-with-image:hover .cert-card-image {
    transform: scale(1.025);
}

/* TABLET */
@media (max-width: 980px) {
    :root {
        --meco-fixed-header-height: 68px;
    }

    .header-container {
        min-height: 58px;
    }

    .site-logo {
        width: 135px;
    }

    .about-card-horizontal,
    .cert-card-horizontal {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .institutional-copy h3,
    .institutional-copy p {
        text-align: center;
    }

    .about-card-image {
        height: 220px;
    }

    .carousel-prev {
        left: 18px;
    }

    .carousel-next {
        right: 18px;
    }
}

/* SMARTPHONE */
@media (max-width: 760px) {
    :root {
        --meco-fixed-header-height: 64px;
    }

    .site-header {
        padding: 4px 0;
    }

    .header-container {
        min-height: 54px;
    }

    .site-logo {
        width: 128px;
    }

    .carousel-btn {
        display: none;
    }

    .about-grid,
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-card-horizontal,
    .cert-card-horizontal {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 22px;
        min-height: auto;
    }

    .about-card-image {
        height: 190px;
        object-fit: cover;
    }

    .cert-card-image {
        width: 130px;
        height: 130px;
    }

    .institutional-copy h3,
    .institutional-copy p {
        text-align: center;
    }

    .institutional-media.decorative-cut {
        clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    }

    .section-block {
        padding: 36px 0;
    }
}

/* FIN CIERRE UX/UI MECOFARM v33 */

/* =========================================================
   AJUSTE FINAL UX/UI MECOFARM v34
   Objetivo:
   - Ordenar la alineación interna de títulos y párrafos en fichas.
   - Mantener proporción visual uniforme entre secciones.
   - Reducir el espacio antes del footer.
   - No modificar estructura, imágenes, header, carrusel ni footer.
========================================================= */

/* ---------------------------------------------------------
   1. ALINEACIÓN INTERNA DE FICHAS
   Aplica a:
   - ¿Quiénes somos?
   - Nuestro compromiso
   - BPA
   - BPDyT

   Si más adelante cambian los textos:
   - Ajustar min-height de h3 o p.
   - Mantener display:flex para conservar orden.
--------------------------------------------------------- */

.institutional-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Altura uniforme para títulos dentro de fichas */
.institutional-copy h3 {
    min-height: 32px; /* v34: alinea visualmente títulos de fichas */
    display: flex;
    align-items: center;
}

/* Altura uniforme para descripciones dentro de fichas */
.institutional-copy p {
    min-height: 82px; /* v34: alinea visualmente párrafos entre fichas */
    display: flex;
    align-items: flex-start;
}

/* Ajuste específico para certificaciones, porque el texto es más corto */
.cert-copy h3 {
    min-height: 30px;
}

.cert-copy p {
    min-height: 58px;
}

/* ---------------------------------------------------------
   2. ESPACIADO UNIFORME ENTRE SECCIONES HOME
   Se busca que:
   Carrusel -> Nosotros
   Nosotros -> Certificaciones
   Certificaciones -> Footer
   mantengan una proporción visual similar.
--------------------------------------------------------- */

/* Espaciado general de secciones principales */
body:has(.home-carousel) .section-block {
    padding-top: 38px;     /* v34: reduce aire superior */
    padding-bottom: 38px;  /* v34: reduce aire inferior */
}

/* Primera sección después del carrusel: Nosotros */
body:has(.home-carousel) .home-carousel + .section-block {
    padding-top: 36px;     /* v34: carrusel -> nosotros */
}

/* Sección Certificaciones */
body:has(.home-carousel) .section-soft {
    padding-top: 36px;     /* v34: nosotros -> certificaciones */
    padding-bottom: 34px;  /* v34: certificaciones -> footer */
}

/* Reducir margen superior del footer en home */
body:has(.home-carousel) .site-footer {
    margin-top: 0;         /* v34: elimina vacío antes del footer */
}

/* Ajuste de separación interna entre encabezado de sección y fichas */
body:has(.home-carousel) .section-heading {
    margin-bottom: 22px;
}

/* ---------------------------------------------------------
   3. RESPONSIVE
   En móvil se evita forzar alturas, porque las fichas pasan a vertical.
--------------------------------------------------------- */

@media (max-width: 760px) {
    .institutional-copy h3,
    .institutional-copy p,
    .cert-copy h3,
    .cert-copy p {
        min-height: auto;
        display: block;
    }

    body:has(.home-carousel) .section-block,
    body:has(.home-carousel) .section-soft {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    body:has(.home-carousel) .home-carousel + .section-block {
        padding-top: 32px;
    }

    body:has(.home-carousel) .section-heading {
        margin-bottom: 18px;
    }
}

/* FIN AJUSTE FINAL UX/UI MECOFARM v34 */

/* =========================================================
   AJUSTE UX/UI MECOFARM v35
   Objetivo:
   - Corregir alineación interna de títulos y párrafos en fichas.
   - Evitar que textos con diferente cantidad de líneas desordenen la vista.
   - Reducir espacios verticales entre:
     Carrusel -> Nosotros
     Nosotros -> Certificaciones
     Certificaciones -> Footer

   NOTA:
   Este bloque corrige solamente lo observado en la revisión v34.
   No cambia imágenes, header, carrusel, footer ni estructura HTML.
========================================================= */

/* ---------------------------------------------------------
   1. ALINEACIÓN FINA DE CONTENIDO EN FICHAS
   Problema corregido:
   El texto quedaba visualmente desordenado al comparar una ficha con otra.
--------------------------------------------------------- */

/* Se elimina el centrado vertical forzado anterior para que el texto tenga
   un inicio visual más estable dentro de cada ficha. */
.institutional-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Títulos con altura controlada, sin generar saltos visuales excesivos. */
.institutional-copy h3 {
    min-height: 34px; /* v35: alinea la línea base de títulos */
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

/* Párrafos sin altura forzada grande.
   Esto evita espacios artificiales y mantiene lectura natural. */
.institutional-copy p {
    min-height: auto; /* v35: elimina altura fija excesiva heredada */
    display: block;
}

/* Ajuste específico para la sección Nosotros.
   El texto inicia ordenado y se mantiene alineado con la imagen. */
.about-copy {
    align-self: center;
}

/* Ajuste específico para Certificaciones:
   mantiene el bloque textual centrado respecto al sello,
   pero con título y descripción ordenados. */
.cert-copy {
    align-self: center;
}

.cert-copy h3 {
    min-height: 30px;
    align-items: center;
}

.cert-copy p {
    min-height: auto;
}

/* ---------------------------------------------------------
   2. PROPORCIÓN VERTICAL ENTRE SECCIONES HOME
   Problema corregido:
   Había más aire entre Nosotros y Certificaciones que entre Carrusel y Nosotros.
--------------------------------------------------------- */

/* Espaciado general en Home */
body:has(.home-carousel) .section-block {
    padding-top: 34px;
    padding-bottom: 28px;
}

/* Carrusel -> Nosotros */
body:has(.home-carousel) .home-carousel + .section-block {
    padding-top: 34px;
    padding-bottom: 20px;
}

/* Nosotros -> Certificaciones */
body:has(.home-carousel) .section-soft {
    padding-top: 26px;
    padding-bottom: 22px;
}

/* Encabezados de sección más cercanos a sus fichas */
body:has(.home-carousel) .section-heading {
    margin-bottom: 20px;
}

/* Certificaciones -> Footer */
body:has(.home-carousel) .site-footer {
    margin-top: 0;
}

/* Si la última sección antes del footer es Certificaciones,
   se reduce el aire inferior para que el footer se integre mejor. */
body:has(.home-carousel) .section-soft:last-of-type {
    padding-bottom: 18px;
}

/* ---------------------------------------------------------
   3. RESPONSIVE
   En móvil se conserva lectura vertical natural.
--------------------------------------------------------- */

@media (max-width: 760px) {
    .institutional-copy,
    .about-copy,
    .cert-copy {
        align-self: stretch;
        justify-content: flex-start;
    }

    .institutional-copy h3,
    .institutional-copy p,
    .cert-copy h3,
    .cert-copy p {
        min-height: auto;
        display: block;
    }

    body:has(.home-carousel) .section-block {
        padding-top: 30px;
        padding-bottom: 26px;
    }

    body:has(.home-carousel) .home-carousel + .section-block {
        padding-top: 30px;
        padding-bottom: 22px;
    }

    body:has(.home-carousel) .section-soft {
        padding-top: 26px;
        padding-bottom: 24px;
    }

    body:has(.home-carousel) .section-heading {
        margin-bottom: 18px;
    }
}

/* FIN AJUSTE UX/UI MECOFARM v35 */

/* =========================================================
   AJUSTE UX/UI MECOFARM v37
   Objetivo:
   - Corregir la desalineación entre fichas pares.
   - Mantener el título centrado en la parte superior de cada ficha.
   - Alinear imagen/sello y texto en una segunda fila uniforme.
   - Aplicar el mismo comportamiento a:
     1) ¿Quiénes somos?
     2) Nuestro compromiso
     3) BPA
     4) BPDyT

   IMPORTANTE:
   - Este ajuste está organizado como bloque final para sobrescribir
     reglas anteriores de v33, v34, v35 y v36.
   - No modifica HTML, imágenes, header, carrusel ni footer.
   - Para activar en navegador usar: assets/css/style.css?v=37
========================================================= */

/* ---------------------------------------------------------
   1. ESTRUCTURA BASE DE LAS FICHAS EN PC / LAPTOP
   Diseño visual final:
   Fila 1: Título centrado en todo el ancho de la ficha.
   Fila 2: Imagen o sello a la izquierda + párrafo a la derecha.
--------------------------------------------------------- */

.about-card-horizontal,
.cert-card-horizontal {
    display: grid !important;
    align-content: start;
    align-items: center;
    column-gap: 24px;
    row-gap: 14px;
    padding-top: 28px;
    padding-bottom: 28px;
}

/* Nosotros: imagen institucional más amplia */
.about-card-horizontal {
    grid-template-columns: 42% 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "title title"
        "media text";
}

/* Certificaciones: sello a la izquierda y descripción a la derecha */
.cert-card-horizontal {
    grid-template-columns: 34% 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "title title"
        "media text";
}

/* El contenedor del texto no debe crear una tercera columna/fila.
   display: contents permite ubicar h3 y p directamente en el grid padre. */
.about-card-horizontal .institutional-copy,
.cert-card-horizontal .institutional-copy {
    display: contents !important;
}

/* ---------------------------------------------------------
   2. TÍTULOS UNIFORMES
   Corrige el problema señalado:
   El título de una ficha quedaba visualmente más abajo que el otro.
--------------------------------------------------------- */

.about-card-horizontal .institutional-copy h3,
.cert-card-horizontal .institutional-copy h3 {
    grid-area: title;
    width: 100%;
    min-height: 34px;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    justify-self: center;
    color: var(--meco-blue);
    font-size: 22px;
    line-height: 1.25;
    text-align: center;
}

/* ---------------------------------------------------------
   3. IMAGEN / SELLO ALINEADOS EN LA MISMA FILA
   Aplica tanto a fotos rectangulares como a sellos BPA/BPDyT.
--------------------------------------------------------- */

.about-card-horizontal .institutional-media,
.cert-card-horizontal .institutional-media {
    grid-area: media;
    align-self: center;
    justify-self: center;
}

/* Imagen de Nosotros: conserva corte decorativo y tamaño actual */
.about-card-horizontal .about-card-image {
    width: 100%;
    height: 185px;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

/* Sellos BPA/BPDyT: sin corte visual, sin deformación */
.cert-card-horizontal .cert-card-image {
    width: 145px;
    height: 145px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

/* ---------------------------------------------------------
   4. PÁRRAFOS ALINEADOS
   El párrafo empieza en la misma fila donde aparece la imagen/sello.
   No se fuerza altura artificial para evitar espacios vacíos.
--------------------------------------------------------- */

.about-card-horizontal .institutional-copy p,
.cert-card-horizontal .institutional-copy p {
    grid-area: text;
    min-height: auto;
    margin: 0;
    padding: 0;
    display: block;
    align-self: center;
    justify-self: stretch;
    color: #334155;
    line-height: 1.7;
    text-align: left;
}

/* ---------------------------------------------------------
   5. AJUSTES ESPECÍFICOS PARA CERTIFICACIONES
   Mantiene BPA y BPDyT con la misma lógica visual que Nosotros.
--------------------------------------------------------- */

.cert-card-horizontal .institutional-copy h3 {
    margin-bottom: 12px;
}

.cert-card-horizontal .institutional-copy p {
    line-height: 1.65;
}

/* ---------------------------------------------------------
   6. RESPONSIVE TABLET
   En tablet se pasa a diseño vertical ordenado:
   Título -> Imagen/Sello -> Texto.
--------------------------------------------------------- */

@media (max-width: 980px) {
    .about-card-horizontal,
    .cert-card-horizontal {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "title"
            "media"
            "text";
        row-gap: 16px;
    }

    .about-card-horizontal .institutional-copy h3,
    .cert-card-horizontal .institutional-copy h3,
    .about-card-horizontal .institutional-copy p,
    .cert-card-horizontal .institutional-copy p {
        text-align: center;
    }

    .about-card-horizontal .institutional-copy h3,
    .cert-card-horizontal .institutional-copy h3 {
        margin-bottom: 0;
    }
}

/* ---------------------------------------------------------
   7. RESPONSIVE SMARTPHONE
   Conserva lectura vertical clara y evita desbordes.
--------------------------------------------------------- */

@media (max-width: 760px) {
    .about-card-horizontal,
    .cert-card-horizontal {
        display: grid !important;
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "media"
            "text";
        row-gap: 16px;
        padding: 22px;
        min-height: auto;
    }

    .about-card-horizontal .institutional-copy,
    .cert-card-horizontal .institutional-copy {
        display: contents !important;
    }

    .about-card-horizontal .institutional-copy h3,
    .cert-card-horizontal .institutional-copy h3,
    .about-card-horizontal .institutional-copy p,
    .cert-card-horizontal .institutional-copy p {
        min-height: auto;
        text-align: center;
    }

    .about-card-horizontal .about-card-image {
        height: 190px;
    }

    .cert-card-horizontal .cert-card-image {
        width: 130px;
        height: 130px;
    }
}

/* FIN AJUSTE UX/UI MECOFARM v37 */

/* =========================================================
   AJUSTE UX/UI MECOFARM v38
   Objetivo:
   - Reducir el espacio superior e inferior alrededor del título
     dentro de las fichas.
   - Mantener la alineación lograda en v37.
   - Aplicar el mismo criterio a:
     1) ¿Quiénes somos?
     2) Nuestro compromiso
     3) BPA
     4) BPDyT

   IMPORTANTE:
   - Este bloque sobrescribe únicamente la separación vertical
     interna del título en las fichas.
   - No modifica imágenes, textos, header, carrusel ni footer.
   - Para activar en navegador usar: assets/css/style.css?v=38
========================================================= */

/* ---------------------------------------------------------
   1. REDUCCIÓN DEL AIRE INTERNO EN FICHAS
   Antes:
   Título con demasiado espacio superior e inferior.
   Ahora:
   Título más integrado al bloque imagen/sello + texto.
--------------------------------------------------------- */

.about-card-horizontal,
.cert-card-horizontal {
    row-gap: 8px;           /* v38: reduce separación entre título y contenido */
    padding-top: 20px;      /* v38: reduce aire superior de la ficha */
    padding-bottom: 22px;   /* v38: reduce aire inferior de la ficha */
}

/* Títulos de Nosotros y Certificaciones */
.about-card-horizontal .institutional-copy h3,
.cert-card-horizontal .institutional-copy h3 {
    min-height: 26px;       /* v38: reduce altura invisible del título */
    margin: 0 0 6px;        /* v38: reduce espacio inferior del título */
    line-height: 1.2;
    align-items: center;
}

/* ---------------------------------------------------------
   2. AJUSTE VISUAL DEL BLOQUE CONTENIDO
   Mantiene imagen/sello y párrafo correctamente alineados.
--------------------------------------------------------- */

.about-card-horizontal .institutional-media,
.cert-card-horizontal .institutional-media,
.about-card-horizontal .institutional-copy p,
.cert-card-horizontal .institutional-copy p {
    align-self: center;
}

/* ---------------------------------------------------------
   3. RESPONSIVE
   En móvil también se reduce el aire sin afectar la lectura vertical.
--------------------------------------------------------- */

@media (max-width: 980px) {
    .about-card-horizontal,
    .cert-card-horizontal {
        row-gap: 12px;
        padding-top: 20px;
        padding-bottom: 22px;
    }

    .about-card-horizontal .institutional-copy h3,
    .cert-card-horizontal .institutional-copy h3 {
        min-height: auto;
        margin-bottom: 2px;
    }
}

@media (max-width: 760px) {
    .about-card-horizontal,
    .cert-card-horizontal {
        row-gap: 12px;
        padding-top: 20px;
        padding-bottom: 22px;
    }
}

/* FIN AJUSTE UX/UI MECOFARM v38 */


/* =========================================================
   CERTIFICACIONES INSTITUCIONALES MECOFARM v39
   Objetivo:
   - Rediseñar la página Certificaciones con coherencia respecto
     a las fichas BPA/BPDyT de la página principal.
   - Usar fotografías reales como elemento visual principal.
   - Mantener sellos BPA/BPDyT como respaldo secundario.
   - Agregar beneficios de certificación para reforzar confianza.
   - Mantener diseño responsive, corporativo y limpio.

   IMÁGENES REQUERIDAS:
   - assets/img/Certificaciones_bpa.png
   - assets/img/Certificaciones_bpdt.png
   - assets/img/certificaciones-mecofarm-BPA.png
   - assets/img/certificaciones-mecofarm-BPDT.png

   Para activar en navegador usar:
   assets/css/style.css?v=39
========================================================= */

.cert-page-v39 {
    gap: 28px;
}

.cert-page-v39 .cert-intro-card {
    padding: 42px 52px 34px;
    text-align: center;
}

.cert-page-v39 .cert-pro-header {
    max-width: 860px;
}

.cert-page-v39 .cert-pro-header h2 {
    margin-bottom: 12px;
}

.cert-page-v39 .cert-pro-header h3 {
    margin-bottom: 18px;
}

.cert-page-v39 .cert-pro-header p {
    max-width: 820px;
}

.cert-detail-section {
    padding: 4px 0 8px;
}

.cert-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.cert-detail-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    margin-bottom: 0;
    overflow: hidden;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.cert-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.13);
}

.cert-detail-photo {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 18px;
    background: #f8fafc;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.cert-detail-photo.decorative-cut {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.cert-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.32s ease;
}

.cert-detail-card:hover .cert-detail-photo img {
    transform: scale(1.04);
}

.cert-detail-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cert-detail-title {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    align-items: center;
}

.cert-detail-seal {
    width: 88px;
    height: 88px;
    object-fit: contain;
    object-position: center;
}

.cert-detail-title h3 {
    margin: 0 0 4px;
    color: var(--meco-blue);
    font-size: 26px;
    line-height: 1.2;
    text-align: left;
}

.cert-detail-title strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
}

.cert-detail-copy p {
    margin: 0;
    color: #334155;
    line-height: 1.75;
    text-align: left;
}

.cert-benefits-section {
    padding-top: 12px;
}

.cert-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cert-benefit-card {
    margin-bottom: 0;
    text-align: center;
    padding: 24px 20px;
    border-top: 3px solid var(--meco-red);
    transition:
        transform 0.20s ease,
        box-shadow 0.20s ease;
}

.cert-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.11);
}

.cert-benefit-card h3 {
    margin: 0 0 10px;
    color: var(--meco-blue);
    font-size: 20px;
}

.cert-benefit-card p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

/* Oculta bloque antiguo de imagen conjunta/lista si quedara en caché */
.cert-page-v39 .cert-pro-image-wrap,
.cert-page-v39 .cert-pro-footer {
    display: none;
}

@media (max-width: 980px) {
    .cert-detail-grid,
    .cert-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cert-detail-photo {
        height: 230px;
    }

    .cert-page-v39 .cert-intro-card {
        padding: 36px 32px 30px;
    }
}

@media (max-width: 760px) {
    .cert-detail-grid,
    .cert-benefits-grid {
        grid-template-columns: 1fr;
    }

    .cert-detail-card {
        padding: 22px;
    }

    .cert-detail-photo {
        height: 220px;
    }

    .cert-detail-title {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 12px;
    }

    .cert-detail-title h3,
    .cert-detail-title strong,
    .cert-detail-copy p {
        text-align: center;
    }

    .cert-detail-seal {
        width: 82px;
        height: 82px;
    }

    .cert-page-v39 .cert-intro-card {
        padding: 28px 22px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cert-detail-photo {
        height: 190px;
    }

    .cert-detail-seal {
        width: 76px;
        height: 76px;
    }
}

/* FIN CERTIFICACIONES INSTITUCIONALES MECOFARM v39 */


/* =========================================================
   CERTIFICACIONES INSTITUCIONALES MECOFARM v40
   Objetivo:
   - Quitar visualmente la ficha superior de Cumplimiento Normativo.
   - Subir la sección Nuestras certificaciones al espacio principal.
   - Mantener tarjetas BPA/BPDyT, beneficios y responsive.
   - Para activar en navegador usar: assets/css/style.css?v=40
========================================================= */

/* Si por caché quedara el bloque anterior, se oculta */
.cert-page-v39 .cert-intro-card {
    display: none !important;
}

/* La sección de certificaciones pasa a ser el primer bloque visual */
.cert-detail-section-top,
.cert-page-v39 .cert-detail-section {
    padding-top: 28px;
}

/* Ajuste del encabezado para que no quede demasiado abajo */
.cert-page-v39 .cert-detail-section .section-heading {
    margin-bottom: 26px;
}

/* Control del espacio general de la página interna */
.certifications-page.cert-page-v39 {
    gap: 22px;
}

/* En móvil, mantener aire suficiente sin crear vacío superior */
@media (max-width: 760px) {
    .cert-detail-section-top,
    .cert-page-v39 .cert-detail-section {
        padding-top: 22px;
    }

    .cert-page-v39 .cert-detail-section .section-heading {
        margin-bottom: 22px;
    }
}

/* FIN CERTIFICACIONES INSTITUCIONALES MECOFARM v40 */


/* =========================================================
   NOSOTROS INSTITUCIONAL MECOFARM v41
   Objetivo:
   - Rediseñar la página Nosotros para mantener coherencia con
     la sección Nosotros de la página principal.
   - Reemplazar tarjetas extensas de texto por bloques visuales.
   - Mantener: cabecera, tarjetas ¿Quiénes somos?/Compromiso,
     Misión/Visión y fortalezas institucionales.
   - Quitar el bloque anterior de Cumplimiento normativo con imagen.
   - Para activar en navegador usar: assets/css/style.css?v=41

   IMÁGENES REQUERIDAS:
   - assets/img/QuienesSomos.png
   - assets/img/NuestroCompromiso.png
========================================================= */

/* 1. ESTRUCTURA GENERAL */
.about-page-v41 {
    gap: 26px;
}

.about-hero-card-v41 {
    padding: 34px 42px;
    text-align: center;
    margin-bottom: 10px;
}

.about-hero-card-v41 .about-hero-text h2 {
    margin-bottom: 10px;
}

.about-hero-card-v41 .about-lead {
    max-width: 820px;
    font-size: 17px;
}

/* 2. TARJETAS PRINCIPALES: ¿QUIÉNES SOMOS? / COMPROMISO */
.about-profile-section {
    padding-top: 4px;
}

.about-profile-grid,
.about-mission-grid {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.about-profile-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    grid-template-areas:
        "title title"
        "media text";
    align-items: center;
    column-gap: 24px;
    row-gap: 8px;
    padding: 22px 26px;
    margin-bottom: 0;
    overflow: hidden;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.about-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.13);
}

.about-profile-photo {
    grid-area: media;
    width: 100%;
    height: 185px;
    overflow: hidden;
    border-radius: 16px;
    background: #f8fafc;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.about-profile-photo.decorative-cut {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.about-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.32s ease;
}

.about-profile-card:hover .about-profile-photo img {
    transform: scale(1.04);
}

.about-profile-copy {
    display: contents;
}

.about-profile-copy h3 {
    grid-area: title;
    margin: 0 0 6px;
    color: var(--meco-blue);
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
}

.about-profile-copy p {
    grid-area: text;
    margin: 0;
    color: #334155;
    line-height: 1.75;
    text-align: left;
}

/* 3. MISIÓN Y VISIÓN */
.about-mission-section {
    padding-top: 2px;
}

.about-mission-card {
    position: relative;
    padding: 30px;
    margin-bottom: 0;
    text-align: center;
    border-top: 3px solid var(--meco-red);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.about-mission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.11);
}

.about-mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: rgba(11, 59, 140, 0.08);
    font-size: 22px;
}

.about-mission-card h3 {
    margin: 0 0 12px;
    color: var(--meco-blue);
    font-size: 24px;
}

.about-mission-card p {
    margin: 0;
    color: #334155;
    line-height: 1.7;
    text-align: left;
}

/* 4. FORTALEZAS */
.about-strengths-section {
    padding-top: 4px;
}

.about-strengths-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-strength-card {
    margin-bottom: 0;
    padding: 24px 20px;
    text-align: center;
    border-top: 3px solid var(--meco-red);
    transition:
        transform 0.20s ease,
        box-shadow 0.20s ease;
}

.about-strength-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.11);
}

.about-strength-card h3 {
    margin: 0 0 10px;
    color: var(--meco-blue);
    font-size: 20px;
}

.about-strength-card p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.about-strengths-action {
    margin-top: 22px;
    text-align: center;
}

/* 5. RESPONSIVE */
@media (max-width: 980px) {
    .about-profile-grid,
    .about-mission-grid,
    .about-strengths-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-profile-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "media"
            "text";
        row-gap: 16px;
    }

    .about-profile-copy p,
    .about-mission-card p {
        text-align: center;
    }

    .about-profile-photo {
        height: 230px;
    }
}

@media (max-width: 760px) {
    .about-profile-grid,
    .about-mission-grid,
    .about-strengths-grid {
        grid-template-columns: 1fr;
    }

    .about-hero-card-v41 {
        padding: 28px 22px;
    }

    .about-profile-card,
    .about-mission-card,
    .about-strength-card {
        padding: 22px;
    }

    .about-profile-photo {
        height: 210px;
    }

    .about-profile-copy h3 {
        font-size: 22px;
    }

    .about-profile-copy p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-profile-photo {
        height: 185px;
    }

    .about-mini-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}

/* FIN NOSOTROS INSTITUCIONAL MECOFARM v41 */


/* =========================================================
   CERTIFICACIONES ENCABEZADO CORPORATIVO MECOFARM v42
   Objetivo:
   - Agregar encabezado tipo tarjeta a la página Certificaciones.
   - Mantener coherencia visual con la página Nosotros.
   - Conservar la sección Nuestras certificaciones como contenido principal.
   - Para activar en navegador usar: assets/css/style.css?v=42
========================================================= */

/* Tarjeta superior tipo Nosotros */
.cert-hero-card-v42 {
    padding: 34px 42px;
    text-align: center;
    margin-bottom: 10px;
}

.cert-hero-content-v42 {
    max-width: 860px;
    margin: 0 auto;
}

.cert-hero-content-v42 h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 38px;
    line-height: 1.15;
}

.cert-hero-content-v42 p {
    max-width: 820px;
    margin: 0 auto;
    color: #475569;
    font-size: 17px;
    line-height: 1.6;
}

/* Ajuste de separación para que el encabezado no quede muy distante
   de Nuestras certificaciones */
.cert-page-v42 {
    gap: 24px;
}

.cert-page-v42 .cert-detail-section-top {
    padding-top: 4px;
}

/* Responsive */
@media (max-width: 760px) {
    .cert-hero-card-v42 {
        padding: 28px 22px;
    }

    .cert-hero-content-v42 h2 {
        font-size: 30px;
    }

    .cert-hero-content-v42 p {
        font-size: 16px;
    }
}

/* FIN CERTIFICACIONES ENCABEZADO CORPORATIVO MECOFARM v42 */


/* =========================================================
   FARMACOVIGILANCIA INSTITUCIONAL MECOFARM v43
   Objetivo:
   - Modernizar la página de Farmacovigilancia manteniendo
     coherencia visual con Nosotros y Certificaciones.
   - Agregar encabezado corporativo tipo tarjeta.
   - Priorizar el flujo de reporte: tipo de reportante + formulario.
   - Mover preguntas frecuentes al final como información de apoyo.
   - Mejorar selector de reportante, pasos visuales y confidencialidad.
   - Para activar en navegador usar: assets/css/style.css?v=43

   NOTAS DE MANTENIMIENTO:
   - Textos institucionales: editar en formulario.php.
   - Colores principales: variables --meco-blue y --meco-red.
   - Espaciados generales: modificar .fv-page-v43 gap.
========================================================= */

/* 1. ESTRUCTURA GENERAL */
.fv-page-v43 {
    gap: 22px;
}

/* 2. ENCABEZADO CORPORATIVO */
.fv-hero-card-v43 {
    padding: 34px 42px;
    text-align: center;
    margin-bottom: 10px;
}

.fv-hero-content-v43 {
    max-width: 900px;
    margin: 0 auto;
}

.fv-hero-content-v43 h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 38px;
    line-height: 1.15;
}

.fv-hero-content-v43 p {
    max-width: 820px;
    margin: 0 auto;
    color: #475569;
    font-size: 17px;
    line-height: 1.65;
}

.fv-trust-grid-v43 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 780px;
    margin: 24px auto 0;
}

.fv-trust-item-v43 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    color: #0b3b8c;
    font-weight: 800;
    border: 1px solid #e5e7eb;
}

.fv-trust-item-v43 span {
    font-size: 20px;
}

/* 3. SELECTOR DE TIPO DE REPORTANTE */
.fv-type-section-v43 {
    padding: 26px 28px;
}

.fv-type-section-v43 h3 {
    margin-bottom: 6px;
    text-align: center;
}

.fv-section-help-v43 {
    margin: 0 0 18px;
    color: #64748b;
    text-align: center;
}

.fv-type-section-v43 .fv-type-grid {
    gap: 16px;
}

.fv-type-section-v43 .fv-type-option span {
    min-height: 72px;
    flex-direction: column;
    gap: 8px;
    border-radius: 16px;
}

.fv-type-section-v43 .fv-type-option span b {
    font-size: 22px;
    line-height: 1;
}

/* 4. GUÍA VISUAL DE PASOS */
.fv-steps-v43 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.fv-step-v43 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.fv-step-v43 span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--meco-blue);
    color: #fff;
    font-weight: 900;
}

.fv-step-v43 strong {
    color: #0f172a;
    font-size: 14px;
}

/* 5. FORMULARIO */
.fv-form-card-v43 {
    padding: 30px;
}

.fv-form-card-v43 .section-title {
    color: #0f172a;
    font-size: 21px;
}

.fv-form-card-v43 .section-title-wrap {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* 6. CONFIDENCIALIDAD */
.fv-confidentiality-card-v43 {
    padding: 26px 30px;
    border-left: 5px solid var(--meco-blue);
}

.fv-confidentiality-card-v43 h3 {
    margin: 0 0 10px;
    color: var(--meco-blue);
}

.fv-confidentiality-card-v43 p {
    margin: 0 0 16px;
    color: #475569;
    line-height: 1.7;
}

.fv-confidentiality-list-v43 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fv-confidentiality-list-v43 span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #0b3b8c;
    font-weight: 800;
    font-size: 13px;
}

/* 7. CONSENTIMIENTO */
.fv-consent-v43 {
    border-top: 3px solid var(--meco-red);
}

/* 8. PREGUNTAS FRECUENTES AL FINAL */
.fv-faq-cards-v43 {
    padding-top: 8px;
}

.fv-faq-grid-v43 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.fv-faq-card-v43 {
    margin-bottom: 0;
    padding: 24px 22px;
    text-align: center;
    transition:
        transform 0.20s ease,
        box-shadow 0.20s ease;
}

.fv-faq-card-v43:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.11);
}

.fv-faq-card-v43 h3 {
    margin: 0 0 10px;
    color: var(--meco-blue);
    font-size: 18px;
}

.fv-faq-card-v43 p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

/* 9. RESPONSIVE */
@media (max-width: 980px) {
    .fv-trust-grid-v43,
    .fv-steps-v43,
    .fv-faq-grid-v43 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fv-type-section-v43 .fv-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .fv-hero-card-v43 {
        padding: 28px 22px;
    }

    .fv-hero-content-v43 h2 {
        font-size: 30px;
    }

    .fv-hero-content-v43 p {
        font-size: 16px;
    }

    .fv-trust-grid-v43,
    .fv-steps-v43,
    .fv-faq-grid-v43,
    .fv-type-section-v43 .fv-type-grid {
        grid-template-columns: 1fr;
    }

    .fv-form-card-v43,
    .fv-type-section-v43,
    .fv-confidentiality-card-v43 {
        padding: 22px;
    }

    .fv-step-v43 {
        justify-content: flex-start;
    }

    .fv-confidentiality-list-v43 {
        flex-direction: column;
    }

    .fv-confidentiality-list-v43 span {
        text-align: center;
    }
}

/* FIN FARMACOVIGILANCIA INSTITUCIONAL MECOFARM v43 */


/* =========================================================
   FARMACOVIGILANCIA UX MECOFARM v44
   Objetivo:
   - Priorizar funcionalidad y facilidad de llenado para pacientes.
   - Reducir altura inicial del encabezado.
   - Eliminar elementos decorativos que retrasan el inicio del formulario.
   - Mantener identidad visual corporativa sin recargar la experiencia.
   - Reemplazar tarjetas informativas por badges compactos.
   - Destacar ayudas visibles en campos críticos.
   - Para activar en navegador usar: assets/css/style.css?v=44

   NOTAS DE MANTENIMIENTO:
   - Textos principales: editar en modules/farmacovigilancia/formulario.php.
   - Obligatoriedad: editar $camposObligatorios en formulario.php y procesar.php.
   - Colores: usar variables --meco-blue y --meco-red.
========================================================= */

/* 1. ESTRUCTURA GENERAL */
.fv-page-v44 {
    gap: 16px;
}

/* 2. ENCABEZADO COMPACTO ORIENTADO AL PACIENTE */
.fv-hero-card-v44 {
    padding: 26px 34px;
    text-align: center;
    margin-bottom: 8px;
}

.fv-hero-content-v44 {
    max-width: 880px;
    margin: 0 auto;
}

.fv-hero-content-v44 h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.15;
}

.fv-hero-content-v44 p {
    max-width: 780px;
    margin: 0 auto;
    color: #475569;
    font-size: 16px;
    line-height: 1.55;
}

/* Badges compactos: reemplazan las tarjetas informativas v43 */
.fv-badges-v44 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.fv-badges-v44 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--meco-blue);
    border: 1px solid #dbeafe;
    font-size: 13px;
    font-weight: 800;
}

/* 3. TIPO DE REPORTANTE */
.fv-type-section-v44 {
    padding: 22px 26px;
}

.fv-type-section-v44 h3 {
    margin: 0 0 6px;
    color: var(--meco-blue);
    text-align: center;
}

.fv-section-help-v44 {
    margin: 0 0 14px;
    color: #64748b;
    text-align: center;
    font-size: 14px;
}

.fv-type-section-v44 .fv-type-grid {
    gap: 12px;
}

.fv-type-section-v44 .fv-type-option span {
    min-height: 58px;
    flex-direction: row;
    gap: 8px;
    border-radius: 14px;
}

.fv-type-section-v44 .fv-type-option span b {
    font-size: 19px;
    line-height: 1;
}

/* 4. FORMULARIO */
.fv-form-card-v44 {
    padding: 28px;
}

.fv-form-card-v44 .section-title-wrap {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.fv-form-card-v44 .section-title {
    margin: 0;
    color: #0f172a;
    font-size: 21px;
    line-height: 1.3;
}

/* Ayuda visible en campos críticos */
.field-help-v44 {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

/* 5. CONFIDENCIALIDAD COMPACTA */
.fv-privacy-note-v44 {
    padding: 15px 18px;
    border-left: 4px solid var(--meco-blue);
    background: #eff6ff;
}

.fv-privacy-note-v44 p {
    margin: 0;
    color: #334155;
    line-height: 1.55;
}

/* Consentimiento más integrado */
.fv-consent-v44 {
    padding: 18px;
    border-top: 2px solid var(--meco-red);
}

/* 6. BOTÓN FINAL */
.form-actions {
    justify-content: stretch;
}

.fv-submit-btn-v44 {
    width: 100%;
    min-height: 56px;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 12px;
}

/* 7. OCULTAR ELEMENTOS v43 NO USADOS */
.fv-steps-v43,
.fv-steps-v44,
.fv-trust-grid-v43 {
    display: none !important;
}

/* 8. RESPONSIVE */
@media (max-width: 980px) {
    .fv-type-section-v44 .fv-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .fv-hero-card-v44 {
        padding: 24px 20px;
    }

    .fv-hero-content-v44 h2 {
        font-size: 29px;
    }

    .fv-hero-content-v44 p {
        font-size: 15px;
    }

    .fv-badges-v44 {
        gap: 8px;
    }

    .fv-badges-v44 span {
        width: 100%;
    }

    .fv-type-section-v44,
    .fv-form-card-v44 {
        padding: 20px;
    }

    .fv-type-section-v44 .fv-type-grid {
        grid-template-columns: 1fr;
    }

    .fv-type-section-v44 .fv-type-option span {
        justify-content: center;
    }

    .fv-submit-btn-v44 {
        min-height: 54px;
        font-size: 16px;
    }
}

/* FIN FARMACOVIGILANCIA UX MECOFARM v44 */


/* =========================================================
   CONTACTENOS CORPORATIVO MECOFARM v45
   Objetivo:
   - Rediseñar Contáctenos con estructura corporativa coherente.
   - No usar íconos en datos de contacto ni tarjetas.
   - Agregar campo Asunto para clasificar consultas comerciales.
   - Para activar en navegador usar: assets/css/style.css?v=46
========================================================= */

.contact-page-v45 { display: flex; flex-direction: column; gap: 24px; }

.contact-hero-card-v45 {
    padding: 34px 42px;
    text-align: center;
    margin-bottom: 0;
}

.contact-hero-content-v45 {
    max-width: 860px;
    margin: 0 auto;
}

.contact-hero-content-v45 h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 38px;
    line-height: 1.15;
}

.contact-hero-content-v45 p {
    max-width: 760px;
    margin: 0 auto;
    color: #475569;
    font-size: 17px;
    line-height: 1.65;
}

.contact-support-grid-v45 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-support-card-v45 {
    margin-bottom: 0;
    padding: 24px 22px;
    text-align: center;
    border-top: 3px solid var(--meco-red);
    transition: transform 0.20s ease, box-shadow 0.20s ease;
}

.contact-support-card-v45:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.11);
}

.contact-support-card-v45 h3 {
    margin: 0 0 10px;
    color: var(--meco-blue);
    font-size: 20px;
}

.contact-support-card-v45 p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.contact-main-card-v45 { padding: 34px; }

.contact-layout-v45 {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 38px;
    align-items: start;
}

.contact-info-v45 h3 {
    margin: 0 0 18px;
    color: var(--meco-blue);
    font-size: 28px;
    line-height: 1.25;
}

.contact-data-v45 {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-left: none;
    border-radius: 0;
    display: grid;
    gap: 14px;
}

.contact-data-item-v45 {
    padding: 15px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border-left: 4px solid var(--meco-blue);
}

.contact-data-item-v45 strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.contact-data-item-v45 span {
    display: block;
    color: #475569;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.contact-form-box-v45 { background: transparent; }
.contact-form-v45 { gap: 16px; }

.contact-form-v45 input,
.contact-form-v45 select,
.contact-form-v45 textarea {
    border-radius: 10px;
    border-color: #cbd5e1;
    padding: 13px 14px;
}

.contact-form-v45 textarea { min-height: 130px; }

.contact-submit-v45 {
    width: 160px;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 900;
}

.contact-trust-v45 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.contact-trust-v45 span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--meco-blue);
    border: 1px solid #dbeafe;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .contact-support-grid-v45,
    .contact-layout-v45 { grid-template-columns: 1fr; }
    .contact-main-card-v45 { padding: 30px; }
}

@media (max-width: 760px) {
    .contact-hero-card-v45 { padding: 28px 22px; }
    .contact-hero-content-v45 h2 { font-size: 30px; }
    .contact-hero-content-v45 p { font-size: 16px; }
    .contact-main-card-v45 { padding: 22px; }
    .contact-form-row { grid-template-columns: 1fr; }
    .contact-submit-v45 { width: 100%; min-height: 52px; }
    .contact-trust-v45 { flex-direction: column; }
    .contact-trust-v45 span { justify-content: center; text-align: center; }
}

/* FIN CONTACTENOS CORPORATIVO MECOFARM v45 */


/* =========================================================
   CONTACTENOS AJUSTE FINAL MECOFARM v46
   Objetivo:
   - Mover las fichas informativas al final de la página.
   - Eliminar la redundancia visual bajo el botón Enviar.
   - Mantener estructura limpia: encabezado, formulario, fichas finales.
   - Para activar en navegador usar: assets/css/style.css?v=46
========================================================= */

/* Reduce el espacio luego del encabezado para pasar directo al formulario */
.contact-page-v46 {
    gap: 22px;
}

/* La sección de fichas finales reemplaza las fichas superiores */
.contact-final-support-v46 {
    padding-top: 4px;
}

/* Alineación visual de las fichas finales con Nosotros y Certificaciones */
.contact-support-grid-v46 {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Evita que el formulario se vea cargado debajo del botón */
.contact-page-v46 .contact-trust-v45 {
    display: none !important;
}

/* Ajuste de separación entre formulario y fichas finales */
.contact-page-v46 .contact-main-card-v45 {
    margin-bottom: 4px;
}

@media (max-width: 760px) {
    .contact-final-support-v46 {
        padding-top: 0;
    }
}

/* FIN CONTACTENOS AJUSTE FINAL MECOFARM v46 */

/* =========================================================
   HEADER PÚBLICO MECOFARM v48 - RETIRO DE INTRANET
   Objetivo:
   - Mantener únicamente las cinco opciones públicas.
   - Equilibrar visualmente el menú después de retirar INTRANET.
   - Conservar el tamaño del logotipo y la altura del encabezado.
   - Mantener el comportamiento responsive existente.

   Para activar:
   assets/css/style.css?v=48
========================================================= */

/* Escritorio:
   El logo conserva su posición y el menú ocupa el espacio restante.
   Las cinco opciones se centran dentro de esa zona disponible. */
@media (min-width: 981px) {
    .header-container {
        display: grid;
        grid-template-columns: 170px minmax(0, 1fr);
        align-items: center;
        column-gap: 34px;
    }

    .brand-link {
        justify-self: start;
    }

    .main-menu {
        width: 100%;
        justify-content: center;
        gap: 18px;
        flex-wrap: nowrap;
    }
}

/* Tablet:
   Se reduce moderadamente la separación para evitar saltos de línea. */
@media (min-width: 761px) and (max-width: 980px) {
    .header-container {
        display: grid;
        grid-template-columns: 145px minmax(0, 1fr);
        align-items: center;
        column-gap: 20px;
    }

    .brand-link {
        justify-self: start;
    }

    .main-menu {
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .main-menu a {
        padding-left: 6px;
        padding-right: 6px;
        font-size: 11.5px;
    }
}

/* Smartphone:
   Se conserva el botón desplegable y el menú vertical existente. */
@media (max-width: 760px) {
    .header-container {
        display: flex;
    }

    .main-menu {
        width: 100%;
    }
}

/* FIN HEADER PÚBLICO MECOFARM v48 */

/* =========================================================
   FARMACOVIGILANCIA MECOFARM v50 - DNI OPCIONAL NUMÉRICO
   No se requieren nuevos estilos.
   Se reutiliza .optional-text para mostrar "(Opcional)".
   Activar con: assets/css/style.css?v=50
========================================================= */
