/* 
 * Contasía - Main Stylesheet
 * Color Palette:
 * Primary: #3C1874 (deep purple)
 * Accent: #FF6B6B (bright coral)
 * Background: #FAF7F7 (milk white)
 * Text: #1E1E1E (almost black)
 * Additional: #F4A259 (warm amber)
 */

/* ---- Reset and Base Styles ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Arial', sans-serif;
    color: #1E1E1E;
    background-color: #FAF7F7;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #3C1874;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF6B6B;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #3C1874;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #FF6B6B;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 5rem 0;
}

/* ---- Cookie Banner ---- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #3C1874;
    color: #FAF7F7;
    padding: 1rem 0;
    z-index: 1000;
    transition: bottom 0.5s ease;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-content a {
    color: #FF6B6B;
    text-decoration: underline;
}

.cookie-button {
    background-color: #FF6B6B;
    color: #FAF7F7;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cookie-button:hover {
    background-color: #F4A259;
}

/* ---- Header and Navigation ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo svg {
    height: 40px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #3C1874;
    transition: all 0.3s ease;
}

.nav-menu a {
    font-weight: 600;
    padding: 0.5rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF6B6B;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    background-color: #3C1874;
    color: #FAF7F7 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
}

.nav-cta:hover {
    background-color: #FF6B6B;
}

/* ---- Hero Section ---- */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(60, 24, 116, 0.8), rgba(255, 107, 107, 0.8));
    color: #FAF7F7;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/Vy5zAt.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #FAF7F7;
}

.slogan {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: #FF6B6B;
    color: #FAF7F7;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #F4A259;
    color: #FAF7F7;
    transform: translateY(-3px);
}

/* ---- About Section ---- */
.about-section {
    background-color: #FAF7F7;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

/* ---- Services Section ---- */
.services-section {
    background-color: #FAF7F7;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Benefits Section ---- */
.benefits-section {
    background-color: #F5F5F5;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(60, 24, 116, 0.1);
    border-radius: 50%;
}

.benefit-svg-icon {
    display: block;
    width: 40px;
    height: 40px;
}

.benefit-svg-icon.professional::before {
    content: '👨‍💼';
    font-size: 30px;
}

.benefit-svg-icon.personalized::before {
    content: '🤝';
    font-size: 30px;
}

.benefit-svg-icon.technology::before {
    content: '💻';
    font-size: 30px;
}

.benefit-svg-icon.confidentiality::before {
    content: '🔒';
    font-size: 30px;
}

/* ---- Testimonials Section ---- */
.testimonials-section {
    background-color: #FAF7F7;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: #FF6B6B;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ---- Contact Form Section ---- */
.contact-section {
    background-color: #F5F5F5;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para los errores de formulario */
.error-container {
    background-color: rgba(255, 107, 107, 0.1);
    border-left: 4px solid #FF6B6B;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.error-message {
    color: #FF6B6B;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #FAF7F7;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3C1874;
}

.checkbox-group {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.submit-button {
    grid-column: 1 / -1;
    background-color: #3C1874;
    color: #FAF7F7;
    border: none;
    border-radius: 4px;
    padding: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #FF6B6B;
}

/* ---- FAQ Section ---- */
.faq-section {
    background-color: #FAF7F7;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.faq-question {
    cursor: pointer;
    padding: 1rem 0;
}

.faq-question h3 {
    position: relative;
    padding-right: 1.5rem;
}

.faq-question h3::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #3C1874;
}

.faq-item.active .faq-question h3::after {
    content: '−';
}

.faq-answer {
    padding-bottom: 1rem;
}

/* ---- Contact Info Section ---- */
.contact-info-section {
    background-color: #F5F5F5;
}

.contact-info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.map-container {
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-details {
    padding: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(60, 24, 116, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
}

.contact-icon.location::before {
    content: '📍';
}

.contact-icon.phone::before {
    content: '📞';
}

.contact-icon.email::before {
    content: '📧';
}

.contact-icon.hours::before {
    content: '🕒';
}

/* ---- Footer ---- */
.site-footer {
    background-color: #3C1874;
    color: #FAF7F7;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo svg {
    height: 40px;
    width: auto;
}

.footer-description {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links h3,
.footer-contact h3 {
    color: #FAF7F7;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #FF6B6B;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #FAF7F7;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #FF6B6B;
}

.footer-contact span {
    font-weight: bold;
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ---- Responsive Styles ---- */
@media (max-width: 991px) {
    html {
        font-size: 15px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .slogan {
        font-size: 1.25rem;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 101;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .service-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .slogan {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
} 