/* VARIABLES GLOBALES */
:root {
    --bg-color: #f5f5f7; /* Gris muy claro tipo Apple */
    --surface-color: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --primary-color: #0071e3; /* Azul Apple */
    --accent-red: #e63946;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Transición suave Apple */
}

/* RESET BASICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* Fondo blanco con textura sutil (simulando un ruido o tela muy tenue) */
    background-color: var(--bg-color);
    background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* TIPOGRAFIA */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.25rem;
    font-weight: 400;
}

.text-left {
    text-align: left;
}

/* UTILIDADES */
.mt-4 { margin-top: 2rem; }

/* HERO SECTION */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 60px;
    padding-top: 24px;
}

.video-container {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1400px;
    height: 70vh;
    min-height: 500px;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.desktop-video {
    display: block;
}

.mobile-video {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-logo {
    max-width: 320px;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
}

.hero-title {
    font-size: 3.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* BOTONES ESTILO APPLE */
.action-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: -30px; /* Para que solape sutilmente con el hero o quede cerca */
    z-index: 10;
    position: relative;
}

.btn-apple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    padding: 18px 30px;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.btn-apple:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.btn-apple:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: #1d1d1f;
    color: #fff;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1d1d1f;
    border: 1px solid rgba(0,0,0,0.05);
}

.btn-small {
    width: auto;
    padding: 12px 24px;
    border-radius: 18px;
    font-size: 1rem;
}

/* SECCIONES GENERALES */
.section {
    padding: 100px 0;
}

/* GALERÍA / CARRUSEL MODO IPHONE */
.iphone-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.iphone-frame {
    width: 320px;
    height: 650px;
    background-color: #000;
    border: 12px solid #1a1a1a;
    border-radius: 45px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15), 
                inset 0 0 0 2px rgba(255,255,255,0.1);
    overflow: hidden;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background-color: #1a1a1a;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 20;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Transición Apple */
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    background-size: cover;
    background-position: center;
}

/* Placeholders para fotos */
.bg-1 { background-color: #4a4e69; }
.bg-2 { background-color: #22223b; }
.bg-3 { background-color: #c9ada7; color: #222; }

/* CONTACTO Y MAPA */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
    background-color: var(--surface-color);
    background-image: url('assets/images/marble_bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12), 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.contact-grid::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 40px;
    z-index: -1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info .section-title {
    color: #000;
    font-size: 3rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.contact-detail {
    font-size: 1.15rem;
    color: #111;
    font-weight: 500;
    margin-bottom: 18px;
    line-height: 1.6;
}

.contact-detail strong {
    color: #000;
    font-weight: 700;
}

.social-mini-links {
    display: flex;
    gap: 15px;
}

.btn-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
    padding: 16px 32px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-contact:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.social-btn-apple {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: #111;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn-apple:hover {
    transform: translateY(-4px);
    color: #666;
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    min-height: 350px;
    position: relative;
}

.map-embed {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
    display: block;
}

.map-overlay-link {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    z-index: 2;
}

.map-overlay-link span {
    background: #fff;
    color: #1d1d1f;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: inline-block;
    transition: var(--transition);
}

.map-overlay-link:hover span {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px;
    }
    .contact-map {
        min-height: 250px;
    }
    
    .desktop-video {
        display: none !important;
    }
    
    .mobile-video {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2.2rem; }
    .btn-apple { width: 100%; max-width: 320px; }
    .iphone-frame {
        transform: scale(0.9);
    }
}

/* ============================= */
/* SISTEMA DE RESERVAS (reserva.html) */
/* ============================= */

.reserva-header {
    text-align: center;
    padding: 40px 0 20px;
}

.reserva-header img {
    max-width: 200px;
    display: inline-block;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.15));
}

.reserva-wrapper {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

.step {
    display: none;
    background-color: var(--surface-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(12px);
    transition: var(--transition);
}

.step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step.hidden {
    display: none;
}

.step h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.step .subtitle {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.back-btn.round-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: var(--transition);
}

.back-btn.round-icon:hover {
    background: #ececee;
}

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

.card-btn {
    background: var(--bg-color);
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.card-btn h3 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.card-btn p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 4px;
}

.card-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.card-btn.selected {
    border-color: var(--primary-color);
    background: rgba(0,113,227,0.08);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    background-color: var(--bg-color);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    background-color: var(--bg-color);
    overflow: hidden;
}

.phone-prefix {
    padding: 12px 0 12px 16px;
    color: var(--text-secondary);
}

.phone-input-wrapper input {
    border: none;
    background: transparent;
    padding: 12px 16px 12px 6px;
}

.phone-input-wrapper input:focus {
    outline: none;
}

.primary-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background-color: #1d1d1f;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn:hover {
    transform: scale(1.01);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1.5px solid rgba(0,0,0,0.08);
    background: var(--bg-color);
    cursor: pointer;
    transition: var(--transition);
}

.service-item:hover {
    border-color: var(--primary-color);
}

.service-info h3 {
    font-size: 1rem;
    font-weight: 600;
}

.service-price {
    font-weight: 700;
    color: var(--primary-color);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.time-btn {
    padding: 12px 0;
    border-radius: 12px;
    border: 1.5px solid rgba(0,0,0,0.08);
    background: var(--bg-color);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.time-btn:hover {
    border-color: var(--primary-color);
}

.time-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.file-upload-wrapper {
    text-align: center;
}

.file-input-hidden {
    display: none;
}

.custom-file-upload {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 14px;
    background: #1d1d1f;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.custom-file-upload:hover {
    transform: scale(1.02);
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ticket-box {
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    background: var(--bg-color);
    margin-bottom: 20px;
}

.ticket-box .ticket-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: monospace;
}

.summary-table {
    width: 100%;
    margin-top: 16px;
}

.summary-table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.95rem;
}

.summary-table td:first-child {
    color: var(--text-secondary);
}

.summary-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* Modal cancelar reserva */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-box {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.modal-box h3 {
    margin-bottom: 16px;
}

.modal-box .form-group {
    text-align: left;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
}

.link-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .step { padding: 28px 20px; }
    .card-grid { grid-template-columns: 1fr; }
    .time-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================= */
/* PANEL ADMIN (admin.html) */
/* ============================= */

.admin-login {
    max-width: 360px;
    margin: 15vh auto;
    padding: 0 24px;
    text-align: center;
}

.admin-wrapper {
    max-width: 900px;
    margin: 60px auto 100px;
    padding: 0 24px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header h2 {
    font-size: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface-color);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-card .value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 6px;
    color: var(--primary-color);
}

.recent-sales {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.recent-sales h3 {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 1.1rem;
}

.sale-item {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sale-item:last-child {
    border-bottom: none;
}

.sale-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    vertical-align: middle;
}

.badge-pending { background: #ffaa00; color: #000; }
.badge-cash { background: #e5e5ea; color: #333; }
.badge-confirmed { background: #1a8f4c; color: #fff; }

.approve-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .dashboard-header { flex-direction: column; align-items: flex-start; }
}
