/* General Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745; /* Nuevo color de acento para CTAs */
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --text-color: #495057;
    --heading-color: #212529;
    --border-color: #dee2e6;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-strong: rgba(0, 0, 0, 0.3);
}

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

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

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

.section-padded {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.bg-dark {
    background-color: var(--dark-color);
    color: var(--white-color);
}

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

h1, h2, h3 {
    color: var(--heading-color);
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-secondary-outline {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: #218838; /* Un tono más oscuro de accent-color */
    border-color: #218838;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-3px);
}

.btn-secondary-outline {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.btn-secondary-outline:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-primary.small, .btn-secondary.small, .btn-secondary-outline.small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.btn-primary.large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Navigation */
.site-nav {
    background-color: var(--white-color);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links a {
    margin: 0 15px;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle img {
    width: 28px;
    height: 28px;
}

.mobile-menu {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    background-color: var(--white-color);
    position: fixed;
    top: 70px; /* Adjust based on nav height */
    left: 0;
    width: 100%;
    padding: 20px 0;
    box-shadow: var(--shadow-light);
    z-index: 999;
}

.mobile-menu a {
    padding: 15px 20px;
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Header */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1587440871875-191322bdcd14?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    color: var(--white-color);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay para oscurecer la imagen */
    z-index: 1;
}

header .container {
    position: relative;
    z-index: 2;
}

header h1 {
    color: var(--white-color);
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
}

header .tagline {
    font-size: 1.6em;
    margin-bottom: 50px;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.header-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

/* Feature Cards */
.feature-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card img {
    width: 60px; /* Tamaño para los iconos de beneficios */
    height: 60px;
    margin-bottom: 20px;
    fill: currentColor; /* Asegura que el SVG herede el color del texto */
}

/* Feature Items (for characteristics section) */
.feature-item {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center; /* Alinea verticalmente el icono y el texto */
    gap: 20px; /* Espacio entre el icono y el texto */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-item img {
    width: 40px; /* Tamaño para los iconos de características */
    height: 40px;
    flex-shrink: 0; /* Evita que la imagen se encoja */
    fill: currentColor; /* Asegura que el SVG herede el color del texto */
}

.feature-item h3 {
    color: var(--heading-color);
    margin-bottom: 5px; /* Reduce el margen inferior del título */
    font-size: 1.5em;
}

.feature-item p {
    font-size: 1em;
    margin-bottom: 0;
}

/* Testimonial Cards */
.testimonial-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures cards have same height */
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-company {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Product Gallery */
.product-gallery .main-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-medium);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.thumbnail-image {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-image:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-image.active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden; /* Ensures the answer is hidden */
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    text-align: left;
    color: var(--heading-color);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 20px 20px;
    margin: 0;
    font-size: 1.1em;
    color: var(--text-color);
}

/* Plan Cards */
.plan-card {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid var(--border-color);
}

.plan-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px var(--shadow-medium);
    transform: translateY(-10px);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.plan-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2em;
}

.plan-card .price {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.plan-card .price span {
    font-size: 0.5em;
    font-weight: 400;
    color: var(--text-color);
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.plan-card ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.plan-card ul li::before {
    content: '✔';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

.plan-card .btn-primary, .plan-card .btn-secondary {
    margin-top: auto; /* Pushes the button to the bottom */
    width: 100%;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0;
    font-size: 0.95em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--white-color);
    font-size: 1.4em;
    margin-bottom: 20px;
}

.footer-column p {
    color: #adb5bd; /* Un gris un poco más claro */
    margin-bottom: 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: var(--white-color);
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links img {
    width: 24px;
    height: 24px;
    color: var(--light-color); /* Cambia el color de los íconos SVG */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #495057; /* Línea divisoria sutil */
    color: #adb5bd;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 3em;
    }

    h2 {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .section-padded {
        padding: 60px 0;
    }

    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }

    header {
        padding: 100px 0;
    }

    .plan-card.featured {
        transform: translateY(0); /* Remove lift on smaller screens */
    }

    .header-actions {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links, .nav-actions {
        display: none; /* Hide desktop nav on mobile */
    }

    .mobile-nav-toggle {
        display: block; /* Show mobile nav toggle */
    }

    .btn-primary, .btn-secondary, .btn-secondary-outline {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .tagline {
        font-size: 1.3em;
    }

    .btn-primary.large {
        padding: 15px 30px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .btn-primary, .btn-secondary, .btn-secondary-outline {
        padding: 12px 20px;
        font-size: 0.9em;
        width: 100%;
    }

    header .tagline {
        font-size: 1.1em;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-item img {
        margin-bottom: 10px;
    }
}