/* Estilos personalizados para Mundial Electrónicos */

/* Animaciones suaves */
* {
    transition: all 0.3s ease;
}

/* Efectos hover personalizados */
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Gradientes personalizados */
.gradient-mundial {
    background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
}

/* Efectos de texto */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Botones personalizados */
.btn-mundial {
    background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
    transition: all 0.3s ease;
}

.btn-mundial:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Cards con efecto glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Efectos de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Estilos para el formulario */
.form-input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Efectos de loading */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Responsive optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Efectos de partículas de fondo (opcional) */
.particles-bg {
    position: relative;
    overflow: hidden;
}

.particles-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(31, 41, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Estilos para el menú móvil */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

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

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

/* Efectos de hover para iconos */
.icon-hover:hover {
    transform: scale(1.1);
    color: #1e40af;
}

/* Estilos para las tarjetas de servicios */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: #1e40af;
    transform: translateY(-5px);
}

/* Efectos de texto animado */
.animate-text {
    background: linear-gradient(45deg, #ffffff, #1e40af, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    filter: drop-shadow(0 0 2px rgba(30, 64, 175, 0.8));
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Animaciones para iconos flotantes */
.floating-icon {
    animation: floatInOut 8s ease-in-out infinite;
    transform: translateY(0) scale(1);
    transition: all 0.3s ease;
}

.floating-icon:hover {
    transform: translateY(-10px) scale(1.1);
    opacity: 0.8 !important;
}

@keyframes floatInOut {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

    20% {
        opacity: 0.2;
        transform: translateY(0) scale(1);
    }

    80% {
        opacity: 0.2;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
}

/* Animación de rotación sutil */
.floating-icon i {
    animation: subtleRotate 6s ease-in-out infinite;
}

@keyframes subtleRotate {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

/* Efecto de pulso para iconos principales */
.floating-icon:nth-child(1) i,
.floating-icon:nth-child(2) i {
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Animación de deslizamiento lateral */
.floating-icon:nth-child(odd) {
    animation: slideInOut 10s ease-in-out infinite;
}

@keyframes slideInOut {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.8);
    }

    20% {
        opacity: 0.2;
        transform: translateX(0) scale(1);
    }

    80% {
        opacity: 0.2;
        transform: translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(50px) scale(0.8);
    }
}

/* Animación de deslizamiento vertical para iconos pares */
.floating-icon:nth-child(even) {
    animation: floatInOut 12s ease-in-out infinite;
}

/* Efecto de brillo intermitente */
.floating-icon i::before {
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        filter: brightness(1);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }

    50% {
        filter: brightness(1.2);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
}

/* Responsive para iconos flotantes */
@media (max-width: 768px) {
    .floating-icon {
        animation-duration: 6s;
    }

    .floating-icon i {
        font-size: 1.5rem !important;
    }

    .floating-icon:nth-child(1) i {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    .floating-icon {
        animation-duration: 4s;
    }

    .floating-icon i {
        font-size: 1.2rem !important;
    }

    .floating-icon:nth-child(1) i {
        font-size: 1.5rem !important;
    }
}

/* Animación para partículas flotantes */
@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Efecto de ondas de energía */
.energy-wave {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: energyPulse 4s ease-in-out infinite;
}

@keyframes energyPulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Efecto de conexión entre iconos */
.connection-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: connectionFlow 6s ease-in-out infinite;
}

@keyframes connectionFlow {

    0%,
    100% {
        opacity: 0;
        transform: scaleX(0);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Efecto de rotación 3D para iconos principales */
.floating-icon:nth-child(1),
.floating-icon:nth-child(2) {
    perspective: 1000px;
}

.floating-icon:nth-child(1) i,
.floating-icon:nth-child(2) i {
    animation: rotate3D 8s ease-in-out infinite;
}

@keyframes rotate3D {

    0%,
    100% {
        transform: rotateY(0deg) rotateX(0deg);
    }

    25% {
        transform: rotateY(90deg) rotateX(10deg);
    }

    50% {
        transform: rotateY(180deg) rotateX(0deg);
    }

    75% {
        transform: rotateY(270deg) rotateX(-10deg);
    }
}

/* Efecto de zoom in/out para iconos secundarios */
.floating-icon:nth-child(n+3) {
    animation: zoomInOut 10s ease-in-out infinite;
}

@keyframes zoomInOut {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    20% {
        opacity: 0.2;
        transform: scale(1);
    }

    80% {
        opacity: 0.2;
        transform: scale(1);
    }
}

/* Efecto de desvanecimiento suave */
.fade-in-slow {
    animation: fadeInSlow 2s ease-in-out;
}

@keyframes fadeInSlow {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-button i {
    font-size: 28px;
    color: white;
    z-index: 2;
    position: relative;
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25d366;
    border-radius: 50%;
    animation: whatsappPulse 2s infinite;
    z-index: 1;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Dropdown de opciones */
.whatsapp-dropdown {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.whatsapp-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.whatsapp-option:last-child {
    border-bottom: none;
}

.whatsapp-option:hover {
    background: #f8fafc;
    transform: translateX(5px);
}

.whatsapp-option i {
    font-size: 18px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.whatsapp-option:first-child i {
    color: #1e40af;
}

.whatsapp-option:last-child i {
    color: #10b981;
}

.whatsapp-option span {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

/* Modales de WhatsApp */
.whatsapp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.whatsapp-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.modal-header h3 i {
    margin-right: 10px;
    font-size: 22px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

.qr-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.qr-code {
    text-align: center;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: #f8fafc;
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #6b7280;
}

.qr-placeholder i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #25d366;
}

.qr-placeholder p {
    margin: 5px 0;
    font-weight: 500;
    color: #374151;
}

.qr-placeholder small {
    font-size: 12px;
    color: #9ca3af;
}

.contact-info h4 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 18px;
}

.contact-info p {
    margin: 8px 0;
    color: #6b7280;
    display: flex;
    align-items: center;
}

.contact-info p i {
    margin-right: 10px;
    width: 16px;
    color: #25d366;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.whatsapp-link i {
    margin-right: 8px;
    font-size: 16px;
}

/* Responsive para WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
    }

    .whatsapp-button i {
        font-size: 24px;
    }

    .whatsapp-dropdown {
        min-width: 160px;
        bottom: 65px;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .qr-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .qr-placeholder {
        width: 120px;
        height: 120px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
    }

    .whatsapp-button i {
        font-size: 22px;
    }

    .whatsapp-dropdown {
        min-width: 140px;
        bottom: 60px;
    }

    .whatsapp-option {
        padding: 10px 15px;
    }

    .whatsapp-option span {
        font-size: 13px;
    }
}

/* Dropdowns de redes sociales en el footer */
.social-float {
    position: relative;
    display: inline-block;
    z-index: 100;
}

.social-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 101;
    pointer-events: auto;
}

.facebook-btn {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.instagram-btn {
    background: linear-gradient(135deg, #e4405f 0%, #fd1d1d 50%, #fcb045 100%);
    box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

.social-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.social-button i {
    font-size: 18px;
    color: white;
    z-index: 2;
    position: relative;
}

.social-dropdown {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    z-index: 1000;
}

.social-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.social-option {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.social-option:last-child {
    border-bottom: none;
}

.social-option:hover {
    background: #f8fafc;
    transform: translateX(3px);
}

.social-option i {
    font-size: 16px;
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

.social-option span {
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

/* Enlaces de redes sociales */
.social-link {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.facebook-link {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
}

.instagram-link {
    background: linear-gradient(135deg, #e4405f 0%, #fd1d1d 50%, #fcb045 100%);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.social-link i {
    margin-right: 8px;
    font-size: 14px;
}

/* Responsive para dropdowns de redes sociales */
@media (max-width: 768px) {
    .social-button {
        width: 35px;
        height: 35px;
    }

    .social-button i {
        font-size: 16px;
    }

    .social-dropdown {
        min-width: 120px;
        bottom: 45px;
    }

    .social-option {
        padding: 8px 12px;
    }

    .social-option span {
        font-size: 12px;
    }
}

/* Estilos para la sección de estadísticas */
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animación de contador */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.stat-number.animate {
    animation: countUp 0.6s ease-out;
}

/* Efecto de pulso en los números */
.stat-number.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Responsive para estadísticas */
@media (max-width: 768px) {
    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 12px;
    }

    .stat-icon {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

/* Estilos para el mapa de Google Maps */
.map-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.map-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.map-wrapper:hover iframe {
    transform: scale(1.02);
}

/* Responsive para el mapa */
@media (max-width: 1024px) {
    .map-container {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .map-container {
        padding: 15px;
    }

    .map-wrapper iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .map-container {
        padding: 10px;
    }

    .map-wrapper iframe {
        height: 200px;
    }

    .social-button {
        width: 32px;
        height: 32px;
    }

    .social-button i {
        font-size: 14px;
    }

    .social-dropdown {
        min-width: 110px;
        bottom: 40px;
    }

    .social-option {
        padding: 6px 10px;
    }
}

/* Extra Small Screens (xs breakpoint) */
@media (max-width: 380px) {
    .hidden.xs\:inline {
        display: none !important;
    }
}

@media (min-width: 381px) {
    .hidden.xs\:inline {
        display: inline !important;
    }
}

/* Responsive Design Improvements */
@media (max-width: 640px) {

    /* Mobile optimizations */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Typography scaling */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    /* Button sizing */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    /* Card spacing */
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* Navigation */
    .nav-item {
        padding: 0.5rem 0;
        font-size: 0.875rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {

    /* Tablet optimizations */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Grid adjustments */
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1025px) {

    /* Desktop optimizations */
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* Grid adjustments */
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {

    .btn,
    .card,
    .nav-item {
        min-height: 44px;
        min-width: 44px;
    }

    .btn {
        padding: 0.875rem 1.75rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .card {
        border: 1px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}