/* ========================================
   INGECO Z.S. - ESTILOS PRINCIPALES
   Sitio web de soluciones industriales
   ======================================== */

/* ========================================
   1. VARIABLES CSS
   ======================================== */
:root {
    --azul: #002B5B;
    --azul-osc: #001a3a;
    --rojo: #C41E3A;
    --gris: #f8f9fa;
    --gris-claro: #e9ecef;
    --border-radius: 8px;
    --sombra-suave: 0 4px 6px rgba(0, 0, 0, 0.1);
    --sombra-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transicion: all 0.3s ease;
}

/* ========================================
   2. RESET Y ESTILOS GENERALES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--gris);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transicion);
}

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

/* ========================================
   3. LAYOUT Y CONTENEDORES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.section {
    width: 100%;
    padding: 60px 20px;
}

.section.bg-light {
    background-color: var(--gris);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--azul);
    font-weight: 700;
}

.section-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* ========================================
   4. TOPBAR
   ======================================== */
.topbar {
    background-color: var(--azul);
    color: #fff;
    padding: 15px 0;
    font-size: 14px;
    width: 100%;
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.topbar span,
.topbar a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    transition: var(--transicion);
}

.topbar a:hover {
    color: var(--rojo);
}

.topbar span.mobile-only,
.topbar a.mobile-only {
    display: none;
}

.topbar span.mobile-show,
.topbar a.mobile-show {
    display: none;
}

.topbar span.desktop-only,
.topbar a.desktop-only {
    display: inline-block;
}

/* ========================================
   5. HEADER Y NAVEGACIÓN
   ======================================== */
.header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--azul);
}

.logo img {
    height: 45px;
    width: auto;
    margin-right: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--azul);
}

.logo .red {
    color: var(--rojo);
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: var(--transicion);
}

.nav a:hover {
    color: var(--azul);
}

.nav a.active {
    color: var(--rojo);
}

/* Hamburger Menu - 2 líneas que se convierten en X */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    width: 30px;
    height: 24px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--azul);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) {
    top: 5px;
}

.nav-toggle span:nth-child(2) {
    bottom: 5px;
}

/* Cuando está activo (abierto) - se convierte en X clara */
.nav-toggle.active span {
    background: #fff;
}

.nav-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* ========================================
   6. HERO SECTION
   ======================================== */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    background: url('assets/images/portada.png') center no-repeat;
    background-size: 100% auto;
    color: #fff;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
    transition: background-image 1s ease-in-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 43, 91, 0.65), rgba(0, 26, 58, 0.75));
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(0.5px) brightness(0.98);
    -webkit-backdrop-filter: blur(0.5px) brightness(0.98);
    z-index: 0;
    pointer-events: none;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

/* ========================================
   7. BOTONES
   ======================================== */
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: var(--transicion);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--azul), var(--azul-osc));
    color: white;
    box-shadow: var(--sombra-suave);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-hover);
}

.btn-secondary {
    background: white;
    color: var(--azul);
    border: 2px solid var(--azul);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--azul);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   8. GRIDS DE PRODUCTOS Y SERVICIOS
   ======================================== */
.productos-grid,
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Grid de Categorías - 3 columnas */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.categoria-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    display: flex;
    flex-direction: column;
}

.categoria-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-hover);
}

.categoria-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.categoria-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.categoria-card h3,
.producto-card h3,
.servicio-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--azul);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categoria-card p,
.producto-card p,
.servicio-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    flex: 1;
}

.categoria-card .btn-secondary,
.producto-card .btn-secondary,
.servicio-card .btn-secondary {
    margin-top: auto;
    width: 100%;
}

/* Grid de Productos Destacados */
.productos-destacados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Botón grande */
.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ========================================
   9. CARDS DE PRODUCTOS Y SERVICIOS
   ======================================== */
.producto-card,
.servicio-card,
.categoria-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    display: flex;
    flex-direction: column;
}

.producto-card:hover,
.servicio-card:hover,
.categoria-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-hover);
    border-color: var(--azul);
}

.producto-card img,
.servicio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.categoria-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.categoria-card h3,
.producto-card h3,
.servicio-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--azul);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categoria-card p,
.producto-card p,
.servicio-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    flex: 1;
}

.categoria-card .btn-secondary,
.producto-card .btn-secondary,
.servicio-card .btn-secondary {
    margin-top: auto;
    width: 100%;
}

/* Productos Destacados Cards */
.producto-destacado-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    display: flex;
    flex-direction: column;
}

.producto-destacado-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-hover);
}

.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-image-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transicion);
}

.producto-destacado-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--rojo);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.producto-destacado-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-categories {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-category-tag {
    background-color: var(--gris);
    color: var(--azul);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.producto-destacado-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--azul);
    font-weight: 700;
}

.product-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.product-actions .btn-primary,
.product-actions .btn-secondary {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
}

/* ========================================
   10. MARCAS
   ======================================== */
.marcas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.marcas-grid img {
    max-width: 200px;
    height: auto;
    opacity: 1;
    transition: var(--transicion);
    filter: none;
}

.marcas-grid img:hover {
    transform: scale(1.05);
}

/* ========================================
   11. FORMULARIO DE CONTACTO
   ======================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transicion);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(0, 43, 91, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background: linear-gradient(135deg, var(--azul), var(--azul-osc));
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicion);
    font-size: 1rem;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-hover);
}

/* Mensajes del formulario */
.form-message {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.form-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #bee5eb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   12. MAPA
   ======================================== */
.mapa {
    margin-top: 40px;
}

.mapa iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--sombra-suave);
}

/* ========================================
   13. FOOTER
   ======================================== */
.footer {
    background-color: var(--azul);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    width: 100%;
}

.footer p {
    margin: 5px 0;
}

.footer strong {
    font-size: 1.1rem;
    color: #fff;
}

.footer .service-area {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 10px;
    font-style: italic;
}

/* SEO Local */
.footer .seo-local {
    margin: 20px 0 10px 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.footer .seo-local p {
    margin: 5px 0;
    font-size: 0.85rem;
}

.footer .seo-local strong {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 5px;
}

/* ========================================
   14. WHATSAPP BUTTON
   ======================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    padding: 15px;
    border-radius: 50%;
    font-size: 1.8rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transicion);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* ========================================
   15. ANIMACIONES Y EFECTOS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   16. RESPONSIVE - TABLETS (768px - 992px)
   ======================================== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .nav {
        gap: 15px;
    }

    .productos-grid,
    .servicios-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ========================================
   17. RESPONSIVE - MÓVILES (max 768px)
   ======================================== */
@media (max-width: 768px) {

    /* Topbar */
    .topbar-inner {
        flex-direction: row;
        gap: 5px;
        text-align: center;
        justify-content: center;
    }

    .topbar span,
    .topbar a {
        margin: 0 5px;
        font-size: 0.8rem;
    }

    /* Ocultar elementos desktop */
    .topbar span.desktop-only,
    .topbar a.desktop-only {
        display: none !important;
    }

    /* Mostrar solo teléfono y email en mobile */
    .topbar span.mobile-show,
    .topbar a.mobile-show {
        display: inline-block !important;
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        display: none;
    }

    /* Header */
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 43, 91, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav a {
        color: #fff;
        font-size: 1.5rem;
        padding: 10px 20px;
    }

    .nav a:hover {
        color: var(--rojo);
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .nav-toggle.active {
        position: fixed;
        right: 20px;
        top: 20px;
    }

    /* Hero */
    .hero {
        min-height: 400px;
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Secciones */
    .section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-text {
        font-size: 1rem;
    }

    /* Grids */
    .productos-grid,
    .servicios-grid,
    .categorias-grid,
    .productos-destacados-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Cards */
    .producto-card,
    .servicio-card {
        padding: 15px;
    }

    /* Marcas */
    .marcas-grid {
        gap: 20px;
    }

    .marcas-grid img {
        max-width: 120px;
    }

    /* Formulario */
    .contact-form {
        margin-top: 20px;
    }

    /* Mapa */
    .mapa iframe {
        height: 300px;
    }

    /* Footer */
    .footer {
        font-size: 0.8rem;
        padding: 20px 15px;
    }

    /* WhatsApp */
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 15px;
        right: 15px;
    }

    /* Botones */
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* ========================================
   18. RESPONSIVE - MÓVILES PEQUEÑOS (max 480px)
   ======================================== */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-text {
        font-size: 0.95rem;
    }

    .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .footer {
        font-size: 0.75rem;
    }
}

/* ========================================
   19. UTILIDADES
   ======================================== */
.text-center {
    text-align: center;
}

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

.mb-30 {
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

/* ========================================
   20. PÁGINAS DE CATEGORÍAS
   ======================================== */

/* Category Hero */
.category-hero {
    background: linear-gradient(135deg, var(--azul) 0%, var(--azul-osc) 100%);
    color: white;
    padding: 60px 0 40px;
    margin-top: 0;
}

.category-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 10px;
}

.breadcrumb a {
    color: white;
    text-decoration: underline;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

/* Category Content */
.category-description {
    max-width: 900px;
    margin: 0 auto 40px;
}

.category-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.category-description h2 {
    font-size: 1.5rem;
    color: var(--azul);
    margin: 30px 0 15px;
    font-weight: 600;
}

.technical-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.technical-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

.technical-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--rojo);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Product Gallery */
.product-gallery {
    margin: 50px 0;
    padding: 40px 0;
    background: var(--gris);
}

.product-gallery h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--azul);
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-placeholder {
    background: white;
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 1.1rem;
}

/* Imagen de galería PT100 más grande en desktop */
@media (min-width: 992px) {
    .product-gallery .gallery-grid img[alt*="PT100"] {
        max-width: 650px !important;
        height: auto !important;
        margin: 32px auto !important;
        display: block;
    }
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 50px auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--azul);
    margin-bottom: 30px;
}

