/*
* domain.com - Estilos principales
* 
* Estilos para el sitio web de auditoría financiera domain.com
* Utilizando la paleta de colores:
* - Fondo principal: #004F4F (verde esmeralda)
* - Elementos de acento: #FFB300 (ámbar dorado)
* - Color secundario: #F5F5F5 (gris cálido)
* - Color del texto: #222222 (grafito oscuro)
* - Color de botones al pasar el ratón: #FF7043 (naranja coral)
*/

/* ===== RESET Y ESTILOS GENERALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222222;
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: #004F4F;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center; /* Centrar todos los encabezados */
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%; /* Centrar la línea decorativa */
    transform: translateX(-50%); /* Centrar correctamente */
    width: 60px;
    height: 3px;
    background-color: #FFB300;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: #004F4F;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFB300;
}

section {
    padding: 80px 0;
}

/* Estilos para botones */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #FFB300;
    color: #222222;
}

.btn-primary:hover {
    background-color: #FF7043;
    color: #fff;
}

.btn-secondary {
    background-color: #004F4F;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #003030;
}

/* ===== HEADER ===== */
.site-header {
    background-color: #004F4F;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFB300;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.logo:hover {
    color: #FFB300;
}

/* Menú principal */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: #fff;
    font-weight: 500;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #FFB300;
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #FFB300;
}

.main-nav a:hover:after {
    width: 100%;
}

/* Menú móvil */
.mobile-menu-container {
    display: none;
}

.menu-icon {
    display: block;
    cursor: pointer;
    padding: 10px;
}

.bar1, .bar2, .bar3 {
    width: 30px;
    height: 3px;
    background-color: #FFB300;
    margin: 6px 0;
    transition: 0.4s;
}

.menu-icon.change .bar1 {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.menu-icon.change .bar2 {
    opacity: 0;
}

.menu-icon.change .bar3 {
    transform: rotate(45deg) translate(-6px, -6px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #004F4F;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 500;
}

.mobile-menu a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #FFB300;
}

/* ===== MAIN CONTENT ===== */
.site-main {
    padding-top: 80px; /* Para compensar el header fijo */
}

/* Hero Section */
.hero-section {
    background-color: #004F4F;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
    color: #fff;
}

.hero-section .subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}

/* About Section */
.about-section {
    background-color: #fff;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    width: 100%;
    text-align: center; /* Centrar texto en esta sección */
}

/* Benefits Section */
.benefits-section {
    background-color: #F5F5F5;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-item {
    background-color: #fff;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Eliminar las transformaciones en hover para que siempre sean visibles */
    opacity: 1;
    transform: none;
}

.benefit-image {
    width: 100%;
    height: auto;
    margin: 0 auto 20px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

/* Services Section */
.services-section {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    background-color: #F5F5F5;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Eliminar transformaciones */
    opacity: 1;
    transform: none;
}

.service-item h3 {
    color: #004F4F;
    margin-bottom: 15px;
}

.service-item .btn {
    margin-top: 15px;
}

/* Portfolio Section */
.portfolio-section {
    background-color: #F5F5F5;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    background-color: #fff;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Eliminar transformaciones */
    opacity: 1;
    transform: none;
}

.portfolio-item h3 {
    color: #004F4F;
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-item {
    background-color: #F5F5F5;
    border-radius: 6px;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Eliminar transformaciones */
    opacity: 1;
    transform: none;
}

.testimonial-item:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: rgba(0, 79, 79, 0.1);
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 600;
    color: #004F4F;
    text-align: right;
}

/* Contact Section */
.contact-section {
    background-color: #F5F5F5;
}

.form-container {
    background-color: #fff;
    border-radius: 6px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 0 auto;
}

.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: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #004F4F;
    outline: none;
}

.checkbox-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
}

.checkbox-container label a {
    text-decoration: underline;
}

/* Map Section */
.map-section {
    background-color: #fff;
}

.map-container {
    margin-top: 30px;
}

/* Mapa de Google */
.google-map {
    width: 100%;
    height: 450px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.address-info {
    padding: 20px;
    background-color: #F5F5F5;
    border-radius: 6px;
}

.address-info p {
    margin-bottom: 10px;
}

/* FAQ Section */
.faq-section {
    background-color: #F5F5F5;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: block;
    background-color: #004F4F;
    color: #fff;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: left; /* Alinear texto a la izquierda */
}

.faq-question:hover {
    background-color: #003030;
    color: #fff;
}

.faq-question.active {
    background-color: #003030;
}

.faq-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
}

.faq-answer {
    height: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer:not([style*="max-height: 500px"]) {
    height: 0;
    padding: 0;
    visibility: hidden;
}

.faq-answer[style*="max-height: 500px"] {
    padding: 15px 20px;
    height: auto;
    visibility: visible;
}

/* Thanks Section */
.thanks-section {
    text-align: center;
    padding: 100px 0;
}

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #004F4F; /* Añadir borde para crear marco */
}

.thanks-content h1 {
    color: #004F4F;
    margin-bottom: 30px;
}

.buttons {
    margin-top: 40px;
}

/* Policy Section */
.policy-section {
    padding: 100px 0;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-content h1 {
    color: #004F4F;
    margin-bottom: 30px;
    text-align: center;
}

.policy-box {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #F5F5F5;
    border-radius: 6px;
}

.policy-box h2 {
    color: #004F4F;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.policy-box h2:after {
    display: none;
}

.policy-box ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.policy-date {
    font-style: italic;
    color: #777;
    text-align: right;
    margin-bottom: 30px;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #004F4F;
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-popup p {
    margin: 0 20px 0 0;
}

.cookie-popup button {
    background-color: #FFB300;
    color: #222222;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.cookie-popup button:hover {
    background-color: #FF7043;
    color: #fff;
}

.cookie-popup a {
    color: #FFB300;
    margin-left: 10px;
}

.cookie-popup a:hover {
    color: #FF7043;
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: #004F4F;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #FFB300;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFB300;
    margin-bottom: 15px;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.footer-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 10px;
}

.contact-info a {
    color: #fff;
}

.contact-info a:hover {
    color: #FFB300;
}

.legal-links {
    list-style: none;
}

.legal-links li {
    margin-bottom: 10px;
}

.legal-links a {
    color: #fff;
}

.legal-links a:hover {
    color: #FFB300;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}