﻿.page-content {
    width: 100%;
    min-height: 100vh;
    /*background: linear-gradient(45deg, rgb(230, 230, 230), white);*/
    background: linear-gradient(135deg, #e8f4f3 0%, #d4e9e7 100%);
}

.auth-card {
  background-color: white;
  box-shadow: 0 3px 12px rgb(0 0 0 / 0.2);
  border-radius: 20px;
  padding: 10px 10%;
}

.logo-area {
  padding: 20px 30%;
  margin-top: 2%;
}

.logo {
  width: 100%;
  height: auto;
}

.auth-title {
  text-align: center;
  color: rgb(46, 46, 46);
}

.service-btn {
  background-color: white;
  border: 1px solid rgb(220, 220, 220);
  width: 100%;
  color: rgb(46, 46, 46);
  height: 45px;
  box-shadow: none !important;
}

.service-btn:hover {
  color: #1da19b;
  border: 1px solid #1da19b;
}

.service-icon {
  margin-right: 10px;
}

.separator {
  width: 100%;
  color: rgb(46, 46, 46);
}

.auth-input {
  background: white;
  height: 45px;
  border: 1px solid rgb(220, 220, 220);
  color: rgb(46, 46, 46);
  box-shadow: none !important;
}

.auth-input:focus {
  color: #1da19b;
  border: 1px solid #1da19b;
}

.input-info-text {
  color: rgb(138, 138, 138);
}

.auth-btn {
  background: #45a29e;
  color: white;
  height: 45px;
  width: 100%;
  font-size: 18px;
  box-shadow: none !important;
}

.auth-btn:hover {
  background: #24726e;
  color: white;
}

.text {
  text-align: center;
  color: rgb(46, 46, 46);
}

.text-link {
  color: #45a29e;
}

.text-link:hover {
  color: #24726e;
}

.btn-theme {
  background-color: black !important;
  color: white !important;
  box-shadow: none !important;
  position: absolute;
  top: 10px;
  left: 10px;
}

/* ===== TABLET (≤ 768px) ===== */
@media (max-width: 768px) {
    .page-content {
        /* Quita el centrado vertical — la card ocupa poco alto
           y queda flotando con mucho espacio vacío */
        align-items: flex-start !important;
        padding-top: 40px;
        padding-bottom: 40px;
        /* min-height mantiene el fondo completo */
        min-height: 100vh;
    }

    .auth-card {
        padding: 10px 8%;
        border-radius: 16px;
    }

    .logo-area {
        padding: 16px 22%;
        margin-top: 3%;
    }

    .auth-title {
        font-size: 1.15rem;
    }
}


/* ===== MOBILE (≤ 480px) ===== */
@media (max-width: 480px) {
    .page-content {
        align-items: flex-start !important;
        /* Padding top pequeño: la card empieza cerca del tope */
        padding: 20px 0 30px 0;
        min-height: 100vh;
    }

        .page-content .container {
            padding-left: 14px;
            padding-right: 14px;
        }

        /* La card ocupa todo el ancho disponible */
        .page-content .col-12 {
            padding-left: 0;
            padding-right: 0;
        }

    .auth-card {
        padding: 16px 6% 20px 6%;
        border-radius: 14px;
        box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
    }

    .logo-area {
        padding: 10px 25%;
        margin-top: 8px;
    }

    .auth-title {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    /* Área táctil correcta para touch */
    .auth-input {
        height: 48px;
        font-size: 16px; /* Evita zoom automático en iOS */
    }

    .auth-btn {
        height: 50px;
        font-size: 16px;
        border-radius: 10px;
        margin-top: 8px !important;
    }

    /* Reduce el mt-5 del primer input — 3rem es mucho en móvil */
    .mb-2.mt-5 {
        margin-top: 1rem !important;
    }

    .text-link {
        font-size: 13px;
        display: inline-block;
        padding: 6px 0;
    }

    .btn-theme {
        top: 8px;
        left: 8px;
        font-size: 12px;
        padding: 4px 8px;
    }
}


/* ===== MOBILE MUY PEQUEÑO (≤ 360px) ===== */
@media (max-width: 360px) {
    .page-content {
        padding: 14px 0 20px 0;
    }

    .auth-card {
        padding: 12px 5% 16px 5%;
    }

    .logo-area {
        padding: 8px 20%;
    }

    .auth-title {
        font-size: 0.92rem;
    }

    .text-link {
        font-size: 12px;
    }
}

/* ============== MODAL SERVICIOS ===================== */
/* ===== MODAL SERVICIOS ===== */
.btn-servicios {
    background: #45a29e;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-servicios:hover {
        background: #24726e;
        color: white;
    }

.svc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 90, 88, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

    .svc-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

.svc-container {
    position: relative;
    width: 500px;
    height: 500px;
}

.svc-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: #24726e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 12px rgba(36,114,110,0.25);
    z-index: 3;
}

.svc-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), opacity 0.25s;
    pointer-events: none;
    z-index: 2;
}

    .svc-item.show {
        transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1);
        opacity: 1;
        pointer-events: all;
    }

    .svc-item a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-decoration: none;
    }

.svc-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.6);
    transition: background 0.2s, transform 0.15s;
}

    .svc-icon i {
        color: #24726e;
        font-size: 22px;
        transition: color 0.2s;
    }

    .svc-icon:hover {
        background: #45a29e;
        transform: scale(1.12);
    }

        .svc-icon:hover i {
            color: white;
        }

.svc-label {
    font-size: 11px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    background: rgba(0,0,0,0.35);
    padding: 3px 9px;
    border-radius: 20px;
}

.svc-close {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: none;
    border-radius: 30px;
    padding: 10px 34px;
    font-size: 14px;
    font-weight: 600;
    color: #24726e;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, background 0.2s;
    white-space: nowrap;
}

    .svc-close.show {
        opacity: 1;
        pointer-events: all;
    }

    .svc-close:hover {
        background: #e8f4f3;
    }