/* Main stylesheet for ContaPlus */
:root {
    /* Nueva paleta de colores más moderna y minimalista */
    --primary: #2E5CFF;       /* Azul moderno */
    --primary-light: #EEF2FF; /* Azul muy claro para fondos */
    --accent1: #00C8B3;       /* Verde azulado */
    --accent2: #343A40;       /* Gris oscuro */
    --text: #212529;          /* Negro suave */
    --text-light: #6C757D;    /* Gris para textos secundarios */
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-medium: #E9ECEF;
    --padding-desktop: 5rem;
    --padding-tablet: 2.5rem;
    --padding-mobile: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text);
    padding-top: 4rem;
    line-height: 1.6;
}

/* Header styles are in header.php */
/* Footer styles are in footer.php */

/* Main page styles */
/* Hero section */
.hero {
    background-color: var(--primary);
    padding: var(--padding-desktop) 1rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s;
}

.hero-image img:hover {
    transform: translateY(-5px);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent1);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--accent1);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s, background-color 0.3s;
    letter-spacing: 0.02em;
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: #00d6c0;
}

/* About section */
.about {
    padding: var(--padding-desktop) 1rem;
    background-color: var(--white);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    color: var(--accent2);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.about-text ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-text li {
    margin-bottom: 0.5rem;
}

/* Services section */
.services {
    padding: var(--padding-desktop) 1rem;
    background-color: var(--gray-light);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--gray-medium);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent2);
}

.service-description {
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.service-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.service-link:hover::after {
    transform: translateX(5px);
}

/* Benefits section */
.benefits {
    padding: var(--padding-desktop) 1rem;
    background-color: var(--white);
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    transition: transform 0.3s;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--gray-medium);
}

.benefit-item:hover {
    transform: translateY(-3px);
}

.benefit-image {
    width: 100%;
    height: 180px;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    overflow: hidden;
}

.benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.benefit-item:hover .benefit-image img {
    transform: scale(1.05);
}

.benefit-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--accent2);
    font-weight: 600;
}

.benefit-description {
    line-height: 1.6;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Testimonials section */
.testimonials {
    padding: var(--padding-desktop) 1rem;
    background-color: var(--primary-light);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-carousel {
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-right: 1rem;
    text-align: left;
    position: relative;
    border: 1px solid var(--gray-medium);
}

.testimonial-card:last-child {
    margin-right: 0;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-light);
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-light);
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

.author-info h4 {
    margin: 0;
    color: var(--accent2);
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-medium);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: var(--primary);
}

/* Contact form */
.contact {
    padding: var(--padding-desktop) 1rem;
    background-color: var(--white);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact-form-container {
    background-color: var(--white);
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    border: 1px solid var(--gray-medium);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent2);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-medium);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: var(--white);
    color: var(--text);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 10px;
    margin-top: 4px;
}

.form-check-label {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-light);
}

.form-check-label a {
    color: var(--primary);
    text-decoration: underline;
}

.submit-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    letter-spacing: 0.02em;
}

.submit-btn:hover {
    background-color: #1a49ff;
    transform: translateY(-2px);
}

/* Alert messages */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-danger {
    background-color: #fff5f5;
    color: #c92a2a;
    border: 1px solid #ffc9c9;
}

.alert-success {
    background-color: #f4fce3;
    color: #2b8a3e;
    border: 1px solid #c0eb75;
}

/* FAQ section */
.faq {
    padding: var(--padding-desktop) 1rem;
    background-color: var(--gray-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.accordion {
    margin-top: 3rem;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    background-color: var(--white);
    border: 1px solid var(--gray-medium);
}

.accordion-header {
    background-color: var(--white);
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent2);
}

.accordion-header:hover {
    background-color: var(--gray-light);
}

.accordion-header:focus {
    outline: none;
}

.accordion-body {
    background-color: var(--white);
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-body.active {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.accordion-content {
    line-height: 1.6;
    color: var(--text-light);
    font-size: 0.95rem;
}

.accordion-icon {
    width: 16px;
    height: 16px;
    position: relative;
}

.accordion-icon::before, .accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary);
    transition: transform 0.3s;
}

.accordion-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.accordion-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.accordion-header.active .accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
}

/* Footer styles update */
footer {
    background-color: var(--accent2);
    color: var(--white);
    padding: 3rem 1rem 1rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-info, .footer-contact, .footer-links {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo svg {
    margin-right: 0.5rem;
    width: 24px;
    height: 24px;
}

.footer-info p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact h3, .footer-links h3, .footer-info h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-contact address {
    font-style: normal;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact a {
    color: var(--accent1);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-contact a:hover {
    opacity: 0.8;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent1);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: var(--accent2);
    color: var(--white);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: bottom 0.5s ease-out;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.cookie-content h3 {
    width: 100%;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-size: 1rem;
}

.cookie-content p {
    flex: 1;
    min-width: 200px;
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.cookie-content button {
    background-color: var(--accent1);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.cookie-content button:hover {
    background-color: #00d6c0;
}

.cookie-content a {
    color: var(--accent1);
    text-decoration: underline;
    margin-left: 1rem;
    font-size: 0.85rem;
}

/* Thank you page */
.thank-you-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 0;
    background-color: var(--primary-light);
}

.thank-you-content {
    max-width: 550px;
    text-align: center;
    padding: 3rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-medium);
}

.thank-you-icon {
    margin-bottom: 2rem;
}

.thank-you-icon svg {
    width: 70px;
    height: 70px;
}

.thank-you-content h1 {
    color: var(--accent2);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.thank-you-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.back-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 0.95rem;
}

.back-btn:hover {
    background-color: #1a49ff;
    transform: translateY(-2px);
}

/* Media queries */
@media (max-width: 768px) {
    body {
        padding-top: 4rem;
    }
    
    .hero {
        padding: var(--padding-tablet) 1rem;
    }
    
    .hero-content, .hero-image {
        flex: 100%;
        padding-right: 0;
    }
    
    .hero-content {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .about, .services, .benefits, .testimonials, .contact, .faq {
        padding: var(--padding-tablet) 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 3.5rem;
    }
    
    .hero {
        padding: var(--padding-mobile) 1rem;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .about, .services, .benefits, .testimonials, .contact, .faq {
        padding: var(--padding-mobile) 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content button, .cookie-content a {
        margin: 0.5rem 0 0 0;
    }
} 