/* 
   Domain - Servicios Contables
   Estilos principales
*/

/* Variables globales */
:root {
    --color-primary-bg: #fdf8f5;
    --color-accent: #e74c3c;
    --color-deep-blue: #2c3e50;
    --color-secondary-bg: #ecf0f1;
    --color-link: #3498db;
    --font-main: 'Montserrat', sans-serif;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Altura del header más un poco de espacio */
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: var(--color-primary-bg);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-deep-blue);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-accent);
}

section {
    padding: 80px 0;
}

/* Añadir IDs específicos para las secciones con anclaje */
#ventajas, #servicios, #nosotros, #faq, #contacto {
    scroll-margin-top: 80px; /* Altura del header para permitir espacio al hacer scroll */
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Botones */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
}
.elem{
    display: inline-block;
    padding: 8px 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    line-height: 44px;
    border: none;
}
.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: #c0392b;
    color: white;
}

.btn-secondary {
    background-color: var(--color-deep-blue);
    color: white;
}

.btn-secondary:hover {
    background-color: #1a252f;
    color: white;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    max-width: 400px;
    padding: 20px;
    display: none;
}

.cookie-popup.visible {
    display: block;
    animation: fadeIn 0.5s;
}

.cookie-content {
    text-align: left;
}

.cookie-content p {
    margin-bottom: 15px;
}

/* Header */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--color-deep-blue);
    font-size: 1.8rem;
    text-decoration: none;
}

/* Menú de navegación */
.desktop-menu ul {
    display: flex;
    gap: 20px;
}

.desktop-menu li a {
    padding: 8px 15px;
    color: var(--color-deep-blue);
}

.desktop-menu li a:hover {
    color: var(--color-accent);
}

/* Menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--color-deep-blue);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu ul {
    flex-direction: column;
    padding: 20px;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu li a {
    display: block;
    padding: 10px 15px;
    text-align: center;
}

/* Banner Principal */
.main-banner {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../img/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
}

.main-banner h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
}

.main-banner h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.main-banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Ventajas */
.advantages {
    background-color: white;
}

.advantage-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.advantage-item {
    flex: 1 0 calc(50% - 15px);
    text-align: center;
    padding: 30px;
    background-color: var(--color-secondary-bg);
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed);
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
}

.icon {
    width: 40px;
    height: 40px;
}

/* Servicios */
.services {
    background-color: var(--color-secondary-bg);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.service-item {
    flex: 1 1 calc(33.33% - 20px);
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed);
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

.service-item p {
    margin-bottom: 25px;
}

/* Sobre Nosotros */
.about-us {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Testimonios */
.testimonials {
    background-color: var(--color-secondary-bg);
}

.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonial-item {
    flex: 1 1 calc(33.33% - 20px);
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.quote {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}

.quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--color-accent);
    position: absolute;
    left: -10px;
    top: -20px;
    opacity: 0.3;
}

.client-info {
    text-align: right;
}

/* FAQ */
.faq {
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.faq-toggle {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq-question {
    display: block;
    padding: 15px 20px;
    background-color: var(--color-secondary-bg);
    color: var(--color-deep-blue);
    cursor: pointer;
    position: relative;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    transition: transform var(--transition-speed);
}

.faq-toggle:checked ~ .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: white;
    transition: max-height var(--transition-speed);
    padding: 0 20px;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 200px;
    padding: 15px 20px;
}

/* Formulario de Contacto */
.contact-form {
    background-color: var(--color-secondary-bg);
}

.unique-form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(to right, var(--color-primary-bg), var(--color-secondary-bg));
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 2px solid var(--color-accent);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    font-family: var(--font-main);
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Footer */
.site-footer {
    background-color: var(--color-deep-blue);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-info {
    flex: 2;
}

.footer-contact,
.footer-links,
.footer-policies {
    flex: 1;
}

.site-footer .logo {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.site-footer h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.site-footer a {
    color: #ecf0f1;
}

.site-footer a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Páginas de políticas */
.policy-page {
    background-color: white;
    padding: 40px 0;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-primary-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.policy-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section h2 {
    text-align: left;
    margin-bottom: 20px;
}

.policy-section h3 {
    margin-bottom: 15px;
}

.policy-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.policy-section ul li {
    list-style-type: disc;
    margin-bottom: 10px;
}

.policy-date {
    text-align: right;
    font-style: italic;
    color: #777;
}

/* Página de Agradecimiento */
.thank-you {
    background-color: white;
    padding: 80px 0;
    text-align: center;
}

.success-message,
.error-message {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--color-primary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.visible {
    animation: slideInFromBottom 0.5s forwards;
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .advantage-item {
        flex: 1 0 100%;
    }
    
    .service-item {
        flex: 1 1 calc(50% - 15px);
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .testimonial-item {
        flex: 1 1 calc(50% - 15px);
    }
    
    .footer-grid > div {
        flex: 1 1 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .service-item {
        flex: 1 1 100%;
    }
    
    .testimonial-item {
        flex: 1 1 100%;
    }
    
    .footer-grid > div {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .main-banner {
        padding: 80px 0;
    }
    
    .main-banner h2 {
        font-size: 1.4rem;
    }
    
    .unique-form {
        padding: 20px;
    }
}