*,
*::before,
*::after {
    box-sizing: border-box;
}

*{
    margin: 0;
    padding: 0;
    
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: #f9f9f9;
}


/* --header---------------------------------------------------*/

header{
    position: sticky;
    top: 0;
    z-index: 1000;

    background: white;
    color: #684A52;
    padding: 20px 10%;
}

.logo img {
    height: 45px;   /* controla el tamaño */
    width: auto;
    display: block;
}



#menu a{
    position: relative;
    text-decoration: none;
    color: #684A52;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.2rem;

}

#menu a:hover{
    color: #857885;
}

#menu a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #A4BEF3;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

#menu a:hover:after{
    transform: scaleX(1);
}


h1{
    white-space: nowrap;
}

h1 a{
    text-decoration: none;
    color: inherit;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul{
    display: flex;
    list-style: none;
    gap: 30px;
    margin-left: auto;

}

section{
    padding: 60px 20px;
}

html{
    scroll-behavior: smooth;
}


/* --menu hamburguesa--------------------------------------*/

#hamburguesa {
    display: none;
    font-size: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    width: 30px;
}

#hamburguesa span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #684A52;
    left: 0 ;
    transition: all 0.3s ease;
}

#hamburguesa span:nth-child(1) {
    top: 0;
}

#hamburguesa span:nth-child(2) {
    top: 9px;
}

#hamburguesa span:nth-child(3) {
    bottom: 0;
}

#hamburguesa.activo span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

#hamburguesa.activo span:nth-child(2) {
    opacity: 0;
}

#hamburguesa.activo span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 10px;
}





@media (max-width: 968px) {
    nav ul {
        flex-direction: column;
        background: white;
        position: absolute;
        top: 70px;
        right: 0;
        padding: 30px;
        width: 250px;

        transform: translateX(100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1100;
    }

    nav ul.activo{
        transform: translateX(0);
        opacity: 1;
    }

    #hamburguesa{
        display: block;
        margin-left: auto;
        cursor: pointer;
    }


    
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
}

#overlay.activo {
    opacity: 1;
    pointer-events: all;
}





/* --Inicio---------------------------------------------------*/

#inicio{
    height: 80vh;
    background: url(images/webwallpaper_masforma_shadow.png) center/cover no-repeat;
    
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

#inicio .contenido{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#inicio h2{
    font-size: 3rem;
    margin: 0;
    opacity: 0.9;
    color: white;
    text-shadow: 
    -2px -2px 0 #684A52,
    2px -2px 0 #684A52,
    -2px  2px 0 #684A52,
    2px  2px 0 #684A52;
}

#inicio p{
    font-size: 1.9rem;
    font-weight: 400;
    opacity: 0.9;
    color: white;
    text-shadow: 
    -1px -1px 0 #684A52,
    1px -1px 0 #684A52,
    -1px  1px 0 #684A52,
    1px  1px 0 #684A52;
}

#inicio .btn{
    margin-top: 10px;
    padding: 14px 30px;
    background:white;
    color: #684A52;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: 0.3s ease;
}

#inicio .btn:hover {
    background: #684A52;
    color: white;
}

@media (max-width: 768px) {
    #inicio h2 {
        font-size: 1.8rem;
    }

    #inicio p {
        font-size: 1rem;
    }

    #inicio .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}


@media (max-width: 768px){
    #inicio{
        height: 35vh;
        background-position: 47% center;
    }
}




/* -Planes----------------------------------------------*/

#planes {
    padding: 100px 20px;
    text-align: center;
    color: #684A52;
    background: linear-gradient(
        to bottom,
        #f4f1f6 10%,
        #f4f1f6 90%,
        #f9f9f9 100%
    );
}

.titulo-planes{
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.subtitulo-planes{
    font-size: 1.5rem;
    margin-bottom: 70px;
}

.contenedor-planes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    
}

.card {
    background: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-20px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 1.5rem;
}

.precio{
    color: #A4BEF3;
    font-size: 2rem;
    font-weight: 700;
}

.renov {
    color: #A4BEF3;
    font-size: 1.1rem;
}


