/* 
   Main stylesheet for domain - Accounting Services
   Color Palette:
   - Main background: #2B3A67 (ultramarine)
   - Accents: #FFF200 (acid yellow), #00FFC6 (neon turquoise), #FF6B3B (coral orange)
   - Text: #F8F8F8 (milk white), #1A2238 (dark blue)
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F8F8F8;
    background-color: #2B3A67;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    color: #F8F8F8;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #00FFC6;
    margin: 15px auto 0;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #00FFC6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFF200;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
}

/* Header Styles */
.site-header {
    background-color: rgba(43, 58, 103, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: #F8F8F8;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-svg {
    margin-right: 10px;
}

.main-nav .menu {
    display: flex;
    list-style: none;
}

.main-nav .menu li {
    margin-left: 1.5rem;
}

.main-nav .menu a {
    color: #F8F8F8;
    font-weight: 500;
    position: relative;
}

.main-nav .menu a:hover {
    color: #FFF200;
}

.main-nav .menu a.btn-nav {
    background-color: #FF6B3B;
    color: #F8F8F8;
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

.main-nav .menu a.btn-nav:hover {
    background-color: #FFF200;
    color: #1A2238;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
}

/* Main Content Styles */
main {
    padding-top: 70px; /* Reducido para eliminar espacio entre header y hero */
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background-color: #FF6B3B;
    color: #F8F8F8;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #FF6B3B;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: #FF6B3B;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #00FFC6;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #00FFC6;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #00FFC6;
    color: #1A2238;
}

/* Cookie Popup Styles */
.cookie-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 34, 56, 0.95);
    padding: 1rem;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0 1rem 0 0;
    flex-grow: 1;
}

.btn-cookie {
    background-color: #00FFC6;
    color: #1A2238;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-cookie:hover {
    background-color: #FFF200;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2B3A67 0%, #1A2238 100%);
    padding: 80px 0 80px; /* Reducido para disminuir espacio superior */
    min-height: 90vh; /* Reducido para disminuir espacio vacío */
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #FFF200;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #F8F8F8;
    opacity: 0.9;
    max-width: 600px;
    animation: fadeIn 1.2s ease-out;
}

