/* 
* AuditFin - Financial Audit Services
* Main stylesheet
*/

/* Reset and base styles */
:root {
    /* Color variables as specified */
    --primary-bg: #0f4c75;
    --secondary-bg: #3282b8;
    --accent: #f9a826;
    --text-light: #f2f2f2;
    --text-dark: #1b1b1b;
    --gradient-primary: linear-gradient(135deg, #3282b8 0%, #0f4c75 100%);
    --gradient-secondary: linear-gradient(135deg, #0f4c75 0%, #1b1b1b 100%);
    --dark-blue: #102c44; /* Nuevo color azul oscuro para el footer */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-bg);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-bg);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 4rem 0;
}

/* Header and Navigation */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo a {
    color: var(--primary-bg);
    display: flex;
    align-items: center;
}

.logo-text {
    margin-left: 0.5rem;
}

/* Navigation - Regular and Mobile */
.main-menu {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.main-menu li a {
    padding: 0.5rem 0;
    position: relative;
}

.main-menu li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.main-menu li a:hover:after {
    width: 100%;
}

.mobile-toggle {
    display: none;
}

.hidden {
    display: none;
}

.menu-icon {
    font-size: 1.5rem;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .main-menu {
        display: none;
    }
    
    .menu-mobile.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: var(--shadow);
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .mobile-toggle {
        display: block;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn:hover {
    background: var(--accent);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 6rem 0;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 76, 117, 0.7), rgba(15, 76, 117, 0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--text-light);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image img {
    display: none; /* Ocultamos la imagen ya que ahora será un fondo */
}

/* Services Section */
.about-service {
    background-color: #f5f9fc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Principles Section */
.principles {
    background-color: white;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.principle-item {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.principle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 2rem;
}

.principle-item:hover {
    transform: scale(1.05);
}

/* Why Choose Us Section */
.why-us {
    background-color: #f5f9fc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-preview {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.testimonial-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 2rem;
}

.testimonial-preview blockquote {
    font-style: italic;
    position: relative;
}

/* Pricing Section */
.pricing {
    background-color: white;
}

.pricing-toggle {
    margin-bottom: 2rem;
    text-align: center;
}

.toggle-group {
    display: inline-flex;
    background-color: #f5f5f5;
    border-radius: 30px;
    padding: 0.3rem;
    margin-bottom: 1rem;
}

.toggle-group input[type="radio"] {
    display: none;
}

.toggle-group label {
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
}

.toggle-group input[type="radio"]:checked + label {
    background-color: var(--accent);
    color: var(--text-dark);
    font-weight: bold;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-plan {
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1);
    opacity: 1;
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(249, 168, 38, 0.2);
    border-color: var(--accent);
}

.pricing-plan h3 {
    color: var(--primary-bg);
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 1rem 0;
    color: var(--secondary-bg);
}

.pricing-plan ul {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.pricing-plan ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-plan ul li:last-child {
    border-bottom: none;
}

/* Testimonials Section */
.testimonials {
    background-color: #f5f9fc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    color: var(--secondary-bg);
}

.author-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contact Form Section */
.contact-form {
    background-color: white;
}

.contact-form p {
    text-align: center;
    margin-bottom: 2rem;
}

form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f5f9fc;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-bg);
    font-weight: bold;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: white;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--secondary-bg);
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-group label, .checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input, .checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
}

form button {
    width: 100%;
    margin-top: 1rem;
}

/* Contact Info Section */
.contact-info {
    background-color: var(--dark-blue); /* Cambio de #f5f9fc a var(--dark-blue) */
    color: var(--text-light); /* Añadido para que el texto sea claro */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-item h3 {
    color: var(--accent); /* Cambio a color acento para que coincida con el estilo del footer */
    margin-bottom: 0.5rem;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background-color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: var(--dark-blue); /* Cambio a azul oscuro */
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(27, 27, 27, 0.95);
    color: var(--text-light);
    padding: 1rem;
    z-index: 9999;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
}

.cookie-content {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-consent p {
    margin: 0;
}

.cookie-consent a {
    color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-consent button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .principle-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Prevenir desplazamiento horizontal */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
} 