/* Fondo negro y canvas detrás del contenido */
:root {
    --safe-top: 0px;
    --safe-bottom: 0px;
    --viewport-height: 100vh;
}

@supports (padding: env(safe-area-inset-top)) {
    :root {
        --safe-top: env(safe-area-inset-top);
        --safe-bottom: env(safe-area-inset-bottom);
    }
}

@supports (height: 100svh) {
    :root {
        --viewport-height: 100svh;
    }
}

@supports (height: 100dvh) {
    :root {
        --viewport-height: 100dvh;
    }
}

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    padding-bottom: var(--safe-bottom);
}

/* Canvas de fondo fijo */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0B0D12;
    z-index: -1; /* detrás de todo el contenido */
}

div, body, header, nav, ul, footer {
    box-sizing: border-box;
}

/* --- Sections --- */
section {
    min-height: 10vh;
    padding: 120px 20px 60px;
    max-width: 1000px;
    margin: auto;
    text-align: center;
    color: #fff;
    scroll-margin-top: calc(90px + var(--safe-top));
}

/* --- Header --- */

h1 {
    color: #fff;
    margin-right: 20px;
}

header {
    background-color: #1E5FA8;
    width: 100%;
    top: 0;
    position: sticky;
    z-index: 1000;
    padding-top: var(--safe-top);
}

.header_logo {
    max-width: 100%;
    width: 40px;
    margin: 5px 40px;
}

.header_nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 60px;
}


.header_list {
    display: flex;
    padding: 0;
    justify-content: center;
}

.header_item{
    list-style: none;
    margin: 9px;
}

a {
    color: #fff;
    display: inline-block;
    padding: 6px 9px;
    text-decoration: none;
}

a:hover {
    opacity: 0.7;
}

/* --- Menú responsive --- */

.menu_toggle {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    padding: 15px;
}

@media (max-width: 768px) {
    .header_nav {
        justify-content: space-between;
    }

    .menu_toggle {
        display: block;
    }

    .header_list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        width: 100%;
        left: 0;
        background-color: #1E5FA8;
        margin: 0;
        padding: 0;
    }

    .header_list.active {
        display: flex;
    }

    .header_item {
        text-align: center;
        border-top: 1px solid #ffffff33;
    }

    .header_item a {
        padding: 15px;
        width: 100%;
    }
}

/* --- Inicio --- */
.inicio h2 {
    font-size: 2.5rem;
}

.btn-principal {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 30px;
    border-radius: 30px;
    background: linear-gradient(135deg, #4DB6FF, #66E6FF);
    color: #fff;
    text-decoration: none;
}

/* --- Info inicio --- */

.inicio_info {
    margin: 30px auto 25px;
    max-width: 500px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #2F8EDB;
}

.inicio_info .precio {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #66E6FF;
}

.beneficios {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.beneficios li {
    font-size: 0.95rem;
    margin: 6px 0;
    color: #fff;
    position: relative;
    padding-left: 18px;
}

.beneficios li::before {
    content: "✔";
    position: absolute;
    left: 60px;
    color: #4DB6FF;
}

.nota {
    display: block;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #aaa;
}


/* --- Cards servicios --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    padding: 30px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #2F8EDB;
}

.card_title {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.card_desc {
    color: #cfd6e4;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* --- Servicios --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal_content {
    background: #0B0D12;
    border: 1px solid #4DB6FF;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    color: #fff;
    position: relative;
    box-shadow: 0 0 25px rgba(102,230,255,0.4);
}

.modal_content h3 {
    color: #66E6FF;
    margin-bottom: 15px;
}

.modal_close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

/* --- Portfolio --- */

.portfolio h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.portfolio_intro {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #ccc;
}

.portfolio_cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.portfolio_card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #2F8EDB;
    background: #0B0D12;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio_card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.portfolio_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(77,182,255,0.35);
}

/* Overlay */
.portfolio_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11,13,18,0.9),
        rgba(11,13,18,0.3)
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio_card:hover .portfolio_overlay {
    opacity: 1;
}

.portfolio_overlay h3 {
    margin: 0;
    color: #66E6FF;
}

.portfolio_overlay span {
    font-size: 0.9rem;
    color: #fff;
    opacity: 0.85;
}

/* --- Sobre nosotros --- */

