/* public/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #1a9c9f; /* Cian/Acuamarina */
    --secondary-color: #006e61; /* Verde Océano Profundo */
    --accent-color: #e0f7f9;
    --text-color: #2c3e50;
    --bg-light: #f4f9f9;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header & Navbar */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    border-radius: 50px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.5rem 2%;
    }
    nav {
        padding: 0.5rem 1rem;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--white) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(26, 156, 159, 0.3);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 156, 159, 0.4);
    background-color: var(--secondary-color);
}

.hero-image {
    position: relative;
    width: 40%;
}

.hero-image img {
    width: 100%;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    background: white;
}

/* Sections */
section {
    padding: 8rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    font-weight: 700;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: calc(50% - 30px);
    border-radius: 10px;
}

/* MVV Cards */
.mvv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    background: var(--bg-light);
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    background: var(--white);
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Admin Dashboard Styles */
.admin-container {
    padding: 5rem 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.login-form, .edit-form {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.alert-error {
    background: #ffe6e6;
    color: #d63031;
    border: 1px solid #fab1a0;
}

.alert-success {
    background: #e6ffec;
    color: #27ae60;
    border: 1px solid #2ecc71;
}

/* Testimonials Carousel */
.testimonials-section {
    background: var(--bg-light);
    overflow: hidden;
    padding: 8rem 0;
}

.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.carousel-slide {
    display: none;
    animation: fadeEffect 1s;
    text-align: center;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.testimonial-card {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card i.fa-quote-left {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 2rem;
    left: 2rem;
    margin-bottom: 0;
}

.testimonial-content {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-rating {
    color: #f1c40f;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.testimonial-rating i {
    font-size: 1.2rem;
}

.carousel-dots {
    text-align: center;
    margin-top: 2rem;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 10% 2rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    margin-bottom: 1.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* New Admin Sidebar Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: var(--secondary-color);
    color: white;
    padding: 2.5rem 0;
    position: fixed;
    height: 100vh;
    transition: var(--transition);
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 2rem 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2.5rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-nav li a i {
    width: 25px;
    margin-right: 15px;
    font-size: 1.2rem;
}

.sidebar-nav li a:hover, .sidebar-nav li.active a {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-nav li.active a {
    border-right: 4px solid var(--primary-color);
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 3rem 4rem;
    background-color: var(--bg-light);
    min-height: 100vh;
}

/* Admin Header (Relativo al flujo, evita solapamiento) */
.admin-header {
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(0,0,0,0.03);
}

/* Dashboard Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--accent-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.stat-info p {
    color: #888;
    font-size: 0.9rem;
}

/* Promotions Admin UI */
.promo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.promo-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.promo-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.promo-content {
    padding: 1.5rem;
}

.promo-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Promotions Carousel (Home) */
.promo-carousel-section {
    padding: 6rem 0;
}

.promo-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.promo-slide {
    display: none;
    height: 500px;
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.promo-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.promo-slide-content {
    max-width: 600px;
}

.promo-slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.promo-slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Responsive Admin */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 80px;
    }
    .sidebar-header .logo, .sidebar-nav span, .sidebar-header p {
        display: none;
    }
    .admin-main {
        margin-left: 80px;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding: 8rem 5% 4rem;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-image {
        width: 80%;
        margin-top: 3rem;
    }
    .nav-links {
        display: none; /* Hide for simple modern look or add hamburger */
    }
    section {
        padding: 4rem 5%;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        width: 250px;
    }
    .admin-sidebar.active {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
        padding: 1.5rem;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .edit-form {
        padding: 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 2000;
        background: var(--primary-color);
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        cursor: pointer;
    }
}