.faq-container {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--sombra-suave);
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: white;
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--azul);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transicion);
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--rojo);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 20px 25px;
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--azul) 0%, var(--azul-osc) 100%);
    color: white;
    text-align: center;
    padding: 50px 30px;
    border-radius: var(--border-radius);
    margin: 50px 0;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.cta-section .btn-primary {
    background: var(--rojo);
    border: 2px solid var(--rojo);
}

.cta-section .btn-primary:hover {
    background: white;
    color: var(--rojo);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cta-buttons .btn-secondary {
    background: white;
    color: var(--azul);
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* ========================================
   21. RESPONSIVE - PÁGINAS DE CATEGORÍAS
   ======================================== */
@media (max-width: 768px) {
    .category-hero {
        padding: 40px 0 30px;
    }

    .category-hero h1 {
        font-size: 1.6rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    .category-description h2 {
        font-size: 1.3rem;
    }

    .product-gallery h2,
    .faq-section h2,
    .cta-section h2 {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 15px 20px;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .category-hero h1 {
        font-size: 1.4rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SECCIÓN DE PRODUCTOS RELACIONADOS
   ======================================== */
.related-products {
    margin: 50px 0;
    padding: 40px;
    background: var(--gris-claro);
    border-radius: var(--border-radius);
}

.related-products h2 {
    font-size: 1.8rem;
    color: var(--azul);
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--azul);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.related-card:hover {
    border-color: var(--rojo);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.related-card h3 {
    font-size: 1.2rem;
    color: var(--azul);
    margin-bottom: 10px;
    font-weight: 700;
}

.related-card p {
    font-size: 0.95rem;
    color: var(--gris);
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   TABLA COMPARATIVA - SEO & UX
   ======================================== */
.comparison-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--azul), var(--azul-osc));
    color: #fff;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table th {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tbody tr {
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: #f5f9ff;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table td strong {
    color: var(--azul);
    font-weight: 600;
}

/* Guía paso a paso */
.guide-list {
    background: #f9f9f9;
    padding: 25px 30px 25px 50px;
    border-left: 4px solid var(--rojo);
    border-radius: 8px;
    margin: 25px 0;
}

.guide-list li {
    margin: 15px 0;
    line-height: 1.8;
    color: var(--gris-osc);
}

.guide-list li strong {
    color: var(--azul);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }

    .guide-list {
        padding: 20px 20px 20px 40px;
    }
}

/* ========================================
   ESTILOS INSTRUMENTOS
   ======================================== */
.instrumentos-section {
    margin: 48px 0 32px 0;
}

.instrumentos-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--azul);
    font-weight: 700;
    text-align: center;
}

.instrumentos-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* ========================================
   2. GRIDS DE INSTRUMENTOS
   ======================================== */
.instrumentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 32px;
    margin: 0 auto 48px auto;
    max-width: 1400px;
}

/* ========================================
   3. CARDS DE INSTRUMENTOS
   ======================================== */
.instrumen-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    padding: 1.1rem 1.2rem 1.3rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #e3e3e3;
    min-height: 260px;
    transition: box-shadow 0.18s, transform 0.18s;
    position: relative;
}