.card ul{
    list-style: none;
    padding: 0;
    text-align: left;
}

.card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.card ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #A4BEF3;
    font-weight: bold;
}

.card {
    position: relative;
}

.destacado {
    border: 2px solid #684A52;
    transform: scale(1.03);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #684A52;
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}


.btn-plan {
    margin-top: auto;
    padding: 12px 20px;
    background: #684A52;
    text-decoration: none;
    color: white;
    border-radius: 25px;
}

.btn-plan:hover {
    background: #857885;
    color: black;
}


@media (max-width: 768px){
    .contenedor-planes {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 30px;
    }
}


/* ---xhosting---------------------------------------*/


#hosting {
    padding: 120px 20px;
    text-align: center;
    color: #684A52;
    overflow: hidden;
    
}

.subtitulo-hosting {
    font-size: 1.5rem;
    margin-bottom: 20px;
    margin-top: -40px;
}

.subtitulo-hosting2 {
    font-size: 1.5rem;
    margin-bottom: 60px;
}

.titulo-hosting {
    font-size: 2.3rem;
    margin-bottom: 20px;
}

.contenedor-hosting {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}


.titulo-hosting {
    font-size: 2.3rem;
    margin-bottom: 70px;
}

.contenedor-hosting {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}


@media (max-width: 768px) {
    .contenedor-hosting {
        grid-template-columns: 1fr;
    }
}



/* ---galeria de proyectos---------------------------------------*/

.contenedor-proyectos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;

}

#proyectos {
    background: #f9f9f9;
    padding: 10px 20px;
}


@media (max-width: 768px){
    .contenedor-proyectos {
        grid-template-columns: 1fr;
    }
}

#proyectos h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

#proyectos .titulo-proyectos {
    color: #684A52;
    margin-bottom: 70px; 
    
}

.filtros {
    margin-bottom: 70px;
}



.proyecto {
    
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.03s ease;
}

.proyecto:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}


.imagen {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.proyecto:hover img {
    transform: scale(1.05);
}

.info {
    padding: 25px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #684A52;
}

.categoria {
    font-size: 0.8rem;
    font-weight: 600;
    color: #87A0B2;
    text-transform: uppercase;
    letter-spacing: 1px;
}



.info h3 {
    font-size: 1.4rem;
}

.info p {
    font-size: 1rem;

    
}


/* ---filtro--------------------------------------*/



.proyecto {
    transition: all 0.3s ease;
}

.proyecto.oculto {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    display: none;
}


.filtros {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.filtros button {
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid #87A0B2;
    background: transparent;
    color: #87A0B2;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtros button:hover {
    background: #87A0B2;
    color: white;
    transform: translateY(-2px);
}

.filtros button.activo {
    background: #87A0B2;
    color: white;
    box-shadow: 0 5px 15px rgba(104, 74, 82, 0.3);
}

/* ----info------------------------------------*/

#informacion {
    background: linear-gradient(
        to bottom,
        #f9f9f9 0%,
        #f4f1f6 10%,
        #f4f1f6 90%,
        #f9f9f9 100%
    );
    padding: 120px 20px;
}

#informacion .titulo-info {
    color: #684A52;
    margin-bottom: 30px; 
    text-align: center;
    font-size: 2.5rem;
}

#informacion .subtitulo {
    color: #684A52;
    margin-bottom: 70px; 
    text-align: center;
    font-size: 1.5rem;
}




.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-header img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 5px;
}


.card2 {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);

    display: flex;
    flex-direction: column;
    height: 100%;
}

.card2,
.card2 p,
.card2 li {
    word-break: break-word;
    overflow-wrap: break-word;
}


.cards-servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1500px;
    margin: 0 auto;
    align-items: stretch;
}

.card2:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card2 h3 {
    color: #684A52;
    font-size: 1.6rem;
}

.card2 p {
    margin-bottom: 15px;
    color: #684A52;
    font-size: 1.3rem;
}

.card2 li {
    margin-bottom: 15px;
    color: #684A52;

}


.card2 ul{
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: auto;
}

