/* 
* Domain - Servicios Contables
* Main Stylesheet
*/

/* Base Styles and Variables */
:root {
    --color-bg: #F1EFE5;
    --color-accent1: #C94F49;
    --color-accent2: #009688;
    --color-text: #2C2C2C;
    --font-main: 'Rubik', sans-serif;
    --shadow-soft: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: center; /* Center align section headings */
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Center the underline */
    transform: translateX(-50%); /* Center the underline */
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent2), var(--color-accent1));
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent2);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent1);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: var(--shadow-soft);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--color-accent2), var(--color-accent1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    display: inline-block;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent2), var(--color-accent1));
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero/Banner Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    text-align: center; /* Center align hero text */
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(201, 79, 73, 0.1);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(0, 150, 136, 0.1);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto; /* Center hero content */
    text-align: center; /* Center align hero text */
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-accent2), var(--color-accent1));
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent2);
    border: 2px solid var(--color-accent2);
}

.btn-secondary:hover {
    background-color: var(--color-accent2);
    color: white;
    transform: translateY(-3px);
}

/* About Section */
.about {
    position: relative;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transform: translateY(0);
    transition: var(--transition);
}

.about-image:hover {
    transform: translateY(-10px);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Features Section */
.features {
    background-color: #fff;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--color-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 150, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    color: var(--color-accent2);
    font-size: 1.8rem;
}

/* Services Section */
.services {
    background-color: var(--color-bg);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.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: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: var(--color-accent2);
}

/* Why Us Section */
.why-us {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(0, 150, 136, 0.05);
    z-index: 0;
}

.why-us-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.why-us-text {
    flex: 1;
    min-width: 300px;
}

.why-us-list {
    flex: 1;
    min-width: 300px;
}

.why-item {
    display: flex;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--color-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.why-item:hover {
    transform: translateX(5px);
}

.why-item-icon {
    margin-right: 1rem;
    color: var(--color-accent2);
    font-size: 1.5rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--color-bg);
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: rgba(0, 150, 136, 0.1);
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-client {
    display: flex;
    align-items: center;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info h4 {
    margin-bottom: 0.2rem;
    color: var(--color-accent2);
}

.client-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contact Form Section */
.contact {
    background-color: #fff;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(201, 79, 73, 0.05);
    z-index: 0;
}

.text-center {
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 2rem;
    background-color: var(--color-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent2);
    box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232C2C2C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

/* Footer */
footer {
    background-color: #2C2C2C;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--color-accent2), var(--color-accent1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    display: inline-block;
}

.footer-links {
    flex: 1;
    min-width: 250px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent1);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ddd;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent1);
    text-decoration: underline;
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.contact-item {
    display: flex;
    margin-bottom: 1rem;
}

.contact-icon {
    margin-right: 10px;
    color: var(--color-accent2);
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-text {
    flex: 1;
    padding-right: 1rem;
}

/* Policy Pages */
.policy-container {
    max-width: 900px;
    margin: 120px auto 3rem;
    padding: 3rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.policy-container h1 {
    margin-bottom: 2rem;
    color: var(--color-accent2);
    text-align: center;
}

.policy-container h2 {
    color: var(--color-accent2);
    margin-top: 2rem;
    text-align: center;
}

.policy-container p {
    margin-bottom: 1.5rem;
}

.policy-container ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-container li {
    margin-bottom: 0.5rem;
}

/* Thank You Page */
.thankyou {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.thankyou-content {
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
    background-color: #fff; /* Add background color for the frame */
    border-radius: 10px; /* Add rounded corners */
    box-shadow: var(--shadow-soft); /* Add shadow for depth */
    padding: 2.5rem; /* Add padding for the frame */
    text-align: center; /* Center text */
    margin: 0 auto; /* Center the box */
}

.thankyou-icon {
    font-size: 5rem;
    color: var(--color-accent2);
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .header-container {
        padding: 0.8rem 1.5rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 0;
        padding: 0.8rem 1.5rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 500px;
        padding: 4rem 0;
    }

    .about-content,
    .why-us-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
    }

    .testimonial-cards,
    .feature-cards,
    .service-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
    }

    .policy-container {
        padding: 2rem;
        margin: 100px auto 2rem;
    }
} 