:root {
    --primary: #4f46e5;
    --background: #f5f5f5;
    --dark: #1f2937;
    --navbarText: #5d6d7e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    height: 100%;
    scroll-behavior: smooth;
}

header {
    background-color: white;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f4ff;
    overflow-x: hidden;
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px; /* Altura fija para el navbar en escritorio */
    background: linear-gradient(to right, #e0e7ff, #c8d3ff);
    color: #4A4A4A;
    display: flex;
    align-items: center; /* Centra verticalmente el contenido del navbar */
    padding: 0 40px;
    box-sizing: border-box;
    transition: top 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    justify-content: space-between;
}

#navbar.show {
    opacity: 1;
    pointer-events: auto;
    top: 0;
}

#navbar .navbar-brand {
    display: flex;
    align-items: center; /* Centra verticalmente los elementos internos del navbar-brand */
    justify-content: space-between;
    width: 100%; /* Ocupa todo el ancho disponible para facilitar justify-content */
    height: 100%; /* Asegura que ocupe la altura del padre para el centrado */
}

#navbar .navbar-brand a {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--navbarText);
    transition: color 0.3s ease;
    display: flex; /* Usar flex para centrar el ícono si es necesario */
    align-items: center; /* Centra el ícono dentro de su propio enlace */
    height: 100%; /* Para que el flex de align-items funcione bien */
    padding: 0; /* Eliminar padding que pueda desalinear */
}

#navbar .navbar-brand a:hover {
    color: #3f51b5;
}

#navbar .menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

#navbar .menu-list li a {
    text-decoration: none;
    color: #5d6d7e;
    font-size: 1em;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0; /* Padding vertical para los enlaces del menú en desktop */
}

#navbar .menu-list li a:hover {
    color: #3f51b5;
}

/* --- Estilos del menú móvil (Hamburger) --- */
.menu-toggle {
    display: none; /* Ocultar por defecto */
    background: none;
    border: none;
    font-size: 1.8em;
    color: #3f51b5;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Estilos para el enlace y nombre de GitHub (común para desktop y móvil por defecto) */
#navbar .navbar-brand a.github-link {
    display: flex;
    align-items: center; /* Centra el ícono y el texto de GitHub verticalmente */
    text-decoration: none; /* Eliminar subrayado si el enlace lo tiene */
    color: var(--navbarText); /* Color inicial */
    gap: 10px; /* Espacio entre el ícono y el nombre para desktop */
}

#navbar .navbar-brand a.github-link i {
    font-size: 1.4em; /* Tamaño del ícono */
}

#navbar .navbar-brand a.github-link .github-name {
    font-size: 1em; /* Tamaño del texto del nombre */
    font-weight: 500;
    color: var(--navbarText); /* Color del texto del nombre */
    opacity: 0; /* Oculto por defecto */
    max-width: 0; /* Ancho 0 para que no ocupe espacio */
    overflow: hidden; /* Oculta el texto si excede el ancho 0 */
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
    transition: opacity 0.3s ease-out, max-width 0.3s ease-out, margin-left 0.3s ease-out; /* Transición suave */
    margin-left: 0; /* Asegurarse de que no haya margen al estar oculto */
}

/* Efecto hover para desktop */
@media (min-width: 769px) { /* Se aplica a partir de 769px (desktop) */
    #navbar .navbar-brand a.github-link:hover .github-name {
        opacity: 1; /* Mostrar al hacer hover */
        max-width: 150px; /* Ancho máximo para mostrar el nombre (ajusta si es necesario) */
        margin-left: 0; /* En desktop, el gap lo maneja, así que no necesitamos margin-left aquí */
    }
}

