 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     background-color: white;
     font-family: Arial, sans-serif;
     min-height: 100vh;
     display: flex;
     flex-direction: column;
     overflow-x: hidden;
 }

 /* Header y navegación */
 .menu_principal {
     background-color: #343434;
     text-align: center;
     width: 100%;
     display: flex;
     justify-content: center;
     align-items: center;
     position: sticky;
     top: 0;
     z-index: 100;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
 }

 .title-container {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 5px;
     position: relative;
     width: 100%;
 }

 /* Redes sociales */
 .social-media-container {
     position: absolute;
     right: 10px;
     top: 10px;
     display: flex;
     flex-direction: row;
     gap: 15px;
     z-index: 10;
 }

 .boton-facebook,
 .boton-twiter,
 .boton-instagram,
 .boton-linkin,
 .boton-tiktok {
     width: 40px;
     height: 40px;
     cursor: pointer;
     border-radius: 5px;
     transition: transform 0.3s ease;
 }

 .boton-ubicacion,
 .boton-telefono,
 .boton-email {
     width: 40px;
     height: 40px;
     cursor: pointer;
     border-radius: 5px;
     transition: transform 0.3s ease;
     vertical-align: middle;
     margin-right: 8px;
 }

 .img_servicio {

     width: 100px;
     height: 100px;
     border-radius: 5px;
     vertical-align: middle;

 }

 .boton-facebook:hover,
 .boton-twiter:hover,
 .boton-instagram:hover,
 .boton-linkin:hover,
 .boton-tiktok:hover,
 .boton-ubicacion:hover,
 .boton-telefono:hover,
 .boton-email:hover {
     transform: scale(1.1);
 }

 /* Logo */
 .logo {
     width: 250px;
     height: 150px;
     margin-top: -25px;
 }

 .center {
     display: flex;
     justify-content: center;
     align-items: center;
     grid-column: 1 / -1;     /* Esto hace que ocupe todo el ancho del grid */
     width: 100%;
 }
 .center .service-card {
    max-width: 350px; /* Mismo ancho que las otras tarjetas */
    width: 100%;
}

 /* Contenido principal */
 .content {
     flex: 1;
     padding: 40px 20px;
     text-align: center;
     position: relative;
     z-index: 2;
     margin-bottom: -30px;
 }

 .content h2 {
     color: #343434;
     margin-bottom: 20px;
     font-size: 2.5em;
     opacity: 0;
     transform: translateY(50px);
     animation: fadeInUp 1s ease forwards;
     transition: color 0.3s ease;
 }

 .content h2:hover {
     color: #FFD700;
 }

 .content p {
     color: #ffffff;
     line-height: 1.6;
     max-width: 800px;
     margin: 0 auto;
     font-size: 1.2em;
     opacity: 0;
     transform: translateY(30px);
     animation: fadeInUp 1s ease 0.3s forwards;
 }

 .content h5 {
     color: #2e2e2e;
     line-height: 1.6;
     max-width: 800px;
     margin: 0 auto;
     font-size: 1.2em;
     opacity: 0;
     transform: translateY(30px);
     animation: fadeInUp 1s ease 0.3s forwards;
     content: none;

 }

 .parrafo{
    content: none;
    color: #000000;
 }
 .more{    
    color: #ffffff;
     line-height: 1.6;
     max-width: 800px;
     margin: 0 auto;
     font-size: 1.2em;
     opacity: 0;
     transform: translateY(30px);
     animation: fadeInUp 1s ease 0.3s forwards;
     text-decoration: none;
     flex: 1;
     position: relative;
     margin-bottom: -30px;
     translate: 1.5;
 }
