/* ============================================
   CSS GENERAL - ECUADOR GLOBAL PHARMA
   Reset, Header, Footer, Variables Globales
   ============================================ */

/* Importar FontAwesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* Reset base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.7em;
    background-color: #fff;
}

/* Utilidades */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Botones generales */
.btn {
    display: inline-block;
    background: #0084de;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.btn:hover {
    background: #e02b20;
    transform: translateY(-2px);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #d3d3d3;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #0C71C3;
    font-weight: 600;
    font-size: 17px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #e02b20;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: #0084de;
    transition: color 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    color: #e02b20;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #0C71C3;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    width: 100%;
    background: #0c71c3;
    margin: 0;
    padding: 0;
}

/* Atención Personalizada */
.atencion-section {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
}

.atencion-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.atencion-text {
    flex: 2;
    max-width: 500px;
}

.atencion-text h4 {
    color: #0084de;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.atencion-text h2 {
    color: #0C71C3;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.atencion-text p {
    color: #555;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.btn-contacto {
    background: #0084de;
    color: #fff;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-contacto:hover {
    background: #e02b20;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.atencion-image {
    flex: 1;
    text-align: center;
    max-width: 200px;
}

.contacto-img {
    width: 100%;
    height: auto;
    max-height: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: contain;
}

/* Footer Widgets */
.footer-widgets {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #0084de;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.contact-info-footer p {
    margin-bottom: 12px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.contact-info-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

/* Redes Sociales */
.social-footer {
    text-align: center;
    padding: 25px 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
}

.social-icon:hover {
    background: #0084de;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 20px 20px 30px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float img {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s;
    width: 60px;
    height: 60px;
}

/* ============================================
   RESPONSIVE GENERAL
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding: 20px 0;
    }
    
    .main-nav.mobile-open ul {
        display: flex;
    }
    
    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 1;
    }
    
    .social-links {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .atencion-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .atencion-text {
        text-align: center;
        max-width: 100%;
    }
    
    .atencion-image {
        max-width: 150px;
    }
    
    .footer-widgets {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-column h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
    }
    
    .whatsapp-float img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .atencion-image {
        max-width: 120px;
    }
    
    .contacto-img {
        max-height: 140px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.7em;
    background-color: #fff;
}

.container {
    width: 80%;
    max-width: 1080px;
    margin: auto;
    position: relative;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #d3d3d3;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    max-width: 200px;
    height: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #0C71C3;
    font-weight: 600;
    font-size: 17px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #e02b20;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: #0084de;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #e02b20;
}

/* Footer principal */
.site-footer {
    background: #0c71c3;
    color: #fff;
    padding: 0;
    margin-top: 50px;
}

.site-footer .container {
    max-width: 1200px;
}

/* Sección Atención Personalizada - CORREGIDA */
.atencion-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    width: 100%;
}

.atencion-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    gap: 50px;
}

.atencion-text {
    flex: 1;
    text-align: left;
}