.instrumen-card:hover {
    box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.13);
    transform: translateY(-3px) scale(1.012);
}

.instrumento-info {
    text-align: left;
    margin-bottom: 1.1rem;
}

.instrumento-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--azul);
    margin-bottom: 12px;
    line-height: 1.2;
}

.instrumento-info p {
    color: #4a5a6a;
    font-size: 1.05rem;
    margin-bottom: 18px;
    line-height: 1.5;
}

.cta-vermas {
    background: var(--azul);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 8px;
    box-shadow: 0 2px 8px 0 rgba(0, 43, 91, 0.07);
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

.cta-vermas:hover {
    background: var(--azul-osc);
    box-shadow: 0 4px 16px 0 rgba(0, 43, 91, 0.13);
    transform: translateY(-2px) scale(1.04);
}

.instrumento-img {
    width: 110px !important;
    height: auto !important;
}

.instrumento-img img {
    width: 110px !important;
    height: auto !important;
    max-height: 150px !important;
}

@media (max-width: 900px),
(max-width: 700px),
(max-width: 600px),
(max-width: 480px) {
    .instrumento-img {
        width: 75px !important;
        height: auto !important;
    }

    .instrumento-img img {
        width: 75px !important;
        height: auto !important;
        max-height: 100px !important;
    }
}

/* Separación visual entre el fondo azul y las cards de instrumentos */
.instrumentos-grid-section {
    margin-top: 38px;
}

@media (max-width: 700px) {
    .instrumentos-grid-section {
        margin-top: 22px;
    }
}

/* ========================================
   FIN DE ESTILOS - INGECO Z.S.
   ======================================== */

/* ========================================
   MODAL INSTRUMENTO
   ======================================== */
.modal-instrumento {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 34, 91, 0.18);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    min-height: 100vh;
    padding-top: 48px;
    padding-bottom: 48px;
}

.modal-instrumento.active {
    display: flex;
}

.modal-instrumento .modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px 0 rgba(0, 0, 0, 0.18);
    padding: 44px 38px 38px 38px;
    max-width: 600px;
    width: 95vw;
    margin: 56px auto;
    position: relative;
    transition: max-width 0.2s;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (min-width: 900px) {
    .modal-instrumento .modal-content {
        max-width: 720px;
        padding: 56px 54px 48px 54px;
        margin-top: 72px;
        margin-bottom: 72px;
    }
}

@media (max-width: 600px) {
    .modal-instrumento .modal-content {
        padding: 22px 7vw 18px 7vw;
        max-width: 98vw;
        margin: 24px auto;
    }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 2.7rem;
    color: var(--azul);
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    z-index: 10;
    padding: 0 12px;
    transition: color 0.2s, transform 0.15s;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--rojo);
    background: #f4f6fa;
    transform: scale(1.13);
}

@media (max-width: 600px) {
    .modal-close {
        top: 8px;
        right: 8px;
        font-size: 2.1rem;
    }
}

.modal-instrumento h2 {
    font-size: 1.45rem;
    color: var(--azul);
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-instrumento h3 {
    font-size: 1.08rem;
    color: #1a2a3a;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 10px;
}

.modal-instrumento .modal-desc {
    color: #4a5a6a;
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-table-wrapper {
    overflow-x: auto;
    margin: 18px 0 10px 0;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.06);
    padding: 10px 0 10px 0;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    background: transparent;
}

.modal-table th,
.modal-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e6ed;
    text-align: left;
}

.modal-table th {
    background: #f4f6fa;
    color: var(--azul);
    font-weight: 600;
    width: 180px;
}

.modal-table tr:last-child td,
.modal-table tr:last-child th {
    border-bottom: none;
}

.modal-footer-text {
    margin-top: 18px;
    font-size: 0.98rem;
    color: #4a5a6a;
}

/* ========================================
   2. ESTILOS ESPECÍFICOS PARA CADA INSTRUMENTO
   ======================================== */
.instrumento-modal-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.instrumento-modal-content h3 {
    font-size: 1.3rem;
    color: var(--azul);
    font-weight: 700;
    margin-bottom: 10px;
}

