html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

/* Variantes */
.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal.active.reveal-left,
.reveal.active.reveal-right {
    transform: translateX(0);
}
.services-section {
    padding: 80px 10%;
    background: #f9f9f9;
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #555;
    margin-bottom: 50px;
}

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

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,.1);
    cursor: pointer;
    transition: transform .4s, box-shadow .4s;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 45px rgba(0,0,0,.2);
    }

    .service-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .service-card h3 {
        margin: 20px 0 10px;
    }

    .service-card p {
        color: #666;
        padding: 0 20px 20px;
    }

/* MODAL */
.service-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    animation: pop .4s ease;
}

@keyframes pop {
    from {
        transform: scale(.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
}

.modal-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 30px;
    background: #25D366;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}
.stats-section {
    padding: 90px 10%;
    background: linear-gradient(to right, #111, #1c1c1c);
    color: white;
    text-align: center;
}

.stats-title {
    font-size: 38px;
    font-weight: bold;
}

.stats-subtitle {
    margin-top: 10px;
    color: #ccc;
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-box {
    background: rgba(255,255,255,.05);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

.stat-number {
    font-size: 50px;
    font-weight: bold;
    color: #ff4d4d;
    display: block;
    margin-bottom: 10px;
}

/* GRÁFICA */
.chart-container {
    margin: 80px auto 0;
    height: 200px;
    max-width: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, #ff4d4d, #ff8080);
    border-radius: 10px 10px 0 0;
    height: 0;
    transition: height 1.2s ease-in-out;
}
.units-section {
    padding: 90px 10%;
    background: #ffffff;
    text-align: center;
}

.units-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 10px;
}

.units-subtitle {
    color: #666;
    margin-bottom: 50px;
}

.units-slider {
    position: relative;
    max-width: 900px;
    margin: auto;
    height: 450px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,.15);
}

.unit-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

    .unit-image.active {
        opacity: 1;
    }
.booking-section {
    padding: 100px 10%;
    background: linear-gradient(to right, #ffffff, #f2f6f9);
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.booking-info h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.booking-info p {
    color: #555;
    font-size: 17px;
    margin-bottom: 30px;
}

.whatsapp-booking {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.booking-form {
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,.15);
}

    .booking-form input,
    .booking-form select,
    .booking-form textarea {
        width: 100%;
        padding: 14px;
        margin-bottom: 18px;
        border-radius: 12px;
        border: 1px solid #ccc;
        font-size: 15px;
    }

    .booking-form textarea {
        resize: none;
        height: 110px;
    }

    .booking-form button {
        width: 100%;
        padding: 15px;
        background: #b30000;
        color: white;
        border: none;
        border-radius: 30px;
        font-size: 16px;
        cursor: pointer;
    }

        .booking-form button:hover {
            background: #8f0000;
        }

.success-msg {
    margin-top: 15px;
    color: green;
    font-weight: 600;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .booking-container {
        grid-template-columns: 1fr;
    }
}
/* Preeview Cita */
.preview-wrapper {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d3b66, #1b6ca8);
}

.preview-card {
    background: white;
    padding: 60px;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0,0,0,.2);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.preview-title {
    margin-bottom: 30px;
    font-size: 26px;
}

.preview-data p {
    margin-bottom: 10px;
}

.btn-confirmar {
    margin-top: 30px;
    padding: 14px 30px;
    background: #1b6ca8;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}

    .btn-confirmar:hover {
        background: #145a8d;
    }

/* Overlay tipo login */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.success-box {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    animation: fadeInScale .4s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