/* Media Query para el Navbar (768px y menos) - MOBILE */
@media (max-width: 768px) {
    #navbar {
        flex-direction: column;
        height: auto;
        padding: 10px 40px;
        align-items: flex-start;
        transition: none; /* Desactivar transición de top y opacity en móvil para el navbar */
    }

    #navbar.show {
        /* Mantener transiciones de show en móvil si son necesarias, pero para altura/padding */
        transition: opacity 0.3s ease, top 0.3s ease; /* Si #navbar.show tiene una transición específica, se aplicará */
    }

    #navbar .navbar-brand {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0 0 0;
        min-height: 40px;
    }

    #navbar .navbar-brand a {
        height: auto;
        padding: 0;
        line-height: 1;
    }

    .menu-toggle {
        display: block; /* Mostrar el botón de hamburguesa en móvil */
        padding: 0;
        line-height: 1;
    }

    #navbar .menu-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        gap: 10px;
        text-align: center;
        overflow: hidden;
        max-height: 0; /* Oculto por defecto */
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
        padding: 0;
    }

    #navbar .menu-list.open {
        max-height: 300px; /* Altura suficiente para mostrar todos los elementos */
        padding: 10px 0;
    }

    #navbar .menu-list li a {
        font-size: 1.1em;
        padding: 8px 0;
        display: block;
    }

    /* ESTOS SON LOS CAMBIOS CLAVE PARA EL NOMBRE DE GITHUB EN MÓVIL */
    #navbar .navbar-brand a.github-link {
        /* En móvil, el enlace de github por defecto solo muestra el icono. */
        display: flex;
        align-items: center;
        /* Quitamos el 'gap' por defecto para que 'show-mobile' lo controle */
        gap: 0; /* Reiniciamos el gap para que 'show-mobile' lo defina */
    }

    #navbar .navbar-brand a.github-link .github-name {
        /* En móvil, oculto por defecto y sin ocupar espacio */
        opacity: 0;
        max-width: 0;
        overflow: hidden;
        margin-left: 0; /* Asegura que no haya margen inicial */
        transition: opacity 0.3s ease-out, max-width 0.3s ease-out, margin-left 0.3s ease-out;
    }

    /* CUANDO EL MENÚ ESTÁ ABIERTO (clase .open en menu-list) O JS AÑADE 'show-mobile' */
    /* Este selector es el que queremos que active la visibilidad del nombre de GitHub */
    #navbar .navbar-brand .github-name.show-mobile {
        opacity: 1; /* Mostrar al clickear la hamburguesa */
        max-width: 150px; /* Ancho máximo para mostrar el nombre (ajusta si es necesario) */
        margin-left: 10px; /* Espacio entre el icono y el nombre */
    }
}


.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    align-items: center;
    padding: 0 0 0 5%;
    background: linear-gradient(to right, #f0f4ff, #e0e7ff);
}

.hero-content {
    padding-right: 30px;
    max-width: 550px;
}

.hero-content h2 {
    font-size: 2.2em;
    font-weight: 500;
    color: #5a70e0;
    margin-top: 0;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1em;
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-primary {
    background: linear-gradient(to right, #6D83FD, #B982FF);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
}

.btn-primary:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to right, #5a70e0, #a872e6);
}

.btn-primary:active {
    box-shadow: none;
}

.hero-image-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    -webkit-mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.05) 5%,
        rgba(0, 0, 0, 0.2) 15%,
        rgba(0, 0, 0, 0.5) 30%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 1) 70%
    );
    mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.05) 5%,
        rgba(0, 0, 0, 0.2) 15%,
        rgba(0, 0, 0, 0.5) 30%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 1) 70%
    );
    transition: mask-image 0.5s ease;
}

@media (max-width: 768px) {
    .hero-section {
        display: flex;
        justify-items: center;
        justify-content: center;
        padding: 0;
    }
    .hero-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 40px;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content h2 {
        font-size: 1.8em;
    }
    .hero-image-container {
        display: none;
    }
}