.background-shapes {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 0;
            pointer-events: none;
        }

        .shape {
            position: absolute;
            border-radius: 50%;
            opacity: 0.1;
            animation: float 8s ease-in-out infinite;
        }

        .shape1 {
            width: 300px;
            height: 300px;
            background: linear-gradient(45deg, #FFD700, #FFA500);
            top: 10%;
            left: -10%;
            animation-delay: 0s;
        }

        .shape2 {
            width: 200px;
            height: 200px;
            background: linear-gradient(45deg, #FFD700, #FFFFFF);
            top: 70%;
            right: -5%;
            animation-delay: 3s;
        }

        .shape3 {
            width: 150px;
            height: 150px;
            background: linear-gradient(45deg, #FFFFFF, #FFD700);
            top: 40%;
            left: 80%;
            animation-delay: 6s;
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0px) rotate(0deg);
                opacity: 0.1;
            }
            50% {
                transform: translateY(-30px) rotate(180deg);
                opacity: 0.2;
            }
        }

        /* Container principal */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            position: relative;
            z-index: 1;
        }

        /* Header section */
        .hero-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(52,52,52,0.8) 100%);
        }

        .hero-content {
            max-width: 800px;
            padding: 2rem;
            opacity: 0;
            transform: translateY(50px);
            animation: fadeInUp 1.2s ease 0.5s forwards;
        }

        .hero-title {
            font-size: 4rem;
            font-weight: bold;
            margin-bottom: 2rem;
            background: linear-gradient(45deg, #FFD700, #FFA500, #FFFFFF);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .hero-subtitle {
            font-size: 1.5rem;
            color: #FFFFFF;
            margin-bottom: 1rem;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
        }

        .hero-description {
            font-size: 1.2rem;
            color: #E0E0E0;
            line-height: 1.8;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }

        /* Sección principal de contenido */
        .main-content {
            padding: 5rem 0;
        }

        /* Cards container */
        .cards-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 3rem;
            margin: 4rem 0;
        }

        /* Estilo de tarjetas */
        .content-card {
            background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,255,255,0.05) 100%);
            backdrop-filter: blur(20px);
            border: 2px solid transparent;
            border-image: linear-gradient(45deg, #FFD700, #FFFFFF, #FFD700) 1;
            border-radius: 20px;
            padding: 3rem;
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
            opacity: 0;
            transform: translateY(50px);
            animation: slideUp 0.8s ease forwards;
        }

        .content-card:nth-child(1) { animation-delay: 0.8s; }
        .content-card:nth-child(2) { animation-delay: 1.1s; }
        .content-card:nth-child(3) { animation-delay: 1.4s; }

        .content-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,215,0,0.1), transparent);
            transition: left 0.5s ease;
        }

        .content-card:hover::before {
            left: 100%;
        }

        .content-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 25px 50px rgba(255,215,0,0.2);
            border-image: linear-gradient(45deg, #FFD700, #FFA500, #FFD700) 1;
        }

        .card-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(45deg, #FFD700, #FFA500);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 2rem;
            font-size: 2.5rem;
            color: #000000;
            box-shadow: 0 10px 20px rgba(255,215,0,0.3);
            transition: all 0.3s ease;
        }

        .content-card:hover .card-icon {
            transform: rotateY(180deg);
            background: linear-gradient(45deg, #FFA500, #FFD700);
        }

        .card-title {
            font-size: 2rem;
            font-weight: bold;
            color: #FFD700;
            margin-bottom: 1.5rem;
            text-align: center;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .card-content {
            color: #0f0e0e;
            font-size: 1.1rem;
            line-height: 1.8;
            text-align: justify;
        }
 /* Contenedor parallax principal */
 .parallax-container {
     position: relative;
     height: 70vh;
     overflow: hidden;
     margin: 50px 0;
     border-radius: 15px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
 }

 .parallax-image {
     position: absolute;
     top: 0;
     left: 50%;
     transform: translateX(-50%);
     width: 120%;
     height: 180%;
     background-image: url('https://plus.unsplash.com/premium_photo-1698084059560-9a53de7b816b?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTN8fGxlZ2FsfGVufDB8fDB8fHww');
     background-size: cover;
     background-position: center;
     background-repeat: no-repeat;
     transition: transform 0.1s ease-out;
     filter: brightness(0.8);
 }

 .parallax-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(45deg, rgba(52, 52, 52, 0.7), rgba(255, 215, 0, 0.3));
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 3;
 }

 .parallax-text {
     color: white;
     font-size: 2.2em;
     font-weight: bold;
     text-align: center;
     max-width: 80%;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
     opacity: 0;
     transform: translateY(50px);
     animation: fadeInUp 1.5s ease 0.5s forwards;
     line-height: 1.3;
 }

 /* Sección de servicios con parallax */
 .services-section {
     padding: 80px 20px;
     background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
     position: relative;
     overflow: hidden;
     text-align: center;
 }

 .services-section::before {
     content: '';
     position: absolute;
     top: -50%;
     left: -50%;
     width: 200%;
     height: 200%;
     background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
     animation: rotate 20s linear infinite;
     z-index: 1;
 }

 .services-section h3 {
     color: #343434;
     font-size: 2.5em;
     margin-bottom: 50px;
     position: relative;
     z-index: 3;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
 }

 .services-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
     gap: 40px;
     max-width: 1200px;
     margin: 0 auto;
     position: relative;
     z-index: 3;
 }

 /* Tarjetas de servicio con parallax individual */
 .service-card {
     position: relative;
     height: 400px;
     border-radius: 20px;
     overflow: hidden;
     cursor: pointer;
     transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
 }

 .service-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: linear-gradient(45deg, rgba(52, 52, 52, 0.8), rgba(255, 215, 0, 0.6));
     z-index: 2;
     transition: all 0.3s ease;
 }

 .service-card:hover::before {
     background: linear-gradient(45deg, rgba(52, 52, 52, 0.6), rgba(255, 215, 0, 0.8));
 }

 .service-card:hover {
     transform: translateY(-20px) scale(1.05);
     box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
 }

 /* Imágenes de fondo parallax para cada servicio */
 .service-card-bg {
     position: absolute;
     top: -10%;
     left: -10%;
     width: 120%;
     height: 120%;
     background-size: cover;
     background-position: center;
     background-repeat: no-repeat;
     transition: transform 0.5s ease;
     z-index: 1;
 }

 .service-card:hover .service-card-bg {
     transform: scale(1.1) rotate(2deg);
 }

 /* Imágenes específicas para cada servicio */
 .service-notarial .service-card-bg {
     background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
 }

 .service-administrativo .service-card-bg {
     background-image: url('https://uneg.edu.mx/wp-content/uploads/2022/07/7.-que-estudia-el-derecho-administrativo-min-scaled.jpg');
 }

 .service-familia .service-card-bg {
     background-image: url('https://images.unsplash.com/photo-1511632765486-a01980e01a18?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
 }

 .service-laboral .service-card-bg {
     background-image: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
 }

 .service-civil .service-card-bg {
     background-image: url('https://images.unsplash.com/photo-1589994965851-a8f479c573a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
 }

 .service-arbitraje .service-card-bg {
     background-image: url('https://images.unsplash.com/photo-1479142506502-19b3a3b7ff33?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
 }

 .service-Penal .service-card-bg {
     background-image: url('https://i.pinimg.com/1200x/bd/23/a2/bd23a245c24c341764714d2d9cca75b1.jpg');
 }
 .service-legal .service-card-bg {
     background-image: url('https://images.unsplash.com/photo-1436450412740-6b988f486c6b?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
 }

 /* Contenido de las tarjetas */
 .service-card-content {
     position: relative;
     z-index: 3;
     height: 100%;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     padding: 30px;
     text-align: center;
     color: white;
 }

 .service-card h4 {
     font-size: 1.8em;
     margin-bottom: 15px;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
     transform: translateY(20px);
     opacity: 0;
     animation: slideUp 0.6s ease forwards;
 }

 .service-card p {
     font-size: 1.1em;
     line-height: 1.6;
     text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
     transform: translateY(20px);
     opacity: 0;
     animation: slideUp 0.6s ease 0.2s forwards;
 }

 /* Footer */
 .footer {
     background-color: #343434;
     color: white;
     text-align: center;
     padding: 30px 20px;
     margin-top: auto;
 }

 .footer h4 {
     margin-bottom: 15px;
     color: white;
 }

 .footer p {
     margin: 5px 0;
     color: #ccc;
 }

 .footer-content {
     max-width: 1200px;
     margin: 0 auto;
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 30px;
     text-align: left;
 }

 .footer-bottom {
     border-top: 1px solid #FFD700;
     margin-top: 20px;
     padding-top: 20px;
     text-align: center;
 }

 /* Navegación - Enlaces en blanco */
 table {
     margin-top: -70px;
     flex: 1;
     padding: 30px 10px;
     border-spacing: 60px 0;
     text-align: center;
     color: white;
 }

 table td {
     cursor: pointer;
     transition: transform 0.3s ease, color 0.3s ease;
     padding: 10px;
     border-radius: 5px;
 }

 table td a {
     color: white !important;
     text-decoration: none;
     font-weight: 500;
     font-size: 1.1em;
     transition: color 0.3s ease;
 }

 table td:hover {
     transform: translateY(-5px);
     background-color: rgba(255, 215, 0, 0.1);
 }

 table td:hover a {
     color: #FFD700 !important;
 }

 .ubicacion-container {
     display: flex;
     align-items: center;
     justify-content: flex-start;
 }
 .social-container{
     display: flex;
     align-items: center;
     justify-content: flex-start;
     margin-left: 95px;

 }
  .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #050505;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease-out;
        }

        .loading-screen.fade-out {
            opacity: 0;
            pointer-events: none;
        }

        /* Imagen de carga */
        .loading-image {
            max-width: 500px;
            max-height: 500px;
            width: auto;
            height: auto;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { 
                transform: scale(1);
                opacity: 0.8;
            }
            50% { 
                transform: scale(1.05);
                opacity: 1;
            }
        }

 /* Animaciones */
 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(50px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes slideUp {
     from {
         opacity: 0;
         transform: translateY(20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes slideDown {
     from {
         opacity: 0;
         transform: translateY(-20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes rotate {
     from {
         transform: rotate(0deg);
     }

     to {
         transform: rotate(360deg);
     }
 }

 /* Media Queries - Responsive */
 @media (max-width: 768px) {
     .menu_principal {
         flex-direction: column;
         gap: 20px;
     }

     .logo {
         width: 150px;
         height: 100px;
     }

     table td {
         padding: 0 15px;
     }

     table {
         border-spacing: 30px 0;
     }

     .social-media-container {
         position: static;
         transform: none;
         flex-direction: row;
         justify-content: center;
         margin-bottom: 30px;
     }

     .parallax-container {
         height: 50vh;
     }

     .parallax-text {
         font-size: 1.5em;
     }

     .content h2 {
         font-size: 2em;
     }

     .services-grid {
         grid-template-columns: 1fr;
         gap: 30px;
     }

     .service-card {
         height: 300px;
     }

     .services-section h3 {
         font-size: 2em;
     }
 }
@media (max-width: 480px) {
    /* Header y navegación */
    .menu_principal {
        padding: 10px 5px;
        min-height: auto;
        flex-direction: column;
        gap: 15px;
    }
    
    .title-container {
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        position: relative;
    }
    
    .logo {
        width: 140px;
        height: 100px;
        margin-top: 0;
        
    }
    
    /* ARREGLO PRINCIPAL: Redes sociales en móvil */
    .social-media-container {
        position: static !important; /* Eliminar posición absoluta */
        right: auto !important;
        top: auto !important;
        transform: none !important;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin: 0;
        z-index: 10;
        margin-top: -30px;
    }
    
    .boton-facebook,
    .boton-twiter,
    .boton-instagram,
    .boton-linkin,
    .boton-tiktok {
        width: 35px;
        height: 35px;
        flex-shrink: 0; /* Evitar que se compriman */
    }
    
    .boton-ubicacion,
    .boton-telefono,
    .boton-email {
        width: 30px;
        height: 30px;
    }
    
    /* Navegación tabla - SEPARADA y al final */
    table {
        border-spacing: 8px 0;
        margin-top: 10px; /* Espacio después de las redes sociales */
        order: 3; /* Menú de navegación al final */
        width: 100%;
        padding: 0;
    }
    
    table td {
        padding: 12px 8px;
    }
    
    table td a {
        font-size: 0.9em;
        white-space: nowrap;
        font-weight: 500;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 80vh;
        padding: 20px 10px;
        margin-top: 20px; /* Espacio adicional después del header */
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Contenido principal */
    .content {
        padding: 20px 10px;
    }
    
    .content h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .content p,
    .content h5 {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Cards container */
    .cards-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0;
    }
    
    /* Content cards */
    .content-card {
        padding: 2rem 1.5rem;
        margin: 0 10px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .card-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .card-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Parallax container */
    .parallax-container {
        height: 40vh;
        margin: 30px 10px;
        border-radius: 10px;
    }
    
    .parallax-text {
        font-size: 1.2em;
        padding: 0 20px;
        max-width: 90%;
    }
    
    /* Services section */
    .services-section {
        padding: 40px 10px;
    }
    
    .services-section h3 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }
    
    .service-card {
        height: 280px;
        margin: 0 5px;
    }
    
    .service-card-content {
        padding: 20px 15px;
    }
    
    .service-card h4 {
        font-size: 1.4em;
        margin-bottom: 12px;
    }
    
    .service-card p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .img_servicio {
        width: 80px;
        height: 80px;
    }
    
    /* Footer */
    .footer {
        padding: 20px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer h4 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .footer p {
        font-size: 0.9em;
    }
    
    /* Background shapes - reducir en móvil */
    .shape1 {
        width: 200px;
        height: 200px;
        top: 5%;
        left: -15%;
    }
    
    .shape2 {
        width: 150px;
        height: 150px;
        top: 75%;
        right: -10%;
    }
    
    .shape3 {
        width: 100px;
        height: 100px;
        top: 45%;
        left: 85%;
    }
    
    /* Loading screen */
    .loading-image {
        max-width: 300px;
        max-height: 300px;
    }
    
    /* Ubicación container */
    .ubicacion-container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    /* Center class para móvil */
    .center .service-card {
        max-width: 280px;
        margin: 0 auto;
    }
}