.instrumento-modal-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.instrumento-modal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.instrumento-modal-content ul li {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 5px;
}

.instrumento-modal-content .btn-primary {
    align-self: flex-start;
}

/* ========================================
   3. ANIMACIONES DEL MODAL
   ======================================== */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.modal-instrumento {
    animation: modalIn 0.4s ease-out;
}

.modal-instrumento.active {
    animation: modalOut 0.4s ease-out;
}

/* ========================================
   FIN DE ESTILOS MODAL
   ======================================== */

/* ========================================
   AJUSTE: CARD DE INSTRUMENTO VERTICAL (TÍTULO ARRIBA, TEXTO + IMAGEN, CTA ABAJO)
   ======================================== */
.instrumento-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 0 !important;
    padding: 38px 3vw 38px 3vw !important;
    /* Más aire exterior */
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.07);
    border: 1.5px solid #e0e6ed;
    min-height: 260px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.instrumento-card h2 {
    margin-bottom: 0 !important;
    /* Sin espacio extra debajo del título */
    font-size: 1.13rem !important;
}

.instrumento-content-row {
    display: flex;
    flex-direction: row;
    align-items: center !important;
    gap: 0 !important;
    /* Sin espacio entre texto e imagen */
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.instrumento-info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 !important;
    margin-bottom: 0 !important;
    flex: 1 1 0%;
    min-width: 0;
}

.instrumento-info p {
    font-size: 0.97rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
    color: #4a5a6a;
}

.instrumento-info p {
    font-size: 0.97rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
    color: #4a5a6a;
    min-height: 56px;
    /* Fuerza altura mínima para igualar cards */
}

.instrumento-card .cta-vermas {
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    margin-top: 0 !important;
    /* Sin espacio extra arriba del botón */
    padding: 10px 28px !important;
    font-size: 1.01rem !important;
    border-radius: 24px !important;
    background: linear-gradient(90deg, #002B5B 0%, #0056b3 100%) !important;
    box-shadow: 0 6px 24px 0 rgba(0, 43, 91, 0.13) !important;
    letter-spacing: 0.01em;
    transition: box-shadow 0.22s, background 0.22s, transform 0.18s;
}

@media (max-width: 700px) {
    .instrumento-card {
        padding: 28px 5vw 28px 5vw !important;
    }
}

@media (max-width: 480px) {
    .instrumento-card {
        padding: 22px 7vw 22px 7vw !important;
    }
}

/* ========================================
   FIN DE ESTILOS - INGECO Z.S.
   ======================================== */

/* ========================================
   MODAL INSTRUMENTO
   ======================================== */
.modal-instrumento {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 34, 91, 0.18);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    min-height: 100vh;
    padding-top: 48px;
    padding-bottom: 48px;
}

.modal-instrumento.active {
    display: flex;
}

.modal-instrumento .modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px 0 rgba(0, 0, 0, 0.18);
    padding: 44px 38px 38px 38px;
    max-width: 600px;
    width: 95vw;
    margin: 56px auto;
    position: relative;
    transition: max-width 0.2s;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (min-width: 900px) {
    .modal-instrumento .modal-content {
        max-width: 720px;
        padding: 56px 54px 48px 54px;
        margin-top: 72px;
        margin-bottom: 72px;
    }
}

@media (max-width: 600px) {
    .modal-instrumento .modal-content {
        padding: 22px 7vw 18px 7vw;
        max-width: 98vw;
        margin: 24px auto;
    }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 2.7rem;
    color: var(--azul);
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    z-index: 10;
    padding: 0 12px;
    transition: color 0.2s, transform 0.15s;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--rojo);
    background: #f4f6fa;
    transform: scale(1.13);
}

@media (max-width: 600px) {
    .modal-close {
        top: 8px;
        right: 8px;
        font-size: 2.1rem;
    }
}

.modal-instrumento h2 {
    font-size: 1.45rem;
    color: var(--azul);
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-instrumento h3 {
    font-size: 1.08rem;
    color: #1a2a3a;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 10px;
}

.modal-instrumento .modal-desc {
    color: #4a5a6a;
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-table-wrapper {
    overflow-x: auto;
    margin: 18px 0 10px 0;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.06);
    padding: 10px 0 10px 0;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    background: transparent;
}

.modal-table th,
.modal-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e6ed;
    text-align: left;
}

