/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    width: 100%;
}

html {
  scroll-behavior: smooth;
}

/* Header y Nav */
nav {
    display: flex;
    justify-content: space-between;
    height: 5rem;
    align-items: center;
    padding: 0 .3rem;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo img {
    width: 230px;
    height: 130px;
}

.menu-toggle{
    display: none;
}

nav .nav-links a {
    margin-right: 3rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav .nav-links a:hover {
    color: #bf930d;
}

/* Estilos del Hero */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
    overflow: hidden; /* Evita desbordamientos */
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2; /* Mantiene la imagen en el fondo */
}

/* Capa oscura */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* Ajusta la opacidad según lo necesites */
    z-index: -1;
}

/* Ajuste del degradado */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30vw;
    max-width: 300px;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
    z-index: -1;
}

/* Estilo del título */
.hero-title {
    position: relative;
    color: white;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    font-size: 3.5rem;
    font-weight: bold;
    z-index: 1;
}

/* Sección de trabajo */
.work-method {
    padding: 50px 5%;
    display: flex;
    flex-direction: column;
}

.work-method h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.work-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Imagen */
.work-content img {
    width: 50%; /* Mantiene la imagen en la mitad del contenedor */
    height: 380px; /* Ajusta la altura deseada */
    object-fit: cover; /* Evita recortes y mantiene la imagen completa */
    border-radius: 10px;
    display: block;
    margin: 0 auto; /* Asegura que la imagen esté centrada */
}

/* Contenedor del texto */
.text-container {
    flex: 1;
    display: flex;
    flex-direction: column; /* Acomoda los elementos en columna */
}

/* Texto */
.work-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Botón */
.btn-content {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #bf930d;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
    align-self: flex-start; /* Mantiene el botón alineado a la izquierda del texto */
}

.btn-content:hover {
    background: #4e84a7;
}

/* Resultados */
.results {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 1.5rem;
    padding: 50px 5%;
    text-align: center;
}

/* Tarjetas */
.result-card {
    background: none;
    color: #4e84a7;
    padding: 15px 20px;
    border: .5px solid #22221c;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

/* Icono de tilde */
.check {
    font-size: 1.2rem;
    color: #bf930d;
    margin-right: 8px;
}

/* Efecto hover */
.result-card:hover {
    border-color: #4e84a7;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}


/* Planes de marketing */
.plans {
    text-align: center;
    padding: 50px 5%;
}

.animated-title {
    display: inline-block;
    font-size: 2.5rem;
    color: #4e84a7;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
}

.plans p {
    font-size: 1rem;
    margin-bottom: 1.3rem;
}

.plan-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    margin-bottom: 1.7rem;
}


.plan-card {
    padding: 30px 15px 50px 15px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    flex: 1 1 calc(33.333% - 30px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 450px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 5%, #4e84a7 80%);
    background-size: 300% 300%;
    background-position: 50% 50%;
    animation: moveGlow 6s infinite linear;
    transition: transform 0.3s ease-in-out, 
                box-shadow 0.4s ease-in-out, 
                background 0.6s ease-in-out, 
                color 0.2s ease-in-out;
}
    
@keyframes moveGlow {
    0% {
        background-position: 40% 40%;
    }
    25% {
        background-position: 60% 30%;
    }
    50% {
        background-position: 70% 70%;
    }
    75% {
        background-position: 30% 60%;
    }
    100% {
        background-position: 40% 40%;
    }
}
.plan-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: start;
}

.plan-card li {
    position: relative; /* Agregar esto */
    padding-left: 24px;
    font-size: 16px;
    color: #22221c;
    line-height: 1.6;
}

.plan-card ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #bf920d;
    font-weight: bold;
}

.plan-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(115deg, #eff2f3, #4e84a7);
    color: rgb(255, 255, 255);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}


/* Sección de servicios */
.servicios h2 {
    text-align: center;
    letter-spacing: 1px;
    font-size: 1.8rem;
    padding: 20px 0;
    color: #4e84a7;
}