.services {
    padding: 80px 5%;
    text-align: center;
    background: linear-gradient(to bottom, #f0f4ff, #e0e7ff);
    z-index: 10;
}

.services h3 {
    font-size: 2.8em;
    font-weight: 700;
    color: #3f51b5;
    margin-bottom: 60px;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-cards .card {
    background-color: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 320px;
    flex: 1 1 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.service-cards .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-cards .card h4 {
    font-size: 1.6em;
    font-weight: 600;
    color: #3f51b5;
    margin-top: 0;
    margin-bottom: 15px;
    text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.1);
}

.service-cards .card p {
    font-size: 1.05em;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 0;
    text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .services h3 {
        font-size: 2em;
        margin-bottom: 40px;
    }
    .service-cards {
        flex-direction: column;
        align-items: center;
    }
    .service-cards .card {
        max-width: 90%;
        width: 100%;
        padding: 30px 25px;
    }
    .service-cards .card h4 {
        font-size: 1.4em;
    }
    .service-cards .card p {
        font-size: 1em;
    }
}

.services-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: #3f51b5;
}

.projects {
    padding: 80px 5%;
    background-color: #e0e7ff;
    text-align: center;
}

.projects h3 {
    font-size: 2.8em;
    font-weight: 700;
    color: #3f51b5;
    margin-bottom: 60px;
    text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.carousel-track-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.carousel-slide a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.carousel-slide a:hover img {
    transform: scale(1.05);
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
    text-align: left;
}

.carousel-slide a:hover .slide-info {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.slide-info h4 {
    font-size: 1.4em;
    margin-bottom: 5px;
    color: white;
}

.slide-info p {
    font-size: 0.9em;
    color: #e0e0e0;
    margin: 0;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(63, 81, 181, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.8em;
    cursor: pointer;
    border-radius: 50%;
    z-index: 100;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-button:hover {
    background-color: rgb(63, 81, 181);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #bbb;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-indicator.active {
    background-color: #3f51b5;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .projects {
        padding: 60px 3%;
    }
    .projects h3 {
        font-size: 2em;
        margin-bottom: 40px;
    }
    .carousel-button {
        padding: 8px 12px;
        font-size: 1.5em;
    }
    .slide-info {
        padding: 15px;
    }
    .slide-info h4 {
        font-size: 1.2em;
    }
    .slide-info p {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .carousel-button {
        display: none;
    }
}

.pricing {
    padding: 80px 5%;
    background-color: #f0f4ff;
    text-align: center;
    border-top: 2px solid #3f51b5;
    box-shadow: 0 -3px 30px rgba(0, 0, 0, 0.3);
}

.pricing h3 {
    font-size: 2.8em;
    font-weight: 700;
    color: #3f51b5;
    margin-bottom: 20px;
}

.pricing-intro {
    font-size: 1.2em;
    color: #5d6d7e;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.price-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.price-card.featured {
    border-color: #3f51b5;
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 1;
}

.price-card.featured:hover {
    transform: translateY(-10px) scale(1.03);
}

.card-header h4 {
    font-size: 1.8em;
    font-weight: 700;
    color: #3f51b5;
    margin-bottom: 10px;
}

.card-header .price {
    font-size: 3.5em;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 5px;
}

.card-header .price span {
    font-size: 0.7em;
}

.card-header .subtitle {
    font-size: 1em;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: left;
}

.features-list li {
    font-size: 1.05em;
    color: #4A4A4A;
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
    line-height: 1.4;
}

.features-list li:last-child {
    margin-bottom: 0;
}

.features-list li::before {
    content: '\2713';
    color: #4f46e5;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.price-card .btn-primary {
    width: 100%;
    padding: 15px 0;
    margin-top: auto;
}

.disclaimer {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    .price-card {
        max-width: 80%;
    }
    .price-card.featured {
        transform: scale(1.0);
    }
}

@media (max-width: 768px) {
    .pricing {
        padding: 60px 3%;
    }
    .pricing h3 {
        font-size: 2em;
    }
    .pricing-intro {
        font-size: 1em;
        margin-bottom: 40px;
    }
    .price-card {
        max-width: 95%;
        padding: 30px;
    }
    .card-header .price {
        font-size: 3em;
    }
    .features-list li {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .price-card {
        padding: 25px;
    }
    .card-header h4 {
        font-size: 1.5em;
    }
    .card-header .price {
        font-size: 2.5em;
    }
}

footer {
    padding: 2rem;
    text-align: center;
    background-color: #1f2937;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: fadeInModal 0.3s ease-out;
}

.modal-content h4 {
    font-size: 2em;
    color: #3f51b5;
    margin-bottom: 25px;
    text-align: center;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #3f51b5;
    text-decoration: none;
    cursor: pointer;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content textarea:focus {
    border-color: #3f51b5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.2);
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-content .btn-primary {
    width: auto;
    align-self: center;
    margin-top: 20px;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.5s ease-out;
    text-align: center;
    max-width: 90%;
}

.success-message.show {
    opacity: 1;
    display: block;
}

.success-message p {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.success-message .close-success-message {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.success-message .close-success-message:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
    }
    .modal-content h4 {
        font-size: 1.6em;
    }
    .close-button {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }
}

.whatsapp-contact {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.whatsapp-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 2.5em;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.whatsapp-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.whatsapp-icon .bi-whatsapp {
    display: block;
    line-height: 1;
}

.whatsapp-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 300px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px 0;
    position: absolute;
    z-index: 1;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: 0.4em;
    white-space: nowrap;
}

.whatsapp-tooltip a {
    font-size: 10px;
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.whatsapp-icon:hover .whatsapp-tooltip {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 480px) {
    .whatsapp-tooltip {
        width: 180px;
        font-size: 0.85em;
        padding: 8px 0;
    }
}

/* Sección de Contacto Dedicada */
.contact-section {
    padding: 80px 5%;
    background: linear-gradient(to bottom, #e0e7ff, #f0f4ff); /* Un gradiente suave */
    text-align: center;
    color: #3f51b5; /* Color principal para el texto */
    box-shadow: 0 -3px 30px rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgb(63, 81, 181);
}

.contact-section .contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h3 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 25px;
    color: #3f51b5;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-section p {
    font-size: 1.2em;
    color: #5d6d7e;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permite que los íconos se envuelvan en pantallas pequeñas */
    gap: 30px; /* Espacio entre los íconos */
    margin-bottom: 50px;
}

.contact-icon-link {
    display: flex;
    flex-direction: column; /* Icono arriba, texto abajo */
    align-items: center;
    text-decoration: none;
    color: #5d6d7e; /* Color del texto del enlace */
    font-size: 1.1em;
    font-weight: 500;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-icon-link i {
    font-size: 3.5em; /* Tamaño grande para los íconos */
    color: #4f46e5; /* Color vibrante para los íconos */
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.contact-icon-link:hover {
    transform: translateY(-8px); /* Efecto de elevación al pasar el mouse */
    color: #3f51b5; /* Cambia el color del texto al pasar el mouse */
}

.contact-icon-link:hover i {
    color: #3f51b5; /* Cambia el color del ícono al pasar el mouse */
}

/* Ajustes para el botón primario dentro de la sección de contacto */
.contact-section .btn-primary {
    padding: 16px 32px;
    font-size: 1.1em;
    border-radius: 10px;
}

/* Media Queries para la Sección de Contacto */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 3%;
    }

    .contact-section h3 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .contact-section p {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .contact-methods {
        gap: 20px; /* Reducir el espacio entre íconos en móvil */
        margin-bottom: 40px;
    }

    .contact-icon-link i {
        font-size: 3em; /* Reducir un poco el tamaño del ícono en móvil */
        margin-bottom: 8px;
    }

    .contact-icon-link {
        font-size: 1em;
    }

    .contact-section .btn-primary {
        padding: 14px 28px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .contact-methods {
        flex-direction: column; /* Apilar los íconos verticalmente en pantallas muy pequeñas */
        align-items: center;
    }
    .contact-icon-link i {
        font-size: 2.8em;
    }
    .contact-icon-link {
        font-size: 0.95em;
        margin-bottom: 15px; /* Espacio entre íconos apilados */
    }
    .contact-icon-link:last-child {
        margin-bottom: 0;
    }
}