.modal-table th {
    background: #f4f6fa;
    color: var(--azul);
    font-weight: 600;
    width: 180px;
}

.modal-table tr:last-child td,
.modal-table tr:last-child th {
    border-bottom: none;
}

.modal-footer-text {
    margin-top: 18px;
    font-size: 0.98rem;
    color: #4a5a6a;
}

/* ========================================
   2. ESTILOS ESPECÍFICOS PARA CADA INSTRUMENTO
   ======================================== */
.instrumento-modal-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.instrumento-modal-content h3 {
    font-size: 1.3rem;
    color: var(--azul);
    font-weight: 700;
    margin-bottom: 10px;
}

.instrumento-modal-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.instrumento-modal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.instrumento-modal-content ul li {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 5px;
}

.instrumento-modal-content .btn-primary {
    align-self: flex-start;
}

/* ========================================
   3. ANIMACIONES DEL MODAL
   ======================================== */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.modal-instrumento {
    animation: modalIn 0.4s ease-out;
}

.modal-instrumento.active {
    animation: modalOut 0.4s ease-out;
}

/* ========================================
   FIN DE ESTILOS MODAL
   ======================================== */

/* ========================================
   AJUSTE: CARD DE INSTRUMENTO VERTICAL (TÍTULO ARRIBA, TEXTO + IMAGEN, CTA ABAJO)
   ======================================== */
.instrumento-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 0 !important;
    padding: 38px 3vw 38px 3vw !important;
    /* Más aire exterior */
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.07);
    border: 1.5px solid #e0e6ed;
    min-height: 260px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.instrumento-card h2 {
    margin-bottom: 0 !important;
    /* Sin espacio extra debajo del título */
    font-size: 1.13rem !important;
}

.instrumento-content-row {
    display: flex;
    flex-direction: row;
    align-items: center !important;
    gap: 0 !important;
    /* Sin espacio entre texto e imagen */
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.instrumento-info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 !important;
    margin-bottom: 0 !important;
    flex: 1 1 0%;
    min-width: 0;
}

.instrumento-info p {
    font-size: 0.97rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
    color: #4a5a6a;
}

.instrumento-card .cta-vermas {
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    margin-top: 0 !important;
    /* Sin espacio extra arriba del botón */
    padding: 10px 28px !important;
    font-size: 1.01rem !important;
    border-radius: 24px !important;
    background: linear-gradient(90deg, #002B5B 0%, #0056b3 100%) !important;
    box-shadow: 0 6px 24px 0 rgba(0, 43, 91, 0.13) !important;
    letter-spacing: 0.01em;
    transition: box-shadow 0.22s, background 0.22s, transform 0.18s;
}

@media (max-width: 700px) {
    .instrumento-card {
        padding: 28px 5vw 28px 5vw !important;
    }
}

@media (max-width: 480px) {
    .instrumento-card {
        padding: 22px 7vw 22px 7vw !important;
    }
}

/* ========================================
   FIN DE ESTILOS - INGECO Z.S.
   ======================================== */

/* ========================================
   MODAL INSTRUMENTO
   ======================================== */
.modal-instrumento {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 34, 91, 0.18);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    min-height: 100vh;
    padding-top: 48px;
    padding-bottom: 48px;
}

.modal-instrumento.active {
    display: flex;
}

.modal-instrumento .modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px 0 rgba(0, 0, 0, 0.18);
    padding: 44px 38px 38px 38px;
    max-width: 600px;
    width: 95vw;
    margin: 56px auto;
    position: relative;
    transition: max-width 0.2s;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (min-width: 900px) {
    .modal-instrumento .modal-content {
        max-width: 720px;
        padding: 56px 54px 48px 54px;
        margin-top: 72px;
        margin-bottom: 72px;
    }
}

@media (max-width: 600px) {
    .modal-instrumento .modal-content {
        padding: 22px 7vw 18px 7vw;
        max-width: 98vw;
        margin: 24px auto;
    }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 2.7rem;
    color: var(--azul);
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    z-index: 10;
    padding: 0 12px;
    transition: color 0.2s, transform 0.15s;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--rojo);
    background: #f4f6fa;
    transform: scale(1.13);
}

@media (max-width: 600px) {
    .modal-close {
        top: 8px;
        right: 8px;
        font-size: 2.1rem;
    }
}

