#servicios {
    scroll-margin-top: 65px;
}

.hero {
    width: 100%;
    padding: 100px 30px 80px;
    background: linear-gradient(
        180deg,
        #020617 0%,
        #020617 60%,
        #0b1220 100%
    );

    display: flex;
    justify-content: center;
}

.hero-inner {
    max-width: 1000px;
    width: 100%;
}

.hero h1 {
    font-size: 44px;
    color: #f8fafc;
    margin-bottom: 18px;
}

.hero p {
    font-size: 18px;
    max-width: 650px;
    line-height: 1.6;
    color: #cbd5f5;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 18px;
    align-items: center;
}

.mail {
    font-size: 1.05em;
    background: rgba(2, 6, 23, 0.8);
    padding: 14px 18px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 12px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
}

.nota {
    margin-top: 6px;
    font-size: 0.85em;
    color:#94a3b8;
}

.btn-panel {
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--azul-acento), #2563eb);
    color: white;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(59,130,246,0.4);
    transition: transform 0.15s ease;
    text-decoration: none;
}

.btn-panel:hover {
    transform: translateY(-1px);
}

.trust {
    background: rgba(15,23,42,.45);
    border: 1px solid rgba(148,163,184,.12);
    backdrop-filter: blur(6px);
    border-radius:14px;
    padding:18px 28px;
}

.seccion {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 18px;
    padding: 40px;
    margin:25px auto;
    max-width: 900px;
    width: 100%;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.05);

    border: 1px solid rgba(148, 163, 184, 0.08);
}

.seccion h1,
.seccion h2 {
    color: #f8fafc;
}

.seccion p {
    color: #cbd5f5;
}

.seccion ul {
    padding-left: 18px;
}

.seccion li {
    color: #cbd5f5;
    margin-bottom: 8px;
    color: var(--gris-texto);
}

/* AUTH */
.auth {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-login {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 4px;
    position: relative;
}

.btn-login::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #3b82f6;
    transition: width 0.25s ease;
}

.btn-login:hover::after {
    width: 100%;
}

