 * {
            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;
        }

        main {
            min-height: 100vh;
            background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
        }

        /* Hero Section */
        .hero-container {
            position: relative;
            height: 60vh;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .imagen-principal {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(20%);
        }

        .imagen-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                135deg,
                rgba(0, 0, 0, 0.7) 0%,
                rgba(0, 0, 0, 0.5) 50%,
                rgba(218, 165, 32, 0.3) 100%
            );
        }

        .hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: white;
            max-width: 800px;
            padding: 0 2rem;
        }

        .hero-content h1 {
            font-size: 3.5rem;
            font-weight: 300;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            letter-spacing: 2px;
        }

        .hero-content h2 {
            font-size: 2rem;
            color: #DAA520;
            margin-bottom: 2rem;
            font-weight: 400;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            letter-spacing: 1px;
        }

        .decorative-line {
            width: 150px;
            height: 3px;
            background: linear-gradient(90deg, transparent 0%, #DAA520 50%, transparent 100%);
            margin: 0 auto;
            box-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
        }

        /* Content Section */
        .content-section {
            padding: 4rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .intro-description {
            text-align: center;
            margin-bottom: 4rem;
            padding: 2rem;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border-top: 4px solid #DAA520;
        }

        .intro-description p {
            font-size: 1.2rem;
            color: #555;
            line-height: 1.8;
            max-width: 900px;
            margin: 0 auto;
        }

        /* Services Grid */
        .services-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .service-card {
            background: white;
            border-radius: 15px;
            padding: 2.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border-left: 5px solid #DAA520;
            position: relative;
            overflow: hidden;
            min-height: 500px;
            min-width: 1100px;
            
        }
        .service-card_S {
            background: white;
            border-radius: 15px;
            padding: 2.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border-left: 5px solid #DAA520;
            position: relative;
            overflow: hidden;
            min-height: 200px;
            min-width: 1100px;
            margin-bottom: 20px;
        }
        .service-card1 {
            background: white;
            border-radius: 15px;
            padding: 2.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border-left: 5px solid #DAA520;
            position: relative;
            overflow: hidden;
            min-height: 1000px;
            min-width: 1100px;
            margin-bottom: 20px;
        }
        .service-card_M {
            background: white;
            border-radius: 15px;
            padding: 2.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border-left: 5px solid #DAA520;
            position: relative;
            overflow: hidden;
            min-height: 700px;
            min-width: 1100px;
            margin-bottom: 20px;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #DAA520 0%, #FFD700 50%, #DAA520 100%);
        }

        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .service-card h3 {
            color: #333;
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            font-weight: 600;
            border-bottom: 2px solid #DAA520;
            padding-bottom: 0.5rem;
            display: inline-block;
        }

        .service-description {
            color: #666;
            margin-bottom: 1.5rem;
            font-style: italic;
            background: #f9f9f9;
            padding: 1rem;
            border-radius: 8px;
            border-left: 3px solid #DAA520;
        }

        .service-list {
            list-style: none;
        }

        .service-list p {
            position: relative;
            padding: 1rem 0;
            color: #555;
            border-bottom: 1px solid #f0f0f0;
            transition: all 0.3s ease;
            padding-left: 2rem;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .service-list p:before {
            content: '▶';
            color: #DAA520;
            font-size: 0.8rem;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            transition: all 0.3s ease;
        }

        .service-list p:hover {
            color: #333;
            padding-left: 2.5rem;
            background: #fafafa;
        }

        .service-list p:hover:before {
            color: #FFD700;
            transform: translateY(-50%) scale(1.2);
        }

        .service-list p:last-child {
            border-bottom: none;
        }

        /* Basic Services Special Styling */
        .basic-services {
            grid-column: 1 / -1;
            background: linear-gradient(135deg, #333 0%, #444 100%);
            color: white;
            border-left: 5px solid #DAA520;
        }

        .basic-services::before {
            background: linear-gradient(90deg, #FFD700 0%, #DAA520 50%, #FFD700 100%);
        }

        .basic-services h3 {
            color: #DAA520;
            border-bottom: 2px solid #DAA520;
            font-size: 1.8rem;
            text-align: center;
            margin-bottom: 2rem;
        }

        .basic-services .service-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1rem;
        }

        .basic-services .service-list p {
            background: rgba(218, 165, 32, 0.1);
            padding: 1rem;
            border-radius: 8px;
            border: 1px solid rgba(218, 165, 32, 0.3);
            color: white;
            border-bottom: 1px solid rgba(218, 165, 32, 0.3);
        }

        .basic-services .service-list p:hover {
            background: rgba(218, 165, 32, 0.2);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(218, 165, 32, 0.3);
        }

        .basic-services .service-list p:before {
            color: #FFD700;
        }

        /* Asuntos Registrales - Special layout for long content */
        .registrales-card {
            grid-column: 1 / -1;
            max-width: none;
            margin-bottom: 10px;
        }
        .registrales-card1 {
            grid-column: 1 / -1;
            max-width: none;
            margin-bottom: 10px;
        }

        .registrales-card .service-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 0.5rem;
        }

        /* Combined Services - Special styling for Autorizaciones and Procesos Vehiculares */
        .combined-services-card {
            grid-column: span 1;
        }

        .combined-services-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2.5rem;
            margin-top: 1rem;
        }

        .service-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 1.5rem;
            background: #f9f9f9;
            border-radius: 10px;
            border-left: 3px solid #DAA520;
            transition: all 0.3s ease;
            width: 1000px;
            
        }

        .service-item:hover {
            background: #f0f0f0;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(218, 165, 32, 0.2);
        }

        .service-icon {
            color: #DAA520;
            font-size: 0.9rem;
            font-weight: bold;
            margin-top: 0.2rem;
            flex-shrink: 0;
        }

        .service-item span:last-child {
            color: #555;
            line-height: 1.5;
            font-size: 0.95rem;
        }

        @media (max-width: 768px) {
            .combined-services-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
        }

        @media (max-width: 900px) {
            .registrales-card .service-list {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 768px) {
            .hero-content h1 {
                font-size: 2.5rem;
            }

            .hero-content h2 {
                font-size: 1.5rem;
            }

            .content-section {
                padding: 2rem 1rem;
            }

            .service-card {
                padding: 1.5rem;
            }

            .services-container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .hero-content h1 {
                font-size: 2rem;
            }

            .hero-content h2 {
                font-size: 1.2rem;
            }

            .hero-container {
                height: 50vh;
            }
        }

        /* Animation for fade in effect */
        .service-card {
            opacity: 0;
            animation: fadeInUp 0.6s ease forwards;
        }

        .service-card:nth-child(1) { animation-delay: 0.1s; }
        .service-card:nth-child(2) { animation-delay: 0.2s; }
        .service-card:nth-child(3) { animation-delay: 0.3s; }
        .service-card:nth-child(4) { animation-delay: 0.4s; }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        /* Responsive adicional para móviles pequeños - Especialidades Internas */
@media (max-width: 480px) {
    /* Hero section */
    .hero-container {
        height: 40vh;
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        letter-spacing: 1px;
        line-height: 1.2;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        letter-spacing: 0.5px;
    }
    
    .decorative-line {
        width: 100px;
        height: 2px;
    }
    
    /* Content section */
    .content-section {
        padding: 2rem 1rem;
    }
    
    .intro-description {
        margin-bottom: 2rem;
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }
    
    .intro-description p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Service cards - eliminar min-width para móvil */
    
    .service-card_S,
    .service-card1,
    .service-card_M {
        min-width: auto;
        width: 100%;
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        min-height: auto;
        border-radius: 12px;
    }
    .service-card{

         min-width: auto;
        width: 100%;
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        min-height: 500px;
        border-radius: 12px;

    }
    .service-card1 {
        min-height: auto;
    }
    
    .service-card_M {
        min-height: auto;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .service-description {
        padding: 0.8rem;
        margin-bottom: 1rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    /* Service list */
    .service-list p {
        padding: 0.8rem 0;
        padding-left: 1.8rem;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .service-list p:hover {
        padding-left: 2rem;
    }
    
    .service-list p:before {
        font-size: 0.7rem;
    }
    
    /* Basic services */
    .basic-services h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .basic-services .service-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .basic-services .service-list p {
        padding: 0.8rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    /* Registrales cards */
    .registrales-card .service-list,
    .registrales-card1 .service-list {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
    
    /* Combined services */
    .combined-services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 0.8rem;
    }
    
    .service-item {
        padding: 1rem;
        gap: 0.8rem;
        width: 100%;
        border-radius: 8px;
        flex-direction: column;
        text-align: center;
    }
    
    .service-icon {
        font-size: 0.8rem;
        margin-top: 0;
        align-self: flex-start;
    }
    
    .service-item span:last-child {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Services container */
    .services-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 1.5rem;
    }
    
    /* Animations - duración reducida para móvil */
    .service-card {
        animation-duration: 0.4s;
    }
}

/* Responsive para móviles muy pequeños */
@media (max-width: 360px) {
    .hero-container {
        height: 35vh;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-content h2 {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .content-section {
        padding: 1.5rem 0.8rem;
    }
    
    .intro-description {
        padding: 1.2rem 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .intro-description p {
        font-size: 0.9rem;
    }
    
    .service-card,
    .service-card_S,
    .service-card1,
    .service-card_M {
        padding: 1.2rem 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-description {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .service-list p {
        padding: 0.6rem 0;
        padding-left: 1.5rem;
        font-size: 0.8rem;
    }
    
    .basic-services h3 {
        font-size: 1.3rem;
    }
    
    .basic-services .service-list p {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .service-item {
        padding: 0.8rem;
        gap: 0.6rem;
    }
    
    .service-item span:last-child {
        font-size: 0.8rem;
    }
    
    .decorative-line {
        width: 80px;
    }
}

/* Mejoras para orientación horizontal en móviles */
@media (max-width: 480px) and (orientation: landscape) {
    .hero-container {
        height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
}

/* Responsive para tablets pequeños */
@media (max-width: 640px) and (min-width: 481px) {
    .service-card,
    .service-card_S,
    .service-card1,
    .service-card_M {
        min-width: auto;
        width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .combined-services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-item {
        width: 100%;
    }
    
    .registrales-card .service-list,
    .registrales-card1 .service-list {
        grid-template-columns: 1fr;
    }
}