/* CSS Consultas*/
        :root {
            --primary: #182F5C;
            --primary-light: #B02222;
            --secondary: #182F5C;
            --accent: #ff7b54;
            --light: #f8fafc;
            --dark: #2d3748;
            --light-blue: #B02222;
            --light-green: #B02222;
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Open Sans', sans-serif;
            background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
            color: var(--dark);
            line-height: 1.7;
            min-height: 100vh;
            padding: 0;
            position: relative;
            overflow-x: hidden;
        }

        /* Patrón de fondo sutil */
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 10% 20%, rgba(42, 125, 225, 0.03) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(0, 194, 162, 0.03) 0%, transparent 20%);
            z-index: -1;
        }

        /* Menú de navegación superior */
        .navbar {
            background: rgba(255, 255, 255, 0.95);
            color: var(--dark);
            padding: 15px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
            backdrop-filter: blur(10px);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary);
        }

        .logo i {
            color: var(--secondary);
            font-size: 2.2rem;
        }

        .nav-links {
            display: flex;
            gap: 30px;
        }

        .nav-links a {
            color: var(--dark);
            text-decoration: none;
            font-weight: 500;
            padding: 8px 15px;
            border-radius: 30px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-links a:hover, .nav-links a.active {
            background: rgba(42, 125, 225, 0.1);
            color: var(--primary);
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        header {
            text-align: center;
            padding: 80px 30px 50px;
            position: relative;
            overflow: hidden;
            margin-bottom: 50px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .header-content {
            max-width: 800px;
            position: relative;
            z-index: 2;
        }

        .logo-container {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 220px;
            height: 220px;
            background: white;
            border-radius: 50%;
            margin-bottom: 25px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            position: relative;
            z-index: 2;
            border: 3px solid var(--secondary);
        }

        .logo-container i {
            font-size: 4rem;
            color: var(--primary);
        }

        header h1 {
            font-family: 'Poppins', sans-serif;
            font-size: 3.5rem;
            margin-bottom: 20px;
            position: relative;
            letter-spacing: -0.5px;
            color: var(--primary);
            font-weight: 700;
        }

        .highlight {
            color: var(--secondary);
            position: relative;
            display: inline-block;
        }

        .highlight::after {
            content: "";
            position: absolute;
            bottom: 5px;
            left: 0;
            width: 100%;
            height: 12px;
            background: rgba(0, 194, 162, 0.2);
            z-index: -1;
            border-radius: 4px;
        }

        header p {
            font-size: 1.4rem;
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            font-weight: 400;
            color: var(--dark);
        }

        .stats-container {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 40px;
            flex-wrap: wrap;
            max-width: 1000px;
        }

        .stat-card {
            background: white;
            padding: 25px 30px;
            border-radius: 20px;
            text-align: center;
            min-width: 200px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
            border: 1px solid rgba(0, 0, 0, 0.03);
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(42, 125, 225, 0.1);
        }

        .stat-card .number {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--primary);
        }

        .stat-card .label {
            font-size: 1.1rem;
            color: var(--dark);
        }

        .main-content {
            display: flex;
            gap: 40px;
            margin-bottom: 70px;
            position: relative;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .especialidades-section {
            flex: 1;
            background: white;
            border-radius: 25px;
            padding: 35px 30px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
            position: relative;
            border: 1px solid rgba(0, 0, 0, 0.03);
        }

        .form-section {
            flex: 1;
            background: white;
            border-radius: 25px;
            padding: 35px 30px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
            position: relative;
            border: 1px solid rgba(0, 0, 0, 0.03);
        }

        .section-title {
            font-family: 'Poppins', sans-serif;
            font-size: 2.3rem;
            color: var(--primary);
            margin-bottom: 30px;
            padding-bottom: 15px;
            display: inline-block;
            position: relative;
            font-weight: 700;
        }

        .section-title::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 70px;
            height: 4px;
            background: var(--secondary);
            border-radius: 2px;
        }

        .section-title i {
            margin-right: 15px;
            color: var(--secondary);
        }

        .especialidades-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
            margin-top: 20px;
        }

        .especialidad-card {
            background: linear-gradient(to bottom, #ffffff, #f8fafc);
            border-radius: 20px;
            padding: 25px 20px;
            text-align: center;
            transition: var(--transition);
            cursor: pointer;
            border: 1px solid rgba(0, 0, 0, 0.03);
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
        }

        .especialidad-card:hover {
            transform: translateY(-7px);
            box-shadow: 0 15px 35px rgba(0, 194, 162, 0.15);
            background: linear-gradient(to bottom, #ffffff, var(--light-green));
        }

        .especialidad-card.selected {
            background: linear-gradient(to bottom, #ffffff, var(--light-green));
            box-shadow: 0 15px 35px rgba(0, 194, 162, 0.2);
        }

        .especialidad-card i {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 20px;
            transition: var(--transition);
        }

        .especialidad-card:hover i {
            transform: scale(1.1);
            color: var(--secondary);
        }

        .especialidad-card h3 {
            font-size: 1.5rem;
            color: var(--primary);
            margin-bottom: 12px;
            font-weight: 600;
        }

        .especialidad-card p {
            font-size: 1.05rem;
            color: var(--dark);
            line-height: 1.5;
        }

        .form-group {
            margin-bottom: 30px;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 12px;
            font-weight: 500;
            color: var(--dark);
            font-size: 1.15rem;
        }

        .form-group label i {
            margin-right: 12px;
            width: 24px;
            color: var(--secondary);
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 18px 20px 18px 60px;
            border: 2px solid #e1e5eb;
            border-radius: 15px;
            font-size: 1.1rem;
            transition: var(--transition);
            background-color: #f8fafc;
            font-family: 'Open Sans', sans-serif;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--secondary);
            outline: none;
            box-shadow: 0 0 0 4px rgba(0, 194, 162, 0.1);
            background-color: white;
        }

        .form-group::before {
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            left: 20px;
            top: 52px;
            color: var(--primary);
            font-size: 1.3rem;
        }

        .form-group.nombre::before { content: "\f007"; }
        .form-group.telefono::before { content: "\f095"; }
        .form-group.email::before { content: "\f0e0"; }
        .form-group.fecha::before { content: "\f073"; }
        .form-group.hora::before { content: "\f017"; }
        .form-group.mensaje::before { content: "\f27a"; }

        .btn {
            display: inline-block;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            color: white;
            padding: 20px 40px;
            border: none;
            border-radius: 15px;
            font-size: 1.25rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            width: 100%;
            text-align: center;
            box-shadow: 0 10px 25px rgba(42, 125, 225, 0.3);
            position: relative;
            overflow: hidden;
            font-family: 'Poppins', sans-serif;
            letter-spacing: 0.5px;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(42, 125, 225, 0.4);
        }

        .btn i {
            margin-right: 12px;
        }

        .confirmation {
            text-align: center;
            padding: 70px 50px;
            background: white;
            border-radius: 25px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.05);
            margin: 40px auto;
            max-width: 900px;
            display: none;
            animation: fadeIn 0.8s ease;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, 0.03);
        }

        .confirmation::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 8px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            border-radius: 4px 4px 0 0;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .confirmation i {
            font-size: 6rem;
            color: var(--secondary);
            margin-bottom: 30px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.08); }
            100% { transform: scale(1); }
        }

        .confirmation h2 {
            font-family: 'Poppins', sans-serif;
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 25px;
            font-weight: 700;
        }

        .confirmation p {
            font-size: 1.25rem;
            margin-bottom: 15px;
            color: var(--dark);
            max-width: 750px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.8;
        }

        .whatsapp-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #25D366;
            color: white;
            padding: 20px 45px;
            border-radius: 15px;
            font-size: 1.4rem;
            font-weight: 600;
            text-decoration: none;
            margin-top: 30px;
            transition: var(--transition);
            box-shadow: 0 10px 25px rgba(37, 211, 102, 0.2);
            font-family: 'Poppins', sans-serif;
        }

        .whatsapp-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
        }

        .whatsapp-btn i {
            font-size: 2.3rem;
            margin-right: 15px;
            color: white;
        }

        .back-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: white;
            color: var(--primary);
            padding: 18px 40px;
            border-radius: 15px;
            font-size: 1.25rem;
            font-weight: 600;
            text-decoration: none;
            margin: 25px 15px 0;
            transition: var(--transition);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
            border: 2px solid var(--primary);
            font-family: 'Poppins', sans-serif;
        }

        .back-btn:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 12px 25px rgba(42, 125, 225, 0.2);
        }

        .back-btn i {
            margin-right: 10px;
        }

        footer {
            text-align: center;
            padding: 60px 30px;
            color: var(--dark);
            margin-top: 70px;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            font-size: 1.1rem;
            background: white;
            border-radius: 30px 30px 0 0;
        }

        .footer-content {
            max-width: 1000px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            text-align: left;
        }

        .footer-column h3 {
            color: var(--primary);
            margin-bottom: 20px;
            font-size: 1.4rem;
            font-family: 'Poppins', sans-serif;
        }

        .footer-column p, .footer-column li {
            margin-bottom: 15px;
            line-height: 1.7;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }

        .footer-column ul li i {
            color: var(--secondary);
            min-width: 25px;
        }

        .copyright {
            margin-top: 40px;
            padding-top: 25px;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            color: var(--dark);
            font-size: 1rem;
        }

        .data-summary {
            background: linear-gradient(to right, rgba(227, 242, 255, 0.3), rgba(230, 247, 244, 0.3));
            padding: 30px;
            border-radius: 20px;
            margin-top: 30px;
            display: none;
            border: 1px solid rgba(0, 0, 0, 0.03);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
        }

        .data-summary h3 {
            color: var(--primary);
            margin-bottom: 25px;
            font-size: 1.6rem;
            font-family: 'Poppins', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .data-summary h3 i {
            margin-right: 15px;
            color: var(--secondary);
        }

        .summary-item {
            display: flex;
            margin-bottom: 18px;
            padding-bottom: 18px;
            border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
        }

        .summary-label {
            font-weight: 600;
            width: 180px;
            color: var(--primary);
            font-size: 1.15rem;
        }

        .summary-value {
            flex: 1;
            color: var(--dark);
            font-size: 1.15rem;
        }

        .loader {
            display: none;
            text-align: center;
            padding: 40px;
        }

        .loader i {
            font-size: 4rem;
            color: var(--primary);
            animation: spin 1.2s linear infinite;
            margin-bottom: 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loader p {
            font-size: 1.3rem;
            color: var(--primary);
            font-weight: 500;
        }

        .whatsapp-preview {
            background: #f0f7ff;
            border-radius: 20px;
            padding: 30px;
            margin: 40px auto;
            max-width: 800px;
            border: 1px solid rgba(0, 0, 0, 0.03);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
        }

        .whatsapp-preview h3 {
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1.8rem;
            margin-bottom: 25px;
            gap: 15px;
        }

        .whatsapp-message {
            background: white;
            border-radius: 15px;
            padding: 30px;
            text-align: left;
            font-size: 1.2rem;
            line-height: 1.8;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
            border-left: 5px solid var(--secondary);
        }

        .whatsapp-message strong {
            color: var(--primary);
        }

        @media (max-width: 1200px) {
            .main-content {
                flex-direction: column;
            }
            
            header h1 {
                font-size: 3rem;
            }
            
            .especialidades-container {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
        }

        @media (max-width: 992px) {
            .navbar {
                flex-direction: column;
                gap: 20px;
                padding: 20px;
            }
            
            .nav-links {
                flex-wrap: wrap;
                justify-content: center;
            }
        }

        @media (max-width: 768px) {
            header {
                padding: 60px 20px 40px;
            }
            
            header h1 {
                font-size: 2.5rem;
            }
            
            .section-title {
                font-size: 2rem;
            }
            
            .confirmation h2 {
                font-size: 2.5rem;
            }
            
            .stats-container {
                gap: 20px;
            }
            
            .stat-card {
                min-width: 150px;
                padding: 15px 20px;
            }
        }

        @media (max-width: 576px) {
            body {
                padding: 0;
            }
            
            header h1 {
                font-size: 2.2rem;
            }
            
            header p {
                font-size: 1.2rem;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
            
            .especialidades-container {
                grid-template-columns: 1fr;
            }
            
            .whatsapp-btn, .back-btn {
                width: 100%;
                margin-top: 20px;
                font-size: 1.2rem;
            }
            
            .confirmation {
                padding: 40px 20px;
            }
            
            .confirmation h2 {
                font-size: 2rem;
            }
            
            .logo-container {
                width: 100px;
                height: 100px;
            }
            
            .logo-container i {
                font-size: 3rem;
            }
        }
        
        /* Diseño de onda decorativa */
        .wave-container {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            overflow: hidden;
            line-height: 0;
            z-index: -1;
        }

        .wave-container svg {
            position: relative;
            display: block;
            width: calc(100% + 1.3px);
            height: 150px;
        }

        .wave-container .shape-fill {
            fill: rgba(42, 125, 225, 0.1);
        }


                     .emergency-badge {
            position: fixed;
            bottom: 25px;
            left: 25px; /* Cambiado de right a left */
            
            padding: 15px 25px;
            border-radius: 50px;
            box-shadow: 0 5px 25px rgba(21, 1, 202, 0);
            font-family: 'Montserrat', sans-serif;
            text-align: center;
            z-index: 10000;
            animation: pulse 5s infinite;
        }

        .emergency-icon {
            color: #ff0000;
            font-size: 28px;
            margin-bottom: 5px;
            animation: shake 0.8s infinite alternate;
        }

        .emergency-title {
            font-size: 14px;
            font-weight: 700;
            background-color: #182F5C;
            color: #ffffff;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 3px;
        }

        .emergency-number {
            font-size: 24px;
            font-weight: 800;
            color: #B02222;
            letter-spacing: 1px;
        }


        @keyframes pulse {
            0% { transform: scale(1); box-shadow: 0 5px 15px rgba(255, 0, 0, 0); }
            50% { transform: scale(1.02); box-shadow: 0 5px 25px rgba(255, 0, 0, 0); }
            100% { transform: scale(1); box-shadow: 0 5px 15px rgba(255, 0, 0, 0); }
        }

        @keyframes shake {
            0% { transform: rotate(-5deg); }
            100% { transform: rotate(5deg); }
        }