.btn-login:hover {
    color: white;
}
.btn-register {
    background: linear-gradient(135deg, var(--azul-acento), #2563eb);
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(59,130,246,0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(59,130,246,0.55);
}

.contenido {
    padding: 0;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contenido h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.contenido p {
    color: #475569;
    font-size: 16px;
}

.btn-logout {
    padding: 6px 12px;
    background: #ccc;
    border-radius: 6px;
    text-decoration: none;
}

.btn-logout:hover {
    background: #c0392b;
    color: #fff;
}

.bienvenido {
    color: #eaeaea;
    font-size: 0.95rem;
    margin-right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bienvenido strong {
    color: #00ffd5;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0, 255, 213, 0.4);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000; /* subilo */

    height: 64px;
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    border-bottom:1px solid rgba(148,163,184,.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 59px;
    height: 59px;
    border-radius: 45%;
    overflow: hidden; 
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

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

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;

    max-width: 750px;
    margin: 40px auto 0;
}

.servicio {
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.95),
        rgba(2, 6, 23, 0.95)
    );
    transition: all .25s ease;
cursor:pointer;
    border-radius: 18px;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.servicio:hover{
    transform:translateY(-6px);
    box-shadow:0 30px 60px rgba(0,0,0,.6);
    border:1px solid rgba(59,130,246,.35);
}

.servicio h3 {
    color: #f8fafc;
    margin-bottom: 10px;
    font-size: 18px;
}

.servicio p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.btn-servicio {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 18px;
    border-radius: 999px;

    background: linear-gradient(
        135deg,
        var(--azul-acento),
        #2563eb
    );

    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;

    border: none;
    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(59,130,246,0.45),
        0 0 0 0 rgba(59,130,246,0.6);

    transition:
        transform 0.15s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

/* hover: aura m�s viva */
.btn-servicio:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);

    box-shadow:
        0 10px 26px rgba(59,130,246,0.55),
        0 0 14px 2px rgba(59,130,246,0.45);
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

.btn-servicio:active {
    transform: translateY(0);
    box-shadow:
        0 6px 16px rgba(59,130,246,0.45),
        0 0 8px 1px rgba(59,130,246,0.35);
}

.seccion-servicios {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.servicio-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    text-align: center;
}

.servicio-card button {
    margin-top: 10px;
    padding: 10px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.servicio-card button:hover {
    background: #0056b3;
}

.site-footer {
    padding: 28px 20px 36px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    background: linear-gradient(
        180deg,
        rgba(2, 6, 23, 0.82),
        rgba(2, 6, 23, 0.98)
    );
}

.site-footer-inner {
    display: flex;
    justify-content: center;
}

.site-footer p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 768px) {

    /* TOPBAR */
    .topbar {
        padding: 0 16px;
        height: auto;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo span {
        font-size: 15px;
    }

    /* NAV */
    .nav {
        width: 100%;
        justify-content: center;
        gap: 18px;
        padding-bottom: 6px;
    }

    .nav-btn {
        font-size: 13px;
    }

    /* HERO */
.hero {
    padding: 60px 0 50px;
    text-align: center;
}

.hero-inner {
    max-width: 100%;
    padding: 0 20px;
}

.hero h1 {
    font-size: 30px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 16px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.hero-actions a {
    width: 100%;
    text-align: center;
}

    /* SECCIONES */
    .seccion {
        padding: 28px 22px;
        margin: 18px auto;
    }

    .seccion h2 {
        font-size: 22px;
    }

    .seccion p {
        font-size: 15px;
    }

    /* SERVICIOS */
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .servicio {
        padding: 26px;
        text-align: center;
    }

    .btn-servicio {
        align-self: center;
        width: 100%;
        padding: 10px 0;
    }

    /* AUTH */
    .auth {
        width: 100%;
        justify-content: center;
        gap: 12px;
        padding-bottom: 8px;
    }

    .site-footer {
        padding: 24px 16px 30px;
    }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px;
  z-index: 2000;
}

.modal.abierto {
  display: flex;
}

.modal-contenido {
  background: #0f172a;
  color: #e5e7eb;
  width: 100%;
  max-height: none;
  overflow: visible;
  max-width: 420px;
  padding: 24px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  animation: aparecer .2s ease;
}

@keyframes aparecer {
  from { transform: scale(.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-contenido h2 {
  margin: 0 0 6px;
}

.modal-sub {
  font-size: .9rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.modal-contenido label {
  font-size: .85rem;
  margin-top: 10px;
  display: block;
}

.modal-contenido input,
.modal-contenido textarea {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: #1e293b;
  color: white;
}

.mapa-modal {
  height: 180px;
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
}

.cerrar:hover {
  color: white;
}

.btn-full {
  width: 100%;
  margin-top: 12px;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  padding: 16px 22px;
  border-radius: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
}

.toast.mostrar {
  opacity: 1;
}

.grid-form{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.campo{
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.campo label{
    font-size: 13px;
    margin-bottom: 4px;
    color: #aaa;
}

.campo input,
.campo select,
.campo textarea{
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #1e1e1e;
    color: white;
}

.checks{
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.check-item{
    font-size: 14px;
}

.acciones{
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-principal{
    background: linear-gradient(135deg, #22c55e, #16a34a);
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(34,197,94,.22);
}

.btn-secundario{
    background: rgba(148,163,184,.08);
    color: #cbd5f5;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 10px;
    padding: 11px 20px;
    font-weight: 600;
    cursor: pointer;
}

.btn-principal:hover,
.btn-secundario:hover{
    transform: translateY(-1px);
}

.btn-principal:disabled,
.btn-secundario:disabled{
    opacity: .7;
    cursor: wait;
    transform: none;
}
.aviso-legal{
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    font-size: 13px;
    color: #cbd5f5;
}

.aviso-legal p{
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.resumen{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resumen-bloque{
    background: #1e293b;
    padding: 12px;
    border-radius: 8px;
}

.resumen-bloque h3{
    margin-bottom: 6px;
    font-size: 14px;
    color: #60a5fa;
}

.resumen-bloque p{
    font-size: 13px;
    margin: 2px 0;
}

.confirm-box{
    margin-top: 12px;
    padding: 10px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 8px;
    font-size: 13px;
}
.hidden {
    display: none;
}
.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1e293b;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.check-item:hover {
    background: #334155;
}

.check-item input {
    accent-color: #22c55e;
    transform: scale(1.2);
    width: 16px;
    height: 16px;
    cursor: pointer;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modal-header {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}

.modal-header h2 {
    margin: 0;
    font-size: 16px;
    color: white;
}

.modal-header p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #c7d2fe;
}

.campo input,
.campo select,
.campo textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #1e293b;
    color: white;
    transition: all 0.2s ease;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border: 1px solid #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.3);
}

@media (max-width: 640px) {
    .grid-form{
        grid-template-columns: 1fr;
    }

    .acciones{
        flex-direction: column-reverse;
    }

    .btn-principal,
    .btn-secundario{
        width: 100%;
    }
}