.card2 ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.card2 ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #A4BEF3;
    font-weight: bold;
}

.card2 {
    position: relative;
}

@media (max-width: 768px) {
    .cards-servicios {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------*/

.col-izq,
.col-der {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#informacion .titulo-info2 {
    color: #684A52;
    margin-top: 100px; 
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

#informacion .titulo-bloque {
    color: #684A52;
    margin-bottom: 30px; 
    text-align: center;
    font-size: 1.6rem;
}

#informacion .contenedor2 {
    max-width: 1500px;   
    margin: 0 auto;
    padding: 0;     
}

.grid-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    padding-top: 20px;
}

.card-extra {
    background: #ffffff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin-bottom: 40px;
    color: #684A52;
    width: 100%;
}

.card-extra ul {
    padding-left: 25px; 
    margin-top: 15px;
}

.card-extra ul li {
    margin-bottom: 8px;
}

.alerta {
    background: #A4BEF3;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #684A52;
}

.plazos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.plazo-box {
    background: #A4BEF3;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.plazo-box span {
    display: block;
    font-size: 0.9rem;
    color: #857885;
}

.plazo-box strong {
    display: block;
    margin-top: 5px;
    font-size: 1.1rem;
    color: #684A52;
}

@media (max-width: 900px) {
    .grid-extras {
        grid-template-columns: 1fr;
    }

    .plazos-grid {
        grid-template-columns: 1fr;
    }
}

/* -----extra------------------------------------*/

.card-extra.faq {
    max-width: 900px;   /* más compacto */
    margin: 0 auto;     /* lo centra */
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #684A52;
}

.faq-question span {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}


.faq-answer > * {
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 0.95rem;
    color: #857885;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.active .faq-answer > * {
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 15px;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}


/* ----------------------------------------------*/


#contacto {
    background: #f9f9f9;
    padding: 120px 20px;
    color: #684A52;
}

.contenedor-contacto {
    max-width: 1300px;
    margin: 0 auto;
    
}

.contacto-header {
    text-align: center;
    margin-bottom: 70px;
}

.contacto-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contacto-header p {
    color: #857885;
}

/* GRID PRINCIPAL */
.contacto-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr;
    gap: 60px;
}

/* ============================= */
/* INFORMACIÓN IZQUIERDA */
/* ============================= */

.contacto-info h3 {
    margin-bottom: 20px;
}

.contacto-info p {
    margin-bottom: 30px;
    color: #857885;
}

/* ITEM DE INFO (ICONO + TEXTO) */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    margin-top: 4px;
    border-radius: 5px;
}

/* TEXTO A LA DERECHA DEL ICONO */
.info-text strong {
    margin-top: 6px;
    display: block;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.info-text span {
    display: block;
    font-size: 1rem;
    color: #684A52;
}

/* ============================= */
/* FORMULARIO */
/* ============================= */

.contacto-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
    color: #857885;  
    font-weight: 400;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #684A52;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
    margin-top: 20px;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    border-color: #684A52;
}

.contacto-form button {
    width: 100%;
    padding: 15px;
    background: #684A52;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    transition: 0.3s;
}

.contacto-form button:hover {
    background: white;
    color: #684A52;
    border: 1.5px solid #684A52;
}




@media (max-width: 900px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}





/* ----footer---------------------------------------*/

#footer {
    background: #684A52;
    color: white;
    padding: 80px 20px 30px;
}

.contenedor-footer {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 50px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
}

.footer-col p {
    color: #f1f1f1;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #f1f1f1;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #A4BEF3;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #ddd;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


.footer-social {
    margin-top: 20px;
}

.footer-social a img {
    width: 45px;
    height: 45px;
    transition: 0.3s ease;
}

.footer-social a img:hover {
    transform: scale(1.1);
}



/* ----------------------------------------------*/


#spark-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}


/* ----------------------------------------------*/
section > * {
    transform: translateY(40px);
    opacity: 0;
    transition: all 1s ease;
}

section.active > * {
    transform: translateY(0);
    opacity: 1;
}
/* ----------------------------------------------*/

body {
    overflow-x: hidden;
}
