/* 
 * CSS principal para domain - Servicios de Contabilidad
 * Paleta de colores:
 * - Principal: #7E5BEF (violeta eléctrico)
 * - Acento: #2FD0B3 (turquesa)
 * - Fondo: #F6F6F6 (blanco humo)
 * - Texto: #333333 (grafito)
 * - Botones: gradiente de #7E5BEF a #2FD0B3
 * - Hover/bordes: #C3B9FF y #96E1D5
 */

/* Reset y base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
    background-color: #F6F6F6;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #7E5BEF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2FD0B3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botones */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #7E5BEF 0%, #2FD0B3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(126, 91, 239, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(126, 91, 239, 0.3);
    color: white;
}

.btn-secondary {
    background: white;
    color: #7E5BEF;
    border: 2px solid #C3B9FF;
}

.btn-secondary:hover {
    background-color: #F6F6F6;
    color: #7E5BEF;
    border-color: #7E5BEF;
}

/* Encabezado */
.site-header {
    background-color: white;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: #7E5BEF;
    text-transform: lowercase;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #7E5BEF 0%, #2FD0B3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Navegación */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #7E5BEF 0%, #2FD0B3 100%);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Menú móvil */
.mobile-menu-toggle {
    display: none;
}

/* Secciones */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #7E5BEF;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(126, 91, 239, 0.05) 0%, rgba(47, 208, 179, 0.05) 100%);
    padding: 120px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #7E5BEF 0%, #2FD0B3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #555;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* Sobre nosotros */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(126, 91, 239, 0.1) 0%, rgba(47, 208, 179, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #7E5BEF;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: #7E5BEF;
    font-size: 1.4rem;
}

/* Formulario de contacto */
.contact-form-section {
    background: linear-gradient(135deg, rgba(126, 91, 239, 0.05) 0%, rgba(47, 208, 179, 0.05) 100%);
}

.form-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #7E5BEF;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 0l6 6 6-6z' fill='%23333'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 30px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 6px;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background: white;
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 40px;
    transition: background-color 0.3s ease;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, rgba(126, 91, 239, 0.05) 0%, rgba(47, 208, 179, 0.05) 100%);
    color: #7E5BEF;
}

.faq-item.active .faq-question:after {
    content: '−';
}

.faq-answer {
    background: white;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

/* Testimonios */
.testimonials {
    background: linear-gradient(135deg, rgba(126, 91, 239, 0.05) 0%, rgba(47, 208, 179, 0.05) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    position: relative;
    padding: 20px 0;
    margin-bottom: 20px;
    font-style: italic;
    color: #555;
}

.testimonial-text:before, .testimonial-text:after {
    content: '"';
    font-size: 3rem;
    color: #C3B9FF;
    line-height: 0;
    position: absolute;
}

.testimonial-text:before {
    top: 15px;
    left: -10px;
}

.testimonial-text:after {
    bottom: 5px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin: 0;
    color: #7E5BEF;
}

.testimonial-author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    margin-bottom: 10px;
    color: #7E5BEF;
}

.blog-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #7E5BEF 0%, #2FD0B3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ddd;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #2FD0B3;
}

.footer-contact a {
    color: #2FD0B3;
}

.copyright {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    transform: none;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 25px;
    width: 100%;
    max-width: 350px;
    display: none;
}

.cookie-popup.visible {
    display: block;
    animation: fadeInUp 0.5s forwards;
}

.cookie-content h3 {
    margin-bottom: 10px;
    color: #7E5BEF;
}

.cookie-content p {
    margin-bottom: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

/* Página de agradecimiento */
.thank-you {
    text-align: center;
    padding: 60px 0;
}

.thank-you-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid #C3B9FF;
}

.thank-you h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #7E5BEF;
}

.thank-you p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Páginas legales */
.legal-section {
    padding: 60px 0;
}

.legal-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    text-align: center;
    color: #7E5BEF;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.legal-text {
    margin-top: 30px;
}

.last-update {
    text-align: center;
    color: #777;
    font-style: italic;
    margin-bottom: 30px;
}

/* Alertas y mensajes de error */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-error {
    background-color: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: #d32f2f;
}

.alert p {
    margin: 5px 0;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .about-grid, .services-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .header-wrapper {
        height: 70px;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .main-nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .menu-toggle-input {
        display: none;
    }
    
    .menu-toggle-label {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 22px;
        position: relative;
    }
    
    .menu-toggle-label span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #7E5BEF;
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }
    
    .menu-toggle-label span:nth-child(1) {
        top: 0;
    }
    
    .menu-toggle-label span:nth-child(2) {
        top: 9px;
    }
    
    .menu-toggle-label span:nth-child(3) {
        top: 18px;
    }
    
    .menu-toggle-input:checked ~ .menu-toggle-label span:nth-child(1) {
        top: 9px;
        transform: rotate(135deg);
    }
    
    .menu-toggle-input:checked ~ .menu-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle-input:checked ~ .menu-toggle-label span:nth-child(3) {
        top: 9px;
        transform: rotate(-135deg);
    }
    
    /* Activación del menú */
    .menu-toggle-input:checked ~ .main-nav {
        height: auto;
        max-height: 300px;
    }
    
    /* Ajustes responsive */
    .about-grid, .services-grid, .testimonials-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 25px;
    }
} 