.modal-instrumento h2 {
    font-size: 1.45rem;
    color: var(--azul);
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-instrumento h3 {
    font-size: 1.08rem;
    color: #1a2a3a;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 10px;
}

.modal-instrumento .modal-desc {
    color: #4a5a6a;
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-table-wrapper {
    overflow-x: auto;
    margin: 18px 0 10px 0;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.06);
    padding: 10px 0 10px 0;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    background: transparent;
}

.modal-table th,
.modal-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e6ed;
    text-align: left;
}

.modal-table th {
    background: #f4f6fa;
    color: var(--azul);
    font-weight: 600;
    width: 180px;
}

.modal-table tr:last-child td,
.modal-table tr:last-child th {
    border-bottom: none;
}

.modal-footer-text {
    margin-top: 18px;
    font-size: 0.98rem;
    color: #4a5a6a;
}

/* ========================================
   2. ESTILOS ESPECÍFICOS PARA CADA INSTRUMENTO
   ======================================== */
.instrumento-modal-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.instrumento-modal-content h3 {
    font-size: 1.3rem;
    color: var(--azul);
    font-weight: 700;
    margin-bottom: 10px;
}

.instrumento-modal-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.instrumento-modal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.instrumento-modal-content ul li {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 5px;
}

.instrumento-modal-content .btn-primary {
    align-self: flex-start;
}

/* ========================================
   3. ANIMACIONES DEL MODAL
   ======================================== */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.modal-instrumento {
    animation: modalIn 0.4s ease-out;
}

.modal-instrumento.active {
    animation: modalOut 0.4s ease-out;
}

/* ========================================
   FIN DE ESTILOS MODAL
   ======================================== */

/* ========================================
   AJUSTE: CARD DE INSTRUMENTO VERTICAL (TÍTULO ARRIBA, TEXTO + IMAGEN, CTA ABAJO)
   ======================================== */
.instrumento-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 0 !important;
    padding: 38px 3vw 38px 3vw !important;
    /* Más aire exterior */
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.07);
    border: 1.5px solid #e0e6ed;
    min-height: 260px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.instrumento-card h2 {
    margin-bottom: 0 !important;
    /* Sin espacio extra debajo del título */
    font-size: 1.13rem !important;
}

.instrumento-content-row {
    display: flex;
    flex-direction: row;
    align-items: center !important;
    gap: 0 !important;
    /* Sin espacio entre texto e imagen */
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.instrumento-info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 !important;
    margin-bottom: 0 !important;
    flex: 1 1 0%;
    min-width: 0;
}

.instrumento-info p {
    font-size: 0.97rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
    color: #4a5a6a;
}

.instrumento-card .cta-vermas {
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    margin-top: 0 !important;
    /* Sin espacio extra arriba del botón */
    padding: 10px 28px !important;
    font-size: 1.01rem !important;
    border-radius: 24px !important;
    background: linear-gradient(90deg, #002B5B 0%, #0056b3 100%) !important;
    box-shadow: 0 6px 24px 0 rgba(0, 43, 91, 0.13) !important;
    letter-spacing: 0.01em;
    transition: box-shadow 0.22s, background 0.22s, transform 0.18s;
}

@media (max-width: 700px) {
    .instrumento-card {
        padding: 28px 5vw 28px 5vw !important;
    }
}

@media (max-width: 480px) {
    .instrumento-card {
        padding: 22px 7vw 22px 7vw !important;
    }
}

/* ========================================
   FIN DE ESTILOS - INGECO Z.S.
   ======================================== */

/* ========================================
   SERVICIOS - CARDS SIN IMAGEN
   ======================================== */
.servicio-text-only {
    background: #fff;
    border: 1.5px solid #e0e6ed;
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.07);
    padding: 38px 3vw 38px 3vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    min-height: 180px;
    gap: 0.5rem;
}

.servicio-text-only h3 {
    color: var(--azul);
    font-size: 1.13rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.servicio-text-only p {
    color: #4a5a6a;
    font-size: 0.97rem;
    line-height: 1.45;
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .servicio-text-only {
        padding: 28px 5vw 28px 5vw;
    }
}

@media (max-width: 480px) {
    .servicio-text-only {
        padding: 22px 7vw 22px 7vw;
    }
}

/* ========================================
   FIN DE ESTILOS - INGECO Z.S.
   ======================================== */