/* Variables de tema */
:root {
    --bg-dark: #0f0f0f;
    --bg-card: #1e1e1e;
    --text-light: #f5f5f5;
    --text-muted: #e5e5e5;
    --accent: #b2ff73;
    --accent-hover: #a8fd62;
    ;
    --font-sans: 'Poppins', sans-serif;
}

/* Reset y tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-light);
    background: var(--bg-dark);
}

html,
body {
    height: 100%;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Contenedor centrado */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Top bar */
.top-bar {
    background: rgba(0, 0, 0, 0.879);
    color: var(--bg-dark);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Header y navegación */
.header {
    background: #0f0f0feb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.header .logo img {
    max-height: 70px;
    /* o el alto que necesites */
    width: auto;
    display: block;
}


.nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav a {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: background 0.3s;
}

.nav a:hover {
    background: rgba(49, 91, 1, 0.1);
    color: rgb(255, 225, 133);
}

/* Base nav */
.nav {
    position: relative;
}

/* Oculta el menú en mobile */
.nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mostrar hamburguesa y esconder nav en mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav ul {
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(46, 46, 46, 0.988);
        flex-direction: column;
        width: 200px;
        padding: 2rem;
        display: none;
        border-radius: 8px 0 0 8px;
        font-size: 1.5rem;
    }

    .nav.active ul {
        display: flex;
    }
}

/* Cruz animada */
.nav.active .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav.active .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.nav.active .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Botones */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    transition: background 0.3s, color 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: rgb(58, 104, 58);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--bg-dark);
    align-items: center;
}

#galaxy-section {
    position: fixed;
    /* fija al viewport */
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    width: 150%;
    height: 150%;
    z-index: -1;
    /* detrás del contenido */
    pointer-events: none;
    /* para que no interfiera con clicks */
    overflow: hidden;
    /* recorta cualquier desborde */
}

/* El canvas ocupa todo el contenedor fijo */
#galaxy-container canvas {
    display: block;
    width: 100%;
    height: 50%;
}

/* Hero */
#hero {
    text-align: center;
    padding: 4rem 0 4rem;
    background: rgba(0, 0, 0, 0.0);
}

#hero h1 {

    font-size: 2.8rem;
    line-height: 1.2;
}

#hero h1 span {
    color: var(--accent);
}

#hero p {
    margin: 1rem 0 2.5rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    #hero {
        padding: 2rem 0 3rem;
        /* menos espacio arriba en móviles */
    }
}

/* Secciones de tarjetas y grids */
.services .grid,
.portfolio .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card,
.project {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover,
.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: var(--accent);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {

    .services .grid,
    .portfolio .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .card,
    .project {
        padding: 1.2rem;
        margin: 0 0.5rem;
    }

    .card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Eliminar efectos hover en móviles */
    .card:hover,
    .project:hover {
        transform: none;
        box-shadow: none;
    }

    /* Ajustar container padre */
    .services .container,
    .portfolio .container {
        padding: 0 1rem;
    }
}

/* Versión para móviles muy pequeños */
@media (max-width: 480px) {

    .card,
    .project {
        padding: 1rem;
        margin: 0;
    }

    .card h3 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    .services .grid,
    .portfolio .grid {
        gap: 0.8rem;
    }
}

/* Estilos generales para servicios */
.services .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.services .card {
    background: var(--bg-card);
    padding: 1.8rem;
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.services .card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.services .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.services .card:hover::before {
    transform: scaleX(1);
}

.services .card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--text-light);
    position: relative;
    padding-bottom: 0.5rem;
}

.services .card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.services .card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 1.2rem;
}

/* Media Query para móviles */
@media (max-width: 768px) {
    .services .grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 1.5rem;
    }

    .services .card {
        padding: 1.4rem;
        margin: 0 0.5rem;
    }

    .services .card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .services .card h3::after {
        width: 30px;
    }

    .services .card p {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    /* Eliminar efectos hover en móviles */
    .services .card:hover {
        transform: none;
        box-shadow: none;
    }

    .services .card:hover::before {
        transform: scaleX(0);
    }

    /* Ajustar grid container */
    .services .container {
        padding: 0 1rem;
    }
}

/* Versión móvil pequeña (opcional) */
@media (max-width: 480px) {
    .services .card {
        padding: 1.2rem;
        margin: 0;
    }

    .services .card h3 {
        font-size: 1.1rem;
    }

    .services .card p {
        font-size: 0.88rem;
    }
}

.phases {
    /*  width: 100%;
    background-color: #1e1e1e;
    padding: 3rem 0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    max-width: 1200px;*/
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 3rem auto 2rem;
    max-width: 1200px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);

}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 30px;
    background: var(--primary-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-40px);
}

.phases-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 1rem;
    position: relative;
    max-width: 1000px;
    margin: auto;

}

.phases-content::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgb(91, 250, 63);
    transform: translateX(-50%);
}

.phase {
    padding: 0 1rem;
    max-width: 600px;

}

.phase.left {
    text-align: right;
    grid-column: 1;

}

.phase.right {
    text-align: left;
    grid-column: 2;
}

.phase .number {
    display: block;
    font-size: 2.2rem;
    font-weight: bold;
    color: rgb(255, 225, 133);
    margin-bottom: 0.5rem;
}

.phase .title {

    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    color: rgb(104, 248, 82);
}