/* Contenedor Grid */
.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 15px;
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* Tarjetas de servicio */
.servicio {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

/* Agregar imágenes a cada tarjeta */
.contenido { background-image: url('/assets/img/servicios/img-serv/edicion.jpg'); }
.redes { background-image: url('/assets/img/servicios/img-serv/redes.jpg'); }
.web { background-image: url('/assets/img/servicios/img-serv/desarrollo.jpg'); }
.branding { background-image: url('/assets/img/servicios/img-serv/branding.jpg'); }
.ads { background-image: url('/assets/img/servicios/img-serv/ads.jpg'); }

/* Título dentro de la tarjeta */
.servicio h3 {
    position: absolute;
    top: 20%;
    width: 100%;
    transform: translateY(-50%);
    background: rgba(78, 132, 167, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.9);
}

/* Botón Consultar */
.consultar {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #bf930d;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.consultar:hover {
    background-color: #a3750a;
}

/* Efecto Hover 3D */
.servicio:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


.serv {
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    max-width: 800px;
    margin: 15px auto;
}

.serv h3 {
    color: #4e84a7;
    margin-bottom: 15px;
}

.serv .links {
    display: flex;
    justify-content: center;
    gap: 10px; /* Espacio entre enlaces */
    flex-wrap: wrap; /* Permite que se acomoden en otra línea si no caben */
}

.serv a {
    color: #333;
    font-size: 1rem;
    text-decoration: none;
    background-color: rgba(17, 16, 16, 0.068); /* Ligero fondo para destacar */
    padding: 10px 25px;
    border: .3px solid #4e84a7;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap; /* Evita que los enlaces se dividan en varias líneas */
}

.serv a:hover {
    color: #fff;
    background-color: #4e83a7ab;
    transform: scale(1.05);
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #22221c;
    color: #f9f8f4;
}

/* Estilo para la parte izquierda del footer */
.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 48%;
}

footer img {
    width: 260px;
}

footer h2 {
    font-size: 1.7rem;
    font-weight: 600;
    color: #f9f8f4;
    margin: .3rem 0;
    line-height: 1.6;
    letter-spacing: 1px;
    text-align: left;
}

/* Estilos para Contacto y Redes */
.contacto,
.redes {
    display: flex;
    flex-direction: row;
    gap: 1.5rem; /* Espacio entre los elementos */
    margin-top: 0; /* Espacio con el elemento superior */
}


.contacto a,
.redes a {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Espacio entre el icono y el texto */
    text-decoration: none;
    color: #f9f8f4;
    font-size: 1.2rem;
    transition: color 0.3s ease-in-out;
}

.contacto a:hover,
.redes a:hover {
    color: #bf930d; /* Cambio de color al pasar el cursor */
}

.contacto i,
.redes i {
    font-size: 1.2rem;
}


/* Estilo para la parte de contacto */
footer .contacto a,
footer .redes a {
    color: #4e84a7;
    text-decoration: none;
    margin: .5rem 0;
}

footer .contacto a:hover,
footer .redes a:hover {
    text-decoration: underline;
}

/* Estilo para la parte derecha del footer (formulario) */
.footer-right {
    width: 48%;
    padding-left: 2rem;
}

.footer-right form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-right h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #f9f8f4;
    margin-bottom: .5rem;
}

/* Estilo para las filas dentro del formulario */
.form-row {
    display: flex;
    justify-content: space-between;
    gap: .7rem;
}

.form-column {
    flex: 1;
}

/* Estilo para las etiquetas */
footer .footer-right label {
    font-weight: 400;
    color: #f9f8f4;
}

/* Estilo para los inputs y textarea */
footer .footer-right input,
footer .footer-right textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: transparent;
    color: #ffffff;
    width: 100%;
}

footer .footer-right textarea {
    resize: vertical;
}

