/* public/css/public.css - ESTILOS ESPECÍFICOS DE LA HOME */

/* SECTIONS GENERIC */
section { padding: 80px 0; }

section h2 {
    font-size: clamp(2.5em, 4.5vw, 3.5em);
    font-weight: 800;
    text-align: center;
    margin: 0 auto 50px;
    max-width: 1000px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

section h3 {
    font-size: clamp(1.8em, 3.5vw, 2.3em);
    font-weight: 700;
    text-align: center;
}

.premium-title {
    color: var(--gold-light);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    margin-bottom: 50px;
    padding-top: 20px;
    font-size: clamp(2.4em, 5.5vw, 3.8em);
    letter-spacing: 1.2px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    box-sizing: border-box;
}

.video-container {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: calc(100% + 80px);
    filter: blur(5px) brightness(0.6);
    background: rgba(10, 15, 25, 0.4);
    z-index: -1;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px; left: 0;
    width: 100%; height: calc(100% + 80px);
    background: url('img/fallback-hero.jpg') no-repeat center center/cover;
    filter: blur(15px) brightness(0.6);
    z-index: -2;
}

.hero-content {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    padding: 24px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 700px;
    width: 90%;
    z-index: 1;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(1em, 1.8vw, 1.2em);
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 400;
}

@media (max-width: 770px) {
    .hero {
        padding-top: 100px;
        align-items: flex-start;
        justify-content: center;
    }
    .hero-content {
        min-height: 260px;
        padding: 32px 28px;
        margin-top: 14vh;
        max-width: 88%;
        width: 92%;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .hero { padding-top: 80px; }
    .hero-content {
        min-height: 280px;
        padding: 36px 24px;
        margin-top: 12vh;
    }
}

/* ========================================
   SERVICIOS
   ======================================== */
.servicios {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    margin-left: calc(-50vw + 50%);
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 1;
}

.servicios::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        linear-gradient(135deg, rgba(10, 15, 25, 0.92) 0%, rgba(0, 23, 45, 0.85) 50%, rgba(10, 15, 25, 0.95) 100%),
        url('img/fallback-servicios.jpg') center/cover no-repeat;
    filter: brightness(0.7) blur(1px);
    z-index: -2;
}

.servicios .container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 32px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.servicios h2 {
    color: var(--gold-light);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    margin-bottom: 50px;
    padding-top: 20px;
}

.servicios .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.servicios .card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 38px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.servicios .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(227, 181, 5, 0.25);
    border-color: rgba(227, 181, 5, 0.4);
}

.servicios .card h3 { color: var(--gold); margin-bottom: 14px; font-size: clamp(1.7em, 3.2vw, 2.2em); }
.servicios .card p { color: var(--text-muted); font-size: clamp(1.05em, 2.1vw, 1.25em); line-height: 1.7; }

@media (max-width: 1024px) {
    .servicios { min-height: calc(100vh - 80px); padding-top: 100px; align-items: flex-start; }
    .servicios .container { padding: 40px 24px 60px; }
}
@media (max-width: 770px) {
    .servicios { min-height: calc(100vh - 70px); padding-top: 90px; }
    .servicios .grid { grid-template-columns: 1fr; gap: 24px; max-width: 90%; }
    .servicios .card { padding: 32px 24px; }
}

/* ========================================
   FLOTA (ALBUM)
   ======================================== */
.flota {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    margin-left: calc(-50vw + 50%);
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 1;
}

.flota::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        linear-gradient(135deg, rgba(10, 15, 25, 0.92) 0%, rgba(0, 23, 45, 0.85) 50%, rgba(10, 15, 25, 0.95) 100%),
        url('img/fallback-flota.jpg') center/cover no-repeat;
    filter: brightness(0.7) blur(1px);
    z-index: -2;
}

.flota .container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 32px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.flota h2 {
    color: var(--gold-light);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    margin-bottom: 50px;
    padding-top: 20px;
}

.flota .grid {
    display: grid;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    grid-template-columns: 1fr; /* Default Mobile */
}

.flota .foto-item:nth-child(n+5) {
    display: none; 
}

@media (min-width: 771px) {
    .flota .grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .flota .foto-item:nth-child(n+5) {
        display: flex; 
    }
}

.flota .foto-item {
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.flota .foto-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(227, 181, 5, 0.25);
    border-color: rgba(227, 181, 5, 0.4);
}

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

.flota .foto-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--text);
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

.flota .foto-item:hover .foto-info { transform: translateY(0); }
.flota .foto-info h4 { margin: 0 0 5px; font-size: clamp(1em, 2vw, 1.2em); color: var(--gold-light); }
.flota .foto-info p { margin: 0; font-size: clamp(0.85em, 1.8vw, 0.95em); color: var(--text-muted); }

/* ========================================
   FORMULARIO DE RESEÑAS + MODAL AVATAR
   ======================================== */
.resenas-form.full-section {
    padding: 80px 0 60px;
    position: relative;
    z-index: 2;
}

.resenas-form .section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.resenas-form h2 { margin-bottom: 15px; text-align: center; }
.resenas-form p { text-align: center; color: var(--text-muted); margin-bottom: 30px; }

.form-resena.compact-form {
    max-width: 800px;
    margin: 0 auto; 
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.form-group { position: relative; margin-bottom: 0; width: 100%; }
.form-row .form-group:nth-child(1) { flex: 3; }
.form-row .form-group:nth-child(2) { flex: 2; }
.form-row .form-group.avatar-group { flex: 0 0 80px; }
.form-group.full-width { width: 100%; margin-top: 25px; }

/* Inputs */
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(10, 15, 25, 0.9);
    box-shadow: 0 0 0 4px rgba(227, 181, 5, 0.1);
}

.form-group label {
    position: absolute;
    top: -10px; left: 12px;
    background: var(--bg);
    padding: 0 6px;
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    border-radius: 4px;
    z-index: 5;
}

/* Instagram */
.instagram-input-wrapper { position: relative; display: flex; align-items: center; }
.instagram-prefix { position: absolute; left: 15px; color: var(--text-muted); pointer-events: none; }
.instagram-input-wrapper input { padding-left: 35px; }
.help-text { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; display: block; }

/* Avatar Selector */
.avatar-selector { display: flex; flex-direction: column; align-items: center; }
.avatar-button {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--glass-border);
    cursor: pointer; padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex; justify-content: center; align-items: center;
}
.avatar-button:hover { border-color: var(--gold); transform: scale(1.05); }
.avatar-preview { width: 100%; height: 100%; object-fit: cover; }
.avatar-button span { display: none; } 
.avatar-button img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar-button:focus, .close-modal:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Estrellas */
.form-group-static-label {
    margin-top: 25px; text-align: left; width: 100%;
    position: relative; z-index: 10;
}
.form-group-static-label label {
    position: static !important; transform: none !important; pointer-events: none;
    display: block; margin-bottom: 10px; color: var(--gold);
    font-weight: 600; font-size: 0.9rem; background: transparent !important;
}
.estrellas-input { display: flex; gap: 15px; }
.estrellas-input .estrella {
    font-size: 2rem; color: var(--glass-border); cursor: pointer; padding: 5px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.estrellas-input .estrella:hover, .estrellas-input .estrella.active {
    color: var(--gold); transform: scale(1.2);
}

/* Mensajes */
.error-message { color: var(--error); font-size: 0.8rem; margin-top: 5px; display: none; }
.resenas-message { padding: 15px; border-radius: 10px; margin-bottom: 20px; text-align: center; font-weight: 600; animation: fadeIn 0.5s ease; }
.resenas-message.success { background: rgba(42, 157, 143, 0.2); border: 1px solid var(--success); color: #4db6ac; }
.resenas-message.error { background: rgba(230, 57, 70, 0.2); border: 1px solid var(--error); color: #ff8a80; }
#submit-review-btn { width: 100%; margin-top: 30px; padding: 16px; font-size: 1.1rem; }

/* Modal Avatar */
.avatar-modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
}
.avatar-modal-content {
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    max-width: 500px; width: 90%;
    position: relative; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: var(--text-muted); cursor: pointer; line-height: 1; }
.avatar-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px; margin: 20px 0; max-height: 300px; overflow-y: auto;
}
.avatar-grid label { cursor: pointer; }
.avatar-grid img {
    width: 80px; height: 80px; border-radius: 50%;
    border: 3px solid transparent; transition: all 0.2s;
}
.avatar-grid input[type="radio"] { display: none; }
.avatar-grid input[type="radio"]:checked + img {
    border-color: var(--gold); transform: scale(1.1); box-shadow: 0 0 15px rgba(227, 181, 5, 0.4);
}

@media (max-width: 768px) {
    .resenas-form.full-section { padding: 50px 0; }
    .form-resena.compact-form { padding: 25px 20px; }
    .form-row { flex-direction: column; gap: 25px; }
    
    .form-row .form-group,
    .form-row .form-group:nth-child(1),
    .form-row .form-group:nth-child(2),
    .form-row .form-group.avatar-group { flex: 1 1 auto; width: 100%; max-width: 100%; }

    .form-group.avatar-group {
        display: flex; flex-direction: row; align-items: center; justify-content: space-between;
        background: rgba(255,255,255,0.05); padding: 10px 15px; border-radius: 10px;
    }
    .form-group.avatar-group label { position: static; margin-right: 15px; background: transparent; font-size: 1rem; }
    .form-group.avatar-group .error-message { position: absolute; bottom: -20px; left: 0; }
}

/* ========================================
   GRID DE RESEÑAS (CLIENTES)
   ======================================== */
.resenas-clientes { padding: 60px 0; background: var(--bg); }
.resenas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%; max-width: 1200px;
    margin: 0 auto; padding: 0 20px;
}
.resena-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 30px;
    display: flex; flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.resena-card:hover { transform: translateY(-5px); border-color: var(--gold-light); }
.resena-autor {
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 15px; padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.resena-autor .profile-pic { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--gold); }
.resena-autor strong { display: block; color: var(--text); font-size: 1.1rem; }
.resena-autor .instagram-link { color: var(--gold); font-size: 0.85rem; text-decoration: none; }
.resena-card .texto { color: var(--text-muted); font-style: italic; margin-bottom: 20px; flex-grow: 1; line-height: 1.6; }
.resena-card .estrellas { color: var(--gold); letter-spacing: 3px; }

@media (max-width: 480px) {
    .resenas-grid { grid-template-columns: 1fr; }
    .resena-card { padding: 20px; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }