/* Variables CSS para PREP.html - Paleta Médica Profesional */
:root {
    --primary-color: #1B4D8C;         /* Azul médico profesional */
    --primary-light: #4A90E2;         /* Azul claro médico */
    --primary-dark: #0D2A5C;          /* Azul marino oscuro */
    --secondary-color: #2C5282;       /* Azul gris profesional */
    --secondary-light: #63B3ED;       /* Azul suave */
    --secondary-dark: #1A365D;        /* Azul corporativo */
    --white: #ffffff;
    --off-white: #FAFAFA;             /* Blanco ligeramente gris */
    --light-gray: #F7FAFC;            /* Gris muy claro */
    --glass-bg: rgba(255, 255, 255, 0.95);     /* Fondo glass profesional */
    --glass-border: rgba(27, 77, 140, 0.15);   /* Borde azul sutil */
    --text-dark: #2D3748;             /* Texto principal oscuro */
    --text-light: #718096;            /* Texto secundario */
    --text-medium: #4A5568;           /* Texto medio */
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    --gradient-background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 50%, #E2E8F0 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    --font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Estilos específicos adicionales para PREP.html */
.prep-main-content {
            padding: 2rem 0;
            min-height: calc(100vh - 150px);
        }

        .prep-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .prep-hero {
            text-align: center;
            padding: 4rem 0;
            background: var(--gradient-primary);
            color: var(--white);
            margin-bottom: 3rem;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            box-shadow: 0 8px 32px var(--shadow-medium);
        }

        .prep-hero h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            font-weight: 700;
            color: var(--white);
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .prep-hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            opacity: 0.95;
            color: var(--off-white);
        }

        .prep-buttons {
            display: flex;
            gap: 2rem;
            justify-content: center;
            margin: 3rem 0;
            flex-wrap: wrap;
        }

        .prep-btn {
            padding: 1rem 2rem;
            font-size: 1.1rem;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            min-width: 200px;
            text-align: center;
        }

        .prep-btn-primary {
            background: var(--gradient-secondary);
            color: var(--white);
            border: none;
            box-shadow: 0 4px 15px var(--shadow-light);
        }

        .prep-btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px var(--shadow-medium);
        }

        .prep-btn-secondary {
            background: var(--white);
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
            box-shadow: 0 4px 15px var(--shadow-light);
        }

        .prep-btn-secondary:hover {
            background: var(--primary-color);
            color: var(--white);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px var(--shadow-medium);
        }

        .prep-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
        }

        .prep-info-card {
            background: var(--white);
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 8px 32px var(--shadow-light);
            border-left: 4px solid var(--primary-color);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            background: var(--glass-bg);
        }

        .prep-info-card h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
            font-size: 1.3rem;
            font-weight: 600;
        }

        .prep-info-card ul {
            list-style-type: none;
            padding: 0;
        }

        .prep-info-card li {
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--light-blue);
            color: var(--text-dark);
        }

        .prep-info-card li:last-child {
            border-bottom: none;
        }

        .prep-info-card li:before {
            content: "✓";
            color: var(--primary-color);
            font-weight: bold;
            margin-right: 0.5rem;
        }

        /* Botones flotantes de redes sociales */
        .social-floating {
            position: fixed;
            right: 20px;
            bottom: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 1000;
        }

        .social-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: var(--white);
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px var(--shadow-light);
            backdrop-filter: blur(10px);
        }

        .social-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 25px var(--shadow-medium);
        }

        .social-btn svg {
            transition: transform 0.3s ease;
        }

        .social-btn:hover svg {
            transform: scale(1.1);
        }

        .social-linkedin {
            background: var(--gradient-secondary);
        }

        .social-facebook {
            background: var(--gradient-primary);
        }

        .social-instagram {
            background: linear-gradient(45deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-light) 100%);
        }

        .social-whatsapp {
            background: linear-gradient(135deg, #25d366 0%, var(--primary-color) 100%);
        }

        /* ===== ESTILOS PARA LA NUEVA TARJETA MDM ===== */

        /* Contenedor principal de la tarjeta */
        .tarjeta-frente {
            width: 100%;
            max-width: 400px;
            height: 250px;
            background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
            border-radius: 15px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
            font-family: 'Arial', sans-serif;
            display: flex;
            flex-direction: column;
            margin: 20px auto;
        }

        /* Header de la tarjeta (fondo marrón) */
        .tarjeta-header-new {
            background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
            padding: 8px 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            height: 50px;
            position: relative;
        }

        /* Logo MDM con engranaje en el header */
        .logo-mdm-header {
            flex-shrink: 0;
        }

        .gear-logo {
            width: 35px;
            height: 35px;
            position: relative;
        }

        .gear-teeth {
            width: 100%;
            height: 100%;
            background: #4169E1;
            clip-path: polygon(
                50% 0%, 60% 10%, 90% 10%, 90% 40%, 100% 50%, 
                90% 60%, 90% 90%, 60% 90%, 50% 100%, 40% 90%, 
                10% 90%, 10% 60%, 0% 50%, 10% 40%, 10% 10%, 40% 10%
            );
            position: relative;
        }

        .gear-center {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 24px;
            height: 16px;
            background: #FFD700;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .flag-left, .flag-right {
            position: absolute;
            width: 6px;
            height: 16px;
            top: 0;
        }

        .flag-left {
            left: 0;
            background: linear-gradient(to bottom, #74ACDF 50%, white 50%);
        }

        .flag-right {
            right: 0;
            background: linear-gradient(to bottom, #74ACDF 50%, white 50%);
        }

        .mdm-circle {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 12px;
            height: 12px;
            background: #FFD700;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
        }

        .mdm-letters {
            font-size: 4px;
            font-weight: bold;
            color: #4169E1;
            text-align: center;
            line-height: 1;
        }

        /* Títulos del header */
        .header-title {
            flex: 1;
            color: white;
        }

        .header-title h1 {
            font-size: 14px;
            font-weight: bold;
            margin: 0;
            line-height: 1.1;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        .header-title h2 {
            font-size: 11px;
            font-weight: normal;
            margin: 2px 0 0 0;
            line-height: 1;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        /* Contenido principal (fondo amarillo) */
        .tarjeta-main-content {
            flex: 1;
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
            display: flex;
            position: relative;
            overflow: hidden;
        }

        /* Campos de información */
        .info-fields {
            flex: 1;
            padding: 15px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .field-row {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .field-label {
            font-size: 9px;
            font-weight: bold;
            color: #000;
            text-transform: uppercase;
        }

        .field-value {
            font-size: 11px;
            font-weight: bold;
            color: #000;
            min-height: 12px;
            background: rgba(255, 255, 255, 0.3);
            padding: 2px 4px;
            border-radius: 3px;
        }

        /* Logo decorativo grande */
        .decorative-logo {
            position: absolute;
            right: -10px;
            bottom: -10px;
            width: 80px;
            height: 80px;
            opacity: 0.8;
        }

        .large-gear-logo {
            width: 100%;
            height: 100%;
            position: relative;
        }

        .large-gear-teeth {
            width: 100%;
            height: 100%;
            background: #4169E1;
            clip-path: polygon(
                50% 0%, 60% 10%, 90% 10%, 90% 40%, 100% 50%, 
                90% 60%, 90% 90%, 60% 90%, 50% 100%, 40% 90%, 
                10% 90%, 10% 60%, 0% 50%, 10% 40%, 10% 10%, 40% 10%
            );
            position: relative;
        }

        .large-gear-center {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 50px;
            height: 50px;
            background: #FFD700;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 3px solid #4169E1;
        }

        .large-mdm-text {
            font-size: 14px;
            font-weight: bold;
            color: #4169E1;
            text-align: center;
        }

        /* Footer de la tarjeta */
        .tarjeta-footer-new {
            background: #4169E1;
            color: white;
            padding: 4px 8px;
            font-size: 6px;
            text-align: center;
            line-height: 1.2;
        }

        .tarjeta-footer-new p {
            margin: 0;
            font-weight: normal;
        }

        /* Estilos para el contenedor de tarjetas */
        .tarjetas-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        /* ===== ESTILOS ESPECÍFICOS PARA PREP.HTML ===== */

        /* Secciones principales */
        .section {
            padding: 4rem 0;
        }

        .section h2 {
            font-size: 2.5rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 2rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            color: var(--primary-color); /* Fallback */
        }

        .section-subtitle {
            text-align: center;
            font-size: 1.2rem;
            color: var(--text-medium);
            margin-bottom: 3rem;
            font-weight: 400;
        }

        /* Grid de especialidades */
        .specialties-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin: 2rem 0;
        }

        .specialty-card {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            padding: 0;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 8px 32px var(--shadow-light);
            overflow: hidden;
        }

        .specialty-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 45px var(--shadow-medium);
        }

        /* Nueva imagen superior para especialidades */
        .specialty-image {
            width: 100%;
            height: 180px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            margin-bottom: 1rem;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        /* Contenido de la tarjeta con padding */
        .specialty-content {
            padding: 1.5rem;
        }

        /* Iconos específicos para especialidades médicas usando nth-child */
        .specialty-card:nth-child(1) .specialty-image {
            background-image: url('../images/cardiologia.jpg');
            height: 200px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .specialty-card:nth-child(2) .specialty-image {
            background-image: url('../images/neurologia.jpg');
            height: 200px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .specialty-card:nth-child(3) .specialty-image {
            background-image: url('../images/Traumatologia.png');
            height: 200px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .specialty-card:nth-child(4) .specialty-image {
            background-image: url('../images/Oftalmologia.png');
            height: 200px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .specialty-card:nth-child(5) .specialty-image {
            background-image: url('../images/Medicina-Interna.png');
            height: 200px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .specialty-card:nth-child(6) .specialty-image {
            background-image: url('../images/Pediatria.png');
            height: 200px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .specialty-icon:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 25px var(--shadow-medium);
        }

        .specialty-card h3 {
            color: var(--primary-color);
            font-size: 1.5rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .specialty-services {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: center;
            margin-top: 1rem;
        }

        .specialty-services li {
            background: var(--light-blue);
            color: var(--text-dark);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            list-style: none;
            border: 1px solid var(--primary-light);
        }

        /* Grid de servicios */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin: 2rem 0;
        }

        .service-card {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 8px 32px var(--shadow-light);
        }

        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 45px var(--shadow-medium);
        }

        .service-header {
            background: var(--gradient-primary);
            color: var(--white);
            padding: 0;
            text-align: center;
            border-bottom: 1px solid var(--glass-border);
            position: relative;
        }

        /* Nueva imagen superior para servicios */
        .service-image {
            width: 100%;
            height: 25px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        /* Título del servicio con padding */
        .service-title {
            padding: 1rem 1.5rem;
        }

        /* Iconos específicos para servicios médicos */
        .service-card:nth-child(1) .service-image {
            background-image: url('../images/Hemodinamia.png');
            height: 200px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .service-card:nth-child(2) .service-image {
            background-image: url('../images/Laboratorio.png');
            height: 200px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .service-card:nth-child(3) .service-image {
            background-image: url('../images/Diagnostico-por-imagen.png');
            height: 200px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .service-card:nth-child(4) .service-image {
            background-image: url('../images/quirofano.png');
            height: 200px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .service-card:nth-child(5) .service-image {
            background-image: url('../images/hemoterapia.png');
            height: 200px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .service-card:nth-child(6) .service-image {
            background-image: url('../images/terapia-intensiva.png');
            height: 200px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .service-icon:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 25px var(--shadow-medium);
        }

        .service-header h3, .specialty-card h3 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--white);
            margin: 0;
        }

        .specialty-content h3 {
            color: var(--primary-color);
            font-size: 1.5rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .card-content {
            padding: 1.5rem;
        }

        .card-content p {
            color: var(--text-dark);
            margin-bottom: 1rem;
            line-height: 1.6;
        }

        .service-features {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .feature-tag {
            background: var(--light-blue);
            color: var(--text-dark);
            padding: 0.3rem 0.8rem;
            border-radius: 15px;
            font-size: 0.85rem;
            border: 1px solid var(--primary-light);
        }

        /* Grid de convenios */
        .coverage-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin: 2rem 0;
        }

        .coverage-card {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            padding: 2rem;
            transition: all 0.3s ease;
            box-shadow: 0 8px 32px var(--shadow-light);
        }

        .coverage-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px var(--shadow-medium);
        }

        .coverage-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .coverage-header h3 {
            color: var(--primary-color);
            font-size: 1.4rem;
            font-weight: 600;
        }

        .coverage-status {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .status-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--primary-color);
            box-shadow: 0 0 10px var(--primary-light);
        }

        .status-indicator.partial {
            background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
            animation: pulse-partial 2s infinite;
        }

        @keyframes pulse-partial {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .status-text {
            font-size: 0.9rem;
            color: var(--text-medium);
            font-weight: 500;
        }

        .coverage-details p {
            color: var(--text-dark);
            margin-bottom: 0.8rem;
            line-height: 1.5;
        }

        .coverage-services {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .service-tag {
            background: var(--light-blue);
            color: var(--text-dark);
            padding: 0.3rem 0.8rem;
            border-radius: 15px;
            font-size: 0.85rem;
            border: 1px solid var(--primary-light);
        }

        .coverage-note {
            margin-top: 2rem;
            padding: 1.5rem;
            background: var(--light-blue);
            border-radius: 10px;
            border-left: 4px solid var(--primary-color);
        }

        .coverage-note p {
            color: var(--text-dark);
            font-style: italic;
            margin: 0;
        }

        /* Información institucional */
        .institutional-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            margin: 2rem 0;
        }

        .institutional-text h3,
        .institutional-values h3 {
            color: var(--primary-color);
            font-size: 1.5rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .values-list {
            list-style: none;
            padding: 0;
        }

        .values-list li {
            padding: 1rem 0;
            border-bottom: 1px solid var(--light-blue);
            color: var(--text-dark);
        }

        .values-list li:last-child {
            border-bottom: none;
        }

        /* Ubicación */
        .location-content {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 3rem;
            margin: 2rem 0;
        }

        .location-info {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .address-card,
        .transport-card,
        .parking-card {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: 10px;
            padding: 1.5rem;
            box-shadow: 0 4px 15px var(--shadow-light);
        }

        .address-card h3,
        .transport-card h3,
        .parking-card h3 {
            color: var(--primary-color);
            font-size: 1.2rem;
            margin-bottom: 0.8rem;
            font-weight: 600;
        }

        .transport-card ul {
            list-style: none;
            padding: 0;
        }

        .transport-card li {
            padding: 0.3rem 0;
            color: var(--text-dark);
        }

        /* Nueva disposición de la sección de ubicación */
        .location-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .location-card {
            padding: 2rem;
            text-align: left;
            transition: all 0.3s ease;
        }

        .location-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px var(--shadow-medium);
        }

        .location-card h3 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            color: var(--primary-color);
        }

        .location-card p {
            font-size: 1.1rem;
            line-height: 1.6;
            color: var(--text-medium);
            margin-bottom: 0.5rem;
        }

        .location-card ul {
            list-style: none;
            padding-left: 0;
        }

        .location-card ul li {
            font-size: 1rem;
            line-height: 1.6;
            color: var(--text-medium);
            margin-bottom: 0.5rem;
            padding-left: 1rem;
            position: relative;
        }

        .location-card ul li::before {
            content: '•';
            color: var(--primary-color);
            font-weight: bold;
            position: absolute;
            left: 0;
        }

        .location-card ul li strong {
            color: var(--primary-color);
            font-weight: 600;
        }

        /* Contacto */
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin: 2rem 0;
        }

        .contact-card {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            padding: 2.5rem 2rem;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 8px 32px var(--shadow-light);
            min-height: 280px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .contact-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px var(--shadow-medium);
        }

        .contact-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            filter: sepia(1) hue-rotate(170deg) saturate(150%);
        }

        .contact-card h3 {
            color: var(--primary-color);
            font-size: 1.3rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .contact-info p {
            color: var(--text-dark);
            margin-bottom: 0.8rem;
            line-height: 1.6;
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .contact-info a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
        }

        .contact-info a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .emergency-card {
            border: 2px solid var(--secondary-color);
            background: linear-gradient(135deg, var(--glass-bg), rgba(30, 144, 255, 0.1));
        }

        .emergency-text {
            color: var(--secondary-color);
            font-weight: 600;
        }

        .additional-contact {
            margin-top: 2rem;
        }

        .additional-contact .glass-container {
            padding: 2rem;
            text-align: center;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            box-shadow: 0 8px 32px var(--shadow-light);
            transition: all 0.3s ease;
        }

        .additional-contact .glass-container:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px var(--shadow-medium);
        }

        .additional-contact h3 {
            color: var(--primary-color);
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            font-weight: 600;
        }

        .social-contact p {
            color: var(--text-dark);
            margin-bottom: 1rem;
            font-size: 1rem;
            line-height: 1.6;
        }

        .social-contact a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
        }

        .social-contact a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 1.5rem;
            flex-wrap: wrap;
        }

        .social-link {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.8rem 1.5rem;
            background: var(--white);
            border: 2px solid var(--primary-light);
            border-radius: 25px;
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .social-link:hover {
            background: var(--primary-color);
            color: var(--white);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .social-icon {
            font-size: 1.2rem;
        }

        .social-link.facebook:hover {
            background: #1877f2;
            border-color: #1877f2;
        }

        .social-link.instagram:hover {
            background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
            border-color: #e6683c;
        }

        .social-link.twitter:hover {
            background: #1da1f2;
            border-color: #1da1f2;
        }

        /* Footer */
        .footer-content {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .footer-main {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 2rem;
            align-items: start;
        }

        .footer-title h3 {
            color: var(--primary-color);
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .footer-title p {
            color: var(--text-medium);
            font-size: 0.9rem;
        }

        .footer-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
        }

        .footer-section h4 {
            color: var(--primary-color);
            font-size: 1rem;
            margin-bottom: 0.8rem;
            font-weight: 600;
        }

        .footer-section p {
            color: var(--text-dark);
            font-size: 0.9rem;
            margin-bottom: 0.3rem;
        }

        .footer-bottom {
            display: flex;
            justify-content: center;
        }

        /* ===== ESTILOS PARA EL TÍTULO DE LA SECCIÓN DE REDES SOCIALES ===== */
        #redes-sociales h2 {
            position: relative;
            color: var(--primary-color);
            font-weight: 700;
            font-size: 2.5rem;
            margin-bottom: 1rem;
            text-align: center;
        }

        #redes-sociales h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
            border-radius: 2px;
        }

        #redes-sociales .section-subtitle {
            color: var(--text-medium);
            font-size: 1.2rem;
            font-weight: 400;
            text-align: center;
            margin-bottom: 2rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
        }

        /* ===== ESTILOS PARA SECCIÓN DE REDES SOCIALES PROFESIONAL ===== */
        .social-section {
            padding: 2rem 0;
            text-align: left;
        }

        .social-intro {
            max-width: 700px;
            margin: 0 auto 3rem auto;
        }

        .social-intro p {
            color: var(--text-medium);
            font-size: 1.1rem;
            line-height: 1.7;
            margin-bottom: 1rem;
        }

        .social-links-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            max-width: 1000px;
            margin: 0 auto;
        }

        .social-link-pro {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            padding: 1.8rem;
            background: var(--white);
            border: 2px solid var(--glass-border);
            border-radius: 20px;
            text-decoration: none;
            color: var(--text-dark);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
            min-height: 100px;
        }

        .social-link-pro::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.5s ease;
        }

        .social-link-pro:hover::before {
            left: 100%;
        }

        .social-link-pro:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
            border-color: var(--primary-light);
        }

        .social-icon-wrapper {
            flex-shrink: 0;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--light-gray);
            transition: all 0.3s ease;
        }

        .social-svg {
            width: 28px;
            height: 28px;
            transition: all 0.3s ease;
        }

        .social-content {
            text-align: left;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 50px;
            gap: 0.2rem;
        }

        .social-content h4 {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--text-dark);
            margin: 0;
            transition: color 0.3s ease;
            line-height: 1.1;
        }

        .social-content p {
            font-size: 0.95rem;
            color: var(--text-light);
            margin: 0;
            line-height: 1.3;
            font-weight: 400;
            opacity: 0.9;
        }

        /* Estilos específicos para cada red social */
        .social-link-pro.facebook:hover {
            border-color: #1877f2;
        }

        .social-link-pro.facebook:hover .social-icon-wrapper {
            background: #1877f2;
            color: white;
        }

        .social-link-pro.facebook:hover .social-content h4 {
            color: #1877f2;
        }

        .social-link-pro.instagram:hover {
            border-color: #E4405F;
        }

        .social-link-pro.instagram:hover .social-icon-wrapper {
            background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
            color: white;
        }

        .social-link-pro.instagram:hover .social-content h4 {
            color: #E4405F;
        }

        .social-link-pro.linkedin:hover {
            border-color: #0077B5;
        }

        .social-link-pro.linkedin:hover .social-icon-wrapper {
            background: #0077B5;
            color: white;
        }

        .social-link-pro.linkedin:hover .social-content h4 {
            color: #0077B5;
        }

        /* Responsive design para redes sociales */
        @media (max-width: 768px) {
            .social-links-container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .social-link-pro {
                padding: 1.5rem;
                gap: 1rem;
                min-height: 100px;
            }

            .social-icon-wrapper {
                width: 50px;
                height: 50px;
            }

            .social-svg {
                width: 24px;
                height: 24px;
            }

            .social-content h4 {
                font-size: 1.3rem;
            }

            .social-content p {
                font-size: 0.95rem;
            }

            .social-intro {
                margin-bottom: 2rem;
            }

            .social-intro p {
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            .social-link-pro {
                flex-direction: column;
                text-align: center;
                padding: 2rem 1.5rem;
                min-height: 160px;
                gap: 1rem;
            }

            .social-content {
                text-align: center;
                min-height: auto;
            }

            .social-content h4 {
                font-size: 1.2rem;
                margin-bottom: 0.5rem;
            }

            .social-content p {
                font-size: 0.9rem;
                line-height: 1.3;
            }

            .social-icon-wrapper {
                width: 60px;
                height: 60px;
            }

            .social-svg {
                width: 28px;
                height: 28px;
            }
        }

        /* ===== FIN ESTILOS REDES SOCIALES PROFESIONAL ===== */

        /* ===== RESPONSIVE DESIGN ===== */
        @media (max-width: 1024px) {
            .institutional-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .location-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .footer-main {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .section h2 {
                font-size: 2rem;
            }
            
            .specialties-grid,
            .services-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .coverage-grid,
            .contact-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .contact-card {
                min-height: auto;
                padding: 2rem 1.5rem;
            }
            
            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .section {
                padding: 2rem 0;
            }
            
            .section h2 {
                font-size: 1.8rem;
            }
            
            .specialty-card,
            .service-card,
            .coverage-card,
            .contact-card {
                padding: 1.5rem;
            }
            
            .service-header {
                padding: 1rem;
            }
            
            .contact-icon {
                font-size: 2rem;
            }
        }

        /* Efecto adicional para la sección completa */
        #redes-sociales .glass-container {
            position: relative;
            overflow: hidden;
        }

        #redes_sociales .glass-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        /* Mejora en la estructura de la grid */
        .social-links-container {
            position: relative;
            z-index: 1;
        }

        /* Efecto de pulsación suave en los iconos */
        .social-link-pro .social-svg {
            animation: pulse-soft 2s infinite ease-in-out;
        }

        .social-link-pro:hover .social-svg {
            animation: none;
            transform: scale(1.1);
        }

        @keyframes pulse-soft {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        /* Estado activo mejorado */
        .social-link-pro:active {
            transform: translateY(-6px) scale(0.98);
        }