.atencion-text h4 {
    color: #0084de;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.atencion-text h2 {
    color: #0C71C3;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.atencion-text p {
    color: #555;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.btn-contacto {
    background: #0084de;
    color: #fff;
    padding: 14px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-contacto:hover {
    background: #e02b20;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.atencion-image {
    flex: 1;
    text-align: center;
}

.atencion-image img {
    max-width: 100%;
    border-radius: 12px;
    max-height: 450px;
    width: auto;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Footer Widgets */
.footer-widgets {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    padding: 50px 0 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #0084de;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.contact-info-footer p {
    margin-bottom: 12px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.contact-info-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.contact-info-footer a:hover {
    color: #fff;
}

/* Redes Sociales Footer */
.social-footer {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
}

.social-icon:hover {
    background: #0084de;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 20px 0 30px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float img {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s;
    width: 60px;
    height: 60px;
}

.whatsapp-float img:hover {
    transform: scale(1.1);
}

/* Botones generales */
.btn {
    display: inline-block;
    background: #0084de;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background: #e02b20;
    transform: translateY(-2px);
}

/* Page Content */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    border-radius: 12px;
}

.hero-section h1 {
    font-size: 42px;
    color: #0C71C3;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.hero-section h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0084de;
}

/* Content Section */
.content-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.description-text {
    flex: 1;
}

.description-text p {
    margin-bottom: 15px;
    font-size: 16px;
}

.description-image {
    flex: 1;
    text-align: center;
}

.description-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Section Title */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
}

.section-title h2 {
    font-size: 32px;
    color: #0C71C3;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 18px;
    color: #0C71C3;
    margin-bottom: 15px;
}

.separator {
    width: 50px;
    height: 3px;
    background: #0084de;
    margin: 15px auto;
}

.service-card p {
    margin-bottom: 20px;
    font-size: 14px;
}

/* Download Section */
.download-section {
    text-align: center;
    margin: 40px 0;
}

/* Logos Grid */
.logos-grid, .flags-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.logos-grid img, .flags-section img {
    max-height: 80px;
    object-fit: contain;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.product-item {
    background: #f5f5f5;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.product-item:hover {
    background: #0084de;
    color: #fff;
}

/* Why Us Section */
.why-us {
    text-align: center;
    margin: 30px 0;
}

.why-us img {
    max-width: 100%;
    border-radius: 12px;
}

/* Footer Banner */
.footer-banner {
    margin-top: 50px;
    text-align: center;
}

.footer-banner img {
    max-width: 100%;
    border-radius: 12px;
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin: 50px 0;
    text-align: center;
}

.stat {
    flex: 1;
    min-width: 200px;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #0084de;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

/* About Parallax - CORREGIDO para que se vea la imagen de fondo */
.about-parallax {
    background-image: url('../imagenes/20250408_142926-min.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    position: relative;
    margin: 50px 0;
    border-radius: 12px;
}

.about-parallax:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,21,91,0.85) 0%, rgba(6,62,114,0.75) 100%);
    border-radius: 12px;
}

.about-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.about-content p {
    color: #fff;
    font-size: 20px;
    line-height: 1.7;
    font-weight: 500;
}

/* Hero Slider - CORREGIDO */
.hero-slider {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
}

.hero-slider video {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
    width: 80%;
}

.slide-text h2 a {
    color: #fff;
    text-decoration: none;
    font-size: 48px;
    font-weight: 700;
}

.slide-text p {
    font-size: 24px;
    margin: 20px 0;
}

/* Contact Page */
.contact-description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.contact-highlight {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
}

.contact-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.contact-form .form-row {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #0084de;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s;
}

.contact-info .info-item:hover {
    transform: translateX(5px);
}

.info-icon {
    font-size: 28px;
}

.captcha {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha input {
    width: 80px;
}

.map-container {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Holding Page */
.holding-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 40px 0;
}

.holding-text p {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.8;
}

.holding-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Permisos Page */
.permisos-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.permiso-card {
    text-align: center;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s;
}

.permiso-card:hover {
    transform: translateY(-5px);
}

.permiso-card img {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.permiso-card h2 {
    color: #0C71C3;
    margin-bottom: 15px;
    font-size: 24px;
}

/* Propiedad Intelectual Page */
.servicios-pi {
    margin: 40px 0;
}

.servicio-pi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.servicio-pi.reverse {
    direction: rtl;
}

.servicio-pi.reverse .servicio-pi-texto {
    direction: ltr;
}

.servicio-pi img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.servicio-pi-texto h2 {
    color: #0C71C3;
    margin-bottom: 20px;
    font-size: 28px;
}

.servicio-pi-texto p {
    font-size: 16px;
    line-height: 1.7;
}

/* Servicios Page */
.servicios-image {
    text-align: center;
    margin-bottom: 40px;
}

.servicios-image img {
    max-width: 100%;
    border-radius: 16px;
}

.servicios-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.servicio-card-link a {
    text-decoration: none;
}

.servicio-card-img {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.servicio-card-img img {
    width: 100%;
    transition: transform 0.5s;
    display: block;
}

.servicio-card-img:hover img {
    transform: scale(1.05);
}

.servicio-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px 20px 25px;
    text-align: center;
}

.servicio-card-overlay h2 {
    color: #fff;
    font-size: 22px;
    margin: 0;
}

/* Soluciones Page */
.soluciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.solucion-card {
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.solucion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.solucion-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.solucion-card h3 {
    color: #0C71C3;
    font-size: 18px;
    margin: 0;
}

/* Farmacovigilancia Form */
.farmacovigilancia-form {
    max-width: 800px;
    margin: 0 auto;
}

.farmacovigilancia-form fieldset {
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    background: #fafafa;
}

.farmacovigilancia-form legend {
    padding: 0 20px;
    font-weight: 700;
    font-size: 20px;
    color: #0C71C3;
    background: #fff;
    border-radius: 30px;
    border: 1px solid #ddd;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #e02b20;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0084de;
}

.form-group.checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: normal;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 3px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #0084de, #0C71C3);
    border-radius: 16px;
    margin: 50px 0;
}

.cta-section h2 {
    color: #fff;
    font-size: 38px;
    margin-bottom: 10px;
}

.cta-section h2 span {
    color: #0ee7c5;
}

.cta-section p {
    color: #fff;
    font-size: 20px;
    margin-top: 10px;
}

/* Info Text */
.info-text {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid #0084de;
}

.info-text p {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Form Header */
.form-header {
    text-align: center;
    margin: 40px 0 20px;
}

.form-header h2, .form-header h3 {
    color: #0C71C3;
}

.form-header h2 {
    font-size: 28px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #0C71C3;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        width: 90%;
    }
    
    .atencion-content {
        padding: 40px 30px;
    }
    
    .atencion-text h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding: 20px 0;
    }
    
    .main-nav.mobile-open ul {
        display: flex;
    }
    
    .site-header .container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 1;
    }
    
    .social-links {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .atencion-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }
    
    .atencion-text {
        text-align: center;
    }
    
    .atencion-text h2 {
        font-size: 28px;
    }
    
    .atencion-text h4 {
        font-size: 12px;
    }
    
    .footer-widgets {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .footer-column h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-two-columns,
    .holding-two-columns,
    .permisos-two-columns,
    .servicio-pi {
        grid-template-columns: 1fr;
    }
    
    .servicio-pi.reverse {
        direction: ltr;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .stats-row {
        flex-direction: column;
    }
    
    .slide-text h2 a {
        font-size: 28px;
    }
    
    .slide-text p {
        font-size: 18px;
    }
    
    .about-parallax {
        background-attachment: scroll;
        padding: 60px 20px;
    }
    
    .about-content p {
        font-size: 16px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .whatsapp-float img {
        width: 50px;
        height: 50px;
    }
    
    .hero-slider {
        min-height: 350px;
    }
    
    .hero-slider video {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 20px 15px;
    }
    
    .hero-section {
        padding: 30px 15px;
    }
    
    .hero-section h1 {
        font-size: 24px;
    }
    
    .btn, .btn-contacto {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .service-card h3 {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-two-columns {
        gap: 30px;
    }
    
    .contact-info .info-item {
        padding: 12px 15px;
    }
    
    .info-icon {
        font-size: 24px;
    }
    
    .farmacovigilancia-form fieldset {
        padding: 20px;
    }
    
    .farmacovigilancia-form legend {
        font-size: 16px;
    }
    
    .servicio-pi-texto h2 {
        font-size: 22px;
    }
    
    .permiso-card h2 {
        font-size: 20px;
    }
    
    .solucion-card h3 {
        font-size: 16px;
    }
}
/* ============================================
   CORRECCIONES PARA IMÁGENES DE FONDO
   ============================================ */

/* Asegurar que todas las imágenes de fondo se vean correctamente */
.about-parallax,
.hero-section,
.stats-row .stat,
.service-card,
.product-item,
.solucion-card,
.permiso-card,
.servicio-pi img,
.atencion-section {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Corregir imagen de fondo del parallax */
.about-parallax {
    background-image: url('../imagenes/20250408_142926-min.webp') !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center !important;
    min-height: 400px;
    position: relative;
    border-radius: 12px;
    margin: 50px 0;
}

/* Asegurar que el overlay del parallax funcione */
.about-parallax:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,21,91,0.85) 0%, rgba(6,62,114,0.75) 100%);
    border-radius: 12px;
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2;
}

/* Imagen principal de servicios - CORREGIDA */
.servicios-image-container {
    max-width: 800px;
    margin: 20px auto 40px auto;
    text-align: center;
    background: #f5f7fa;
    border-radius: 16px;
    padding: 20px;
    overflow: hidden;
}

.servicios-principal-img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

/* Imagen de fondo para hero sections */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section.bg-image {
    background-image: url('../imagenes/hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-section.bg-image h1 {
    color: #fff;
}

.hero-section.bg-image h1:after {
    background: #fff;
}

/* Fondo para stats */
.stat {
    position: relative;
    overflow: hidden;
}

.stat.bg-dark {
    background: linear-gradient(135deg, #0C71C3, #0084de);
    color: #fff;
}

.stat.bg-dark .stat-number,
.stat.bg-dark .stat-label {
    color: #fff;
}

/* Fondo para cards */
.service-card,
.product-item,
.solucion-card,
.permiso-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.product-item:hover,
.solucion-card:hover,
.permiso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Fix para imágenes que no cargan por nombre con caracteres especiales */
.servicios-image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Fondo para sección de servicios en home */
.services-bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    border-radius: 20px;
    margin: 40px 0;
}

/* Asegurar imágenes responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Fondo para el footer banner */
.footer-banner {
    background: linear-gradient(135deg, #0C71C3, #0084de);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.footer-banner img {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.servicios-image-full {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.servicios-image-full img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}



/* ============================================
   MODAL AVISO COOKIES
   ============================================ */

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
  box-sizing: border-box;
}

.cookie-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.cookie-modal__content {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 28px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  box-sizing: border-box;
}

.cookie-modal.is-open .cookie-modal__content {
  transform: translateY(0);
}

.cookie-modal__title {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a3a7a;
  margin: 0 0 12px 0;
  padding: 0;
}

.cookie-modal__text {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #444444;
  margin: 0 0 24px 0;
}

.cookie-modal__btn {
  display: inline-block;
  background: #0084de;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cookie-modal__btn:hover {
  background: #e02b20;
  transform: translateY(-1px);
}

.cookie-modal__btn:active {
  transform: translateY(0);
}


/* ============================================
   LOPDP - Visor de PDF responsive
   ============================================ */

.lopdp-section {
  width: 100%;
  padding: 60px 20px 80px;
  background-color: #f7f9fc;
  box-sizing: border-box;
}

.lopdp-container {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Encabezado ---------- */
.lopdp-header {
  margin-bottom: 32px;
}

.lopdp-titulo {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1a3a7a;
  margin: 0 0 8px 0;
  padding: 0;
  line-height: 1.2;
}

.lopdp-subtitulo {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #666;
  margin: 0;
  padding: 0;
}

/* ---------- Visor PDF (desktop) ---------- */
.lopdp-viewer {
  width: 100%;
  height: 85vh;
  min-height: 600px;
  background: #e9eef5;
  border: 1px solid #d8e0eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 33, 91, 0.08);
  margin: 0 auto;
}

.lopdp-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #ffffff;
}

/* ---------- Tarjeta alternativa (móvil) ---------- */
.lopdp-card {
  display: none;
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 28px;
  background: #ffffff;
  border: 1px solid #d8e0eb;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 33, 91, 0.08);
  text-align: center;
}

.lopdp-card__icon {
  color: #e02b20;
  margin-bottom: 16px;
  line-height: 0;
}

.lopdp-card__title {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a3a7a;
  margin: 0 0 10px 0;
  padding: 0;
}

.lopdp-card__text {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

/* ---------- Botones ---------- */
.lopdp-acciones {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.lopdp-btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 30px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease,
              border-color 0.3s ease, transform 0.2s ease;
  line-height: 1.2;
}

.lopdp-btn--primary {
  background: #0084de;
  color: #ffffff;
  border-color: #0084de;
}

.lopdp-btn--primary:hover {
  background: #e02b20;
  border-color: #e02b20;
  transform: translateY(-2px);
}

.lopdp-btn--outline {
  background: transparent;
  color: #0084de;
  border-color: #0084de;
}

.lopdp-btn--outline:hover {
  background: #0084de;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */

/* Tablets y móviles: ocultamos el iframe y mostramos la tarjeta */
@media (max-width: 900px) {
  .lopdp-section {
    padding: 40px 16px 60px;
  }

  .lopdp-titulo {
    font-size: 28px;
  }

  .lopdp-subtitulo {
    font-size: 14px;
  }

  .lopdp-viewer--desktop {
    display: none;
  }

  .lopdp-card--mobile {
    display: block;
  }

  /* En móvil, ocultamos el botón duplicado dentro de la tarjeta
     (el que dice "Abrir PDF") porque ya hay uno en .lopdp-acciones */
  .lopdp-card .lopdp-btn {
    display: none;
  }

  /* Y dejamos solo el botón de la tarjeta + acciones */
  .lopdp-card--mobile .lopdp-btn {
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .lopdp-titulo {
    font-size: 24px;
  }

  .lopdp-acciones {
    flex-direction: column;
    align-items: stretch;
  }

  .lopdp-btn {
    width: 100%;
    text-align: center;
  }
}