.sobre_nosotros {
    font-size: 2rem;
}

/* --- Contacto --- */

.conf {
    font-size: 2rem;
    text-align: center;
    color: #66E6FF; /* azul corporativo */
    margin-bottom: 15px;
}
.contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    margin: 100px auto;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
}

form {
    padding: 20px;
    max-width: 600px;
    width: 100%;
    display: grid;
    gap: 15px;
    margin: 0 auto ;
    box-sizing: border-box;
}

.input_form label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    text-align: left;
}

.input_form :is(input, textarea) {
    width: 100%;
    padding: 9px;
    font-size: 16px;
    margin: 10px;
    border-radius: 8px;
    border: 1px solid #4DB6FF; /* borde azul corporativo */
    background-color: #0B0D12; /* fondo negro */
    color: #fff; /* texto blanco */
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.input_form input:focus,
.input_form textarea:focus {
    outline: none;
    border-color: #66E6FF; /* azul claro al enfocar */
    box-shadow: 0 0 8px #66E6FF;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.boton {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

.boton button {
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #fff;
    background: linear-gradient(135deg, #4DB6FF, #66E6FF);
}

.boton button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 230, 255, 0.6);
}

.boton .reset-btn {
    background: linear-gradient(135deg, #2F8EDB, #1E5FA8);
}

@media (max-width: 768px) {
    .contacto {
        margin: 40px 10px;
        padding: 30px 10px;
        width: 100%;
    }

    form {
        padding: 10px;
    }

    .boton {
        flex-direction: column;
        gap: 10px;
    }

    .boton button {
        width: 100%;
    }
}

.checkbox_legal {
    font-size: 0.85rem;
    color: #ccc;
}

.checkbox_legal a {
    color: #66E6FF;
}

/* --- FAQ --- */
.faq {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
    color: #fff;
}

.faq h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.faq_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.faq_item {
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #2F8EDB;
}

.faq_item h3 {
    margin: 0 0 8px;
    color: #66E6FF;
    font-size: 1.05rem;
}

.faq_item p {
    margin: 0;
    color: #d7dbe5;
}

@media (max-width: 640px) {
    .faq {
        margin: 60px 10px;
        padding: 0 10px;
    }

    .faq h2 {
        font-size: 1.6rem;
    }

    .faq_item {
        padding: 16px;
    }

    .faq_item h3 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .faq_item p {
        font-size: 0.95rem;
        line-height: 1.45;
    }
}

/* --- Footer --- */

.footer {
    background: #0B0D12;
    border-top: 1px solid #2F8EDB;
    color: #fff;
    padding: 50px 20px calc(20px + var(--safe-bottom));
    margin-top: 80px;
    width: 100%;
}

.footer_container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer_brand h3 {
    margin: 0 0 10px;
    color: #66E6FF;
}

.footer_brand p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
}

.footer_links h4,
.footer_legal h4 {
    margin-bottom: 10px;
    color: #66E6FF;
    font-size: 1rem;
}

.footer_links ul,
.footer_legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_links li,
.footer_legal li {
    margin: 6px 0;
}

.footer_links a,
.footer_legal a {
    color: #ccc;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer_links a:hover,
.footer_legal a:hover {
    color: #66E6FF;
}

.footer_bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1E5FA8;
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        text-align: center;
        width: 100%;
    }
}

/* =========================
    PÁGINAS LEGALES
========================= */

.legal {
    min-height: var(--viewport-height);
    padding: 140px 20px 80px;
    background-color: #0B0D12;
    color: #fff;
}

.legal_container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid #2F8EDB;
    border-radius: 16px;
    padding: 40px;
}

/* Títulos */
.legal h1 {
    font-size: 2.2rem;
    color: #66E6FF;
    margin-bottom: 30px;
    text-align: center;
}

.legal h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #4DB6FF;
}

/* Texto */
.legal p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #ddd;
}

/* Listas */
.legal ul {
    margin: 15px 0 25px 20px;
}

.legal li {
    margin-bottom: 8px;
    color: #ccc;
}

/* Enlaces */
.legal a {
    color: #66E6FF;
    text-decoration: underline;
}

.legal a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .legal_container {
        padding: 25px 20px;
    }

    .legal h1 {
        font-size: 1.8rem;
    }
}