/* About Section */
.about {
    background-color: #1A2238;
    padding: 100px 0;
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    padding-right: 2rem;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.about-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 107, 59, 0.7) 0%, rgba(0, 255, 198, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image:hover:before {
    opacity: 0.3;
}

/* Benefits Section */
.benefits {
    background-color: #2B3A67;
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: rgba(26, 34, 56, 0.6);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: #00FFC6;
}

.benefit-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FFF200, #00FFC6, #FF6B3B);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.benefit-card:hover:before {
    transform: scaleX(1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #00FFC6;
    transition: all 0.3s ease;
    position: relative;
}

/* Íconos específicos para cada benefit */
.benefit-icon:before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.benefit-icon.expertise:before {
    content: '✓';
    font-size: 50px;
    font-weight: bold;
}

.benefit-icon.personalized:before {
    content: '★';
    font-size: 50px;
    font-weight: bold;
}

.benefit-icon.support:before {
    content: '✆';
    font-size: 50px;
    font-weight: bold;
}

.benefit-icon.technology:before {
    content: '⚙';
    font-size: 50px;
    font-weight: bold;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
    color: #FFF200;
}

/* Services Section */
.services {
    background-color: #1A2238;
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(43, 58, 103, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card h3, .service-card p {
    padding: 0 1.5rem;
}

.service-card h3 {
    margin-top: 1.5rem;
    color: #00FFC6;
}

.service-card p {
    margin-bottom: 2rem;
}

.service-card .btn-secondary {
    margin: 0 1.5rem 1.5rem;
}

/* Testimonials Section - Modificado para mostrar testimonios en una fila */
.testimonials {
    background-color: #2B3A67;
    padding: 100px 0;
    text-align: center;
}

.testimonials-slider {
    max-width: 100%;
    margin: 0 auto;
    display: flex; 
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
}

.testimonial {
    background-color: rgba(26, 34, 56, 0.6);
    padding: 1.5rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 255, 198, 0.3);
    width: 30%;
    min-width: 280px;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: #00FFC6;
}

.testimonial-content {
    font-style: italic;
    position: relative;
    padding: 1rem 0;
    font-size: 0.95rem;
}

.testimonial-content:before, .testimonial-content:after {
    content: '"';
    font-size: 2.5rem;
    color: #00FFC6;
    line-height: 0;
    position: absolute;
}

.testimonial-content:before {
    top: 0;
    left: 0;
}

.testimonial-content:after {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

.testimonial-author h4 {
    color: #FFF200;
    margin-bottom: 0.3rem;
}

.testimonial-author p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Portfolio Section */
.portfolio {
    background-color: #1A2238;
    padding: 100px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: rgba(43, 58, 103, 0.8);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #FF6B3B;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-left-color: #FFF200;
}

.portfolio-item h3 {
    color: #FF6B3B;
}

/* FAQ Section */
.faq {
    background-color: #2B3A67;
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.faq-item input[type="checkbox"] {
    display: none;
}

.faq-item label {
    display: block;
    padding: 1.5rem;
    background-color: rgba(26, 34, 56, 0.8);
    color: #F8F8F8;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    border-left: 4px solid #FFF200;
    transition: all 0.3s ease;
}

.faq-item label:hover {
    background-color: rgba(26, 34, 56, 1);
}

.faq-item label:after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item input[type="checkbox"]:checked + label:after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    background-color: rgba(43, 58, 103, 0.6);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    border-left: 4px solid #00FFC6;
}

.faq-answer p {
    padding: 1.5rem;
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
    max-height: 500px;
}

/* Contact Section */
.contact {
    background-color: #1A2238;
    padding: 100px 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.contact-form {
    flex: 1;
    max-width: 600px; /* Formulario más estrecho */
    background-color: rgba(43, 58, 103, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 242, 0, 0.2);
    transition: border-color 0.3s ease;
}

.contact-form:hover {
    border-color: #FFF200;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #F8F8F8;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 198, 0.3);
    background-color: rgba(26, 34, 56, 0.8);
    color: #F8F8F8;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00FFC6;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    display: inline;
    font-weight: normal;
}

.contact-info {
    flex: 0 0 300px;
    background-color: rgba(26, 34, 56, 0.95); /* Fondo más oscuro para mayor contraste */
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #FF6B3B;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-info h3 {
    color: #FF6B3B;
    margin-bottom: 1.5rem;
}

.contact-info .icon,
.footer-contact .icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    position: relative;
    top: 2px;
    color: #00FFC6;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.contact-info .icon.phone:before,
.footer-contact .icon.phone:before {
    content: "☎";
    font-size: 18px;
}

.contact-info .icon.address:before,
.footer-contact .icon.address:before {
    content: "⌖";
    font-size: 18px;
}

.contact-info .icon.email:before,
.footer-contact .icon.email:before {
    content: "✉";
    font-size: 16px;
}

/* Footer Styles */
.site-footer {
    background-color: #161d30; /* Footer más oscuro para mayor contraste */
    padding: 60px 0 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-about {
    grid-column: span 2;
}

.footer-about .logo {
    margin-bottom: 1rem;
}

.footer-about p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-nav, .footer-legal, .footer-contact {
    padding-top: 1rem;
}

.footer-nav h4, .footer-legal h4, .footer-contact h4 {
    color: #00FFC6;
    margin-bottom: 1rem;
}

.footer-nav ul, .footer-legal ul {
    list-style: none;
}

.footer-nav ul li, .footer-legal ul li {
    margin-bottom: 0.75rem;
}

.footer-nav ul li a, .footer-legal ul li a {
    color: #F8F8F8;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-nav ul li a:hover, .footer-legal ul li a:hover {
    opacity: 1;
    color: #FFF200;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(248, 248, 248, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Legal Pages Styling (Uniform frame and style) */
.legal {
    padding-top: 120px;
    padding-bottom: 60px;
    background-color: #1A2238;
}

.legal h1 {
    text-align: center;
    color: #FFF200;
    margin-bottom: 2rem;
}

.legal-content {
    background-color: rgba(43, 58, 103, 0.8);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid #00FFC6;
    margin-bottom: 2rem;
}

.legal-content h2 {
    color: #FF6B3B;
    font-size: 1.6rem;
    text-align: left;
    margin-top: 2rem;
}

.legal-content h2:after {
    margin-left: 0;
    width: 60px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p, .legal-content ul, .legal-content li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 1.5rem;
}

/* Thanks Page Styling */
.thanks {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    background-color: #1A2238;
}

.thanks-content {
    background-color: rgba(43, 58, 103, 0.8);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid #00FFC6;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.thanks-icon {
    margin: 0 auto 2rem;
    width: 80px;
}

.thanks h1 {
    color: #FFF200;
    margin-bottom: 1.5rem;
}

.thanks p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.thanks-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .hero-content, .hero-image {
        flex: 100%;
    }
    .hero-content {
        margin-bottom: 2rem;
        padding-right: 0;
    }
    .about-text, .about-image {
        flex: 100%;
    }
    .about-text {
        margin-bottom: 2rem;
        padding-right: 0;
    }
    .testimonials-slider {
        flex-wrap: wrap;
    }
    .testimonial {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu-icon {
        display: block;
        cursor: pointer;
        padding: 10px;
    }
    
    .menu-icon span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #F8F8F8;
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .main-nav .menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(26, 34, 56, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }
    
    .menu-toggle:checked ~ .menu {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .main-nav .menu li {
        margin: 1rem 0;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    .hero {
        padding: 80px 0 60px;
    }
} 