.phase .text {
    line-height: 1.7;
}

@media(max-width:768px) {
    .phases-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        grid-template-columns: 1fr;
    }

    .phases-content::before {
        display: none;
    }

    .phase {
        text-align: center !important;
        margin: 0.5rem 0;
    }

}

/*
.highlight {
    background: var(--bg-card);
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
*/

/* Estilos para los iconos de redes sociales */
.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.redes-sociales img {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.redes-sociales img:hover {
    transform: translateY(-3px);
}

/* Estilos para la sección de marketing */
.marketing-box {
    background: linear-gradient(145deg, rgba(49, 49, 49, 0.803) 0%, rgba(255, 255, 255, 0.099) 100%);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 3rem auto 2rem;
    max-width: 1200px;
    backdrop-filter: blur(9px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.marketing-box h2 {
    color: var(--color-primary);
    font-size: 1.9rem;
    margin-bottom: 1.3rem;
    text-align: center;
}

.marketing-box h3 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    text-align: center;

}

.contenedorseco {
    display: flex;
    justify-content: center;
    /* Centrado horizontal */
    margin: 1rem 0;
    /* Opcional: añade espacio arriba/abajo */
}

.btn-seco {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    transition: background 0.3s, color 0.3s;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);

}

.btn-seco:hover {
    background: var(--accent);
    color: var(--bg-dark);
}



.servicio-texto {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 1.5rem 0;
    text-align: center;
}

/* otra cosa*/
.beneficios-lista {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.beneficios-lista li {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.features {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}

.features li {
    font-weight: 600;
    position: relative;
    padding-left: 1.5rem;

}

.features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}


.stars {
    color: var(--accent);
    font-size: 1.1rem;
}

/* How-to / pasos */
.how-to ol {
    list-style: none;
    counter-reset: paso;
    margin: 2rem 0;
}

.how-to li {
    counter-increment: paso;
    background: var(--bg-card);
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    position: relative;
}

.how-to li::before {
    content: counter(paso, decimal-leading-zero);
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: var(--bg-dark);
    width: 2.2rem;
    height: 2.2rem;
    line-height: 2.2rem;
    border-radius: 50%;
    font-weight: bold;
}

/* FAQ */
.faq details {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 3rem auto 2rem;
    max-width: 1200px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.286);
}

.faq h2 {
    font-size: 2rem;
    padding: 0.5rem;
    margin: 3rem auto 2rem;
    text-align: center;
}

.faq summary {
    padding: 2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq details[open] summary {
    background: var(--accent);
    color: var(--bg-dark);
}

.faq details p {
    padding: 1rem 1.5rem;
    color: var(--text-muted);
}

/* Portafolio */
.portfolio .project img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.portfolio .project h3 {
    text-align: center;
    font-size: 1rem;
    color: var(--accent);
}

/* CTA final */
.final-cta {
    text-align: center;
    padding: 4rem 0;
}

.final-cta h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: #111;
    color: #fff;
    padding: 3rem 1rem;
    font-family: 'Arial', sans-serif;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    /* Usa un color definido si tenés una paleta */
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary-color);
    /* Cambia a tu color secundario */
}

.footer p {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
}

/* Sección de precios */
.containerprice {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.containerprice h2 {
    margin: 3.5rem auto 2rem;
    font-size: 2rem;
    color: whitesmoke;

}

/* Contenedor de tarjetas */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Tarjetas individuales */
.cardprice {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 0 12px rgba(184, 251, 117, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cardprice:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.cardprice h3 {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.cardprice p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cardprice .price {
    margin: 1rem 0;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
}

.cardprice .price span {
    font-size: 1rem;
    vertical-align: top;
    margin-right: 2px;
    color: var(--accent);
}

.cardprice .price p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: normal;
    margin-top: 0.3rem;
}

/* Botón */
.cardprice .btn {
    margin: 1rem 0;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
}

.cardprice .btn:hover {
    background: rgb(250, 188, 73);
}

/* Lista de características */
.cardprice ul {
    list-style: none;
    margin-top: 1rem;
    padding: 0;
    text-align: left;
}

.cardprice ul li {
    padding: 0.4rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.7rem;
    font-size: 1.2rem;
}

.cardprice ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: rgb(252, 200, 47);
    font-size: 1.2rem;

}

@media (max-width: 768px) {

    /* Ajustes generales de tarjetas */
    .cardprice {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }

    /* Títulos */
    .cardprice h3 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    /* Precios */
    .cardprice .price {
        font-size: 1.5rem;
        margin: 0.8rem 0;
    }

    .cardprice .price span {
        font-size: 0.9rem;
    }

    /* Textos */
    .cardprice p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Lista de características */
    .cardprice ul li {
        font-size: 1rem;
        padding-left: 1.2rem;
        line-height: 1.4;
    }

    .cardprice ul li::before {
        font-size: 1rem;
        left: -0.2rem;
    }

    /* Botón */
    .cardprice .btn {
        padding: 0.5rem 1.2rem;
        margin: 1.5rem 0;
        font-size: 0.9rem;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    /* Ajuste hover para móviles */
    .cardprice:hover {
        transform: none;
        box-shadow: 0 0 12px rgba(184, 251, 117, 0.4);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    align-items: center;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    margin: auto;
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.carousel-slide img.active {
    display: block;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}