/* Estilo para el botón de enviar */
footer .footer-right button {
    margin-top: .5rem;
    padding: 0.8rem 3rem;
    background-color: #bf920d;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    align-self: flex-end; /* Coloca el botón a la derecha */
    transition: .5s;
}

footer .footer-right button:hover {
    color: #22221c;
    background-color: #f5f4f0;
}

.footer-copy {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.9rem;
    color: #f9f8f4;
    text-align: left;
}

.footer-copy a {
    color: #bf930d;
    text-decoration: none;
}

.footer-copy a:hover {
    text-decoration: underline;
}


@media (max-width: 430px) {


    nav {
        flex-direction: row; /* Mantiene los elementos en línea */
        justify-content: space-between; /* Separa el logo y el menú */
        align-items: center;
        padding: 0 1rem; /* Añade espacio a los lados */
    }

    nav .logo img {
        margin: -35px; /* Elimina el margen negativo */
        width: 180px; /* Ajusta el tamaño si es necesario */
        height: auto;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto; /* Empuja el icono a la derecha */
    }

    .menu-toggle i {
        font-size: 1.7rem; /* Ajusta el tamaño del icono */
        color: #4e84a7; /* Color del icono */
        transition: transform 0.3s ease-in-out;
    }
    .menu-toggle i.fa-xmark {
        transform: rotate(90deg); /* Gira el icono al abrir */
    }
    
    .menu-toggle i.fa-bars-staggered {
        transform: rotate(0deg); /* Vuelve a su posición original */
    }

    .nav-links {
        position: fixed;
        top: 5rem;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        text-align: start;
        padding: 0;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        height: 0;
        transition: height 0.4s ease-in-out;
    }

    .nav-links a {
        margin: 1rem .8rem;
        display: block;
        padding: .3rem 0;
        border-bottom: 1px solid #0f0e0e21;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links.active {
        height: 235px; /* Ajusta según la cantidad de enlaces */
        padding: 1rem 0;
    }


    .hero {
        height: 70vh; /* Ajusta según tu diseño */
        overflow: hidden;
    }

    .hero h1 {
        left: 0;
        top: 0;
        text-align: start;
        font-size: 2.3rem;
    }

    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.35); /* Ajusta la opacidad según lo necesites */
        z-index: -1;
    }
    
    /* Ajuste del degradado */
    .hero::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 15vw;
        max-width: 300px;
        height: 100%;
        background: linear-gradient(to left, rgba(0, 0, 0, 0.456), rgba(0, 0, 0, 0.1), transparent);
        pointer-events: none;
        z-index: -1;
    }

    .work-method {
        padding: 0 1rem;
    }
    
    .work-method h2 {
        text-align: center;
        font-size: 1.7rem;
        color: #4e84a7;
        margin: 1.5rem 0;
    }

    
    .work-content {
        flex-direction: column;
        text-align: start;
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .work-method .work-content img{
        width: 100%;
    }
    
    .work-method .work-content .text-container {
        text-align: start;
        width: 100%;
    }

    @keyframes zoomIn {
        0% { transform: scale(1); opacity: 0.8; }
        50% { transform: scale(1.02); opacity: 1; }
        100% { transform: scale(1); opacity: 0.8; }
    }
    
    .results {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 2rem 0;
        gap: .5rem;
    }
    
    .result-card {
        width: 90%;
        max-width: 800px;
        padding: 1rem;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        text-align: center;
        border-radius: 8px;
        animation: zoomIn 3s infinite ease-in-out;
        opacity: 0.8;
    }
    
    /* Agregar retraso en la animación para el efecto cascada */
    .result-card:nth-child(1) { animation-delay: 0s; }
    .result-card:nth-child(2) { animation-delay: 0.2s; }
    .result-card:nth-child(3) { animation-delay: 0.4s; }
    .result-card:nth-child(4) { animation-delay: 0.6s; }
    .result-card:nth-child(5) { animation-delay: 0.8s; }
    .result-card:nth-child(6) { animation-delay: 1s; }

    .plans {
        padding: 0 1.2rem;
    }

    .animated-title {
        display: block;
        width: 100%;
        text-align: center;
        white-space: normal; /* Permite que el texto se ajuste al ancho */
        word-wrap: break-word;
        font-size: 1.8rem; /* Ajusta según necesites */
    }

    .plan-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
    }

    .plan-card {
        width: 100%;
        max-width: 375px;
        text-align: center;
        padding: 1.5rem;
        
    }

    .servicios h2{
        padding: 30px 0 0 0;
    }

    .serv{
        width: 90%;
    }

    .serv .links{
        padding: .3rem .7rem;
    }

    .serv .links a {
        font-size: .9rem;
    }

    footer {
        flex-direction: column; /* Cambiar a columna */
        padding: .7rem; /* Ajustar el padding para una mejor distribución */
        position: relative;
    }

    /* Estilo para la parte izquierda del footer (logo y título) */
    .footer-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        position: relative;
        justify-content: flex-start;
        align-items: flex-start; 
    }

    .footer img {
        position: absolute;
        top: 0;
        left: 0;
        width: 60px; /* Ajusta el tamaño según sea necesario */
        height: auto;
    }

    .footer-left img {
        margin-left: -40px;
        margin-top: -30px;
    }

    .footer-left .contacto {
        flex-direction: row;
    }

    .footer-contact {
        flex-direction: row; /* Mantiene los elementos en línea */
        justify-content: flex-end; /* Separa el logo y el menú */
        align-items: center;
        padding: 1rem 0 ; /* Añade espacio a los lados */
    }

    .footer-contact .contacto i {
        font-size: 1.1rem;
        color: #4e84a7;
    }

    footer h2 {
        font-size: 1.3rem;
        margin: 0;
    }

    /* Estilo para la parte derecha del footer (formulario) */
    .footer-right {
        order: 1;
        width: 100%;
        padding: 0; /* Eliminar padding izquierdo */
        margin-bottom: 1rem; /* Espacio entre el formulario y las columnas de contacto/redes */
    }

    .footer-right h3 {
        color: #4e84a7;
        font-size: 1.4rem;
    }

    /* Estilo para las filas dentro del formulario */
    .form-row {
        flex-direction: column; /* Cambiar la dirección a columna */
        gap: .3rem;
 
    }

    .form-column {
        flex: 1;
    }

    footer .footer-right textarea {
        resize: vertical;
    }

    footer .footer-right button:hover {
        color: #22221c;
        background-color: #f5f4f0;
    }

    /* Estilo para las columnas de contacto y redes */
    .contacto,
    .redes {
        display: flex;
        flex-direction: column; /* Cambiar a columna */
        gap: 1rem;
        width: 100%;
    }

    .contacto a,
    .redes a {
        align-items: flex-start;
        gap: 0.3rem;
        font-size: 1rem;
    }

    .contacto i,
    .redes i {
        font-size: 1rem;
    }
}

/* ====== ESTILOS PARA EL NAVEGADOR DE INSTAGRAM ====== */
@media screen and (max-width: 820px) and (min-width: 360px) {

    /* Asegurar que el nav no se corte */
    nav {
        height: auto;
        padding: 1rem;
    }

    nav .logo img {
        width: 200px;
        height: auto;
    }

    .hero {
        height: 70vh;
        text-align: center;
    }

    .hero-text {
        font-size: 2.5rem;
    }

    /* Ajustes para el footer */
    footer {
        padding: 1rem;
    }

    .footer-left {
        text-align: center;
    }

    .footer-left img {
        width: 200px;
    }

    .footer-contact {
        justify-content: center;
    }

    .footer-right form {
        width: 90%;
    }

    .footer-right input,
    .footer-right textarea {
        width: 100%;
    }

}

