:root {
    --primary-color: #4A6FA5;
    --secondary-color: #6B8CAE;
    --cream-color: #FFF9F0;
    --dark-blue: #2C4159;
    --light-cream: #F8F9FA;
    --accent-color: #FF6B6B;
    --text-color: #343A40;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition-speed);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 500;
    transition: var(--transition-speed);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition-speed);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    background: linear-gradient(rgba(10, 1, 57, 0.88), rgba(0, 100, 200, 1)),
                url('../images/heroimagenfabre.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); /* Added shadow for readability */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

    .hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto; /* Center the content */
}

.hero h1 {
    font-size: 4.5rem; /* Increased font size */
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.8rem; /* Reduced font size */
    margin-bottom: 1.5rem;
}

    .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition-speed);
    font-weight: bold;
    margin-top: 2rem; /* Added spacing */
}

.cta-button:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Presentation Section */
.presentation {
    padding: 5rem 0;
    background-color: var(--light-cream);
}

.profile-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-image {
    flex: 0 0 300px;
}

.profile-image img {
    width: 100%;
    border-radius: 10px;
}

.profile-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Services Section */
.services {
    padding: 5rem 0;
}

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

.benefits .section-title {
    color: #fff;
}

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

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
}

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

.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
}

.service-card p {
    padding: 0 1.5rem 1.5rem;
}

.service-button {
    display: block;
    text-align: center;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: var(--transition-speed);
}

.service-button:hover {
    background-color: var(--dark-blue);
}

/* Benefits Section */
.benefits {
    position: relative;
    padding: 5rem 0;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); /* Added shadow for readability */
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(44, 65, 89, 0.9), rgba(44, 65, 89, 0.9)),
                url('../images/parallax.webp') no-repeat center center/cover;
    /* background-attachment: fixed; Causa un error de scroll infinito */
    z-index: -1;
}

.benefits .container {
    position: relative;
    z-index: 1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition-speed);
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.benefit-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--cream-color);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--light-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info,
.social-links {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3,
.social-links h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 2rem;
}

.social-icons a {
    color: var(--primary-color);
    transition: var(--transition-speed);
}

.social-icons a:hover {
    color: var(--dark-blue);
    transform: translateY(-3px);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-whatsapp a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-speed);
}

.floating-whatsapp a:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-quote {
    margin-top: 1rem;
    font-style: italic;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        flex: 0 0 auto;
        max-width: 250px;
        margin: 0 auto;
    }

    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
    }

    .floating-whatsapp a {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .dashboard-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem; /* Use rem for scalable spacing */
    }

    .dashboard-header h1 {
        font-size: 1.1rem; /* Further reduce font size */
        flex-shrink: 1; /* Allow h1 to shrink if needed */
        white-space: normal; /* Allow h1 to wrap if it's too long */
    }

    .header-user-info {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        flex-shrink: 0; /* Prevent this container from shrinking */
    }

    .header-user-info p {
        margin-bottom: 8px;
        white-space: nowrap; /* Also prevent welcome message from wrapping */
        font-size: 0.9rem;
    }

    .header-user-info .logout-link {
        white-space: nowrap !important; /* Force no-wrap */
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* Dashboard Grid Container */
.dashboard-grid-container {
    display: grid;
    gap: 24px; /* Consistent spacing, multiple of 8px */
    padding: 24px; /* Consistent spacing */
    max-width: 1200px; /* Adjust as needed for desktop */
    margin: auto; /* Center the grid */
    background-color: #f4f7f6; /* Match body background or a slightly different shade */
}

/* Dashboard Card */
.dashboard-card {
    background-color: #fff;
    border-radius: 12px; /* Rounded borders */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    padding: 24px; /* Consistent spacing */
    transition: all 0.3s ease; /* For hover effects */
}

.dashboard-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); /* Increased shadow on hover */
    transform: translateY(-2px); /* Slight lift on hover */
}
/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--dark-blue);
    color: white;
    border-radius: 12px;
    margin: 24px;
}

.dashboard-header h1 {
    margin: 0;
}

.logout-link {
    text-decoration: none;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    transition: var(--transition-speed);
}

.logout-link:hover {
    background-color: var(--accent-color);
}

/* Feedback Card */
.feedback-card {
    margin: 0 24px;
}

.feedback {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #fff;
}

.feedback.success {
    background-color: #28a745;
}

.feedback.error {
    background-color: #dc3545;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: var(--transition-speed);
}

.submit-button:hover {
    background-color: var(--dark-blue);
}

/* TikTok List */
.tiktok-list {
    list-style: none;
    padding: 0;
}

.tiktok-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.tiktok-list a {
    color: var(--primary-color);
}

.delete-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

/* Profile Image Preview */
.profile-image-preview {
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #eee;
    object-fit: cover;
}

/* TikTok Video Cards */
.tiktok-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: var(--transition-speed);
    width: 100%;
    max-width: 325px;
}

.tiktok-card:hover {
    transform: translateY(-10px);
}

.tiktok-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.tiktok-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition-speed);
}

.tiktok-button:hover {
    background-color: var(--dark-blue);
}
