/*
* Hoja de estilos principal
* Sitio web de Auditoría Financiera
* Paleta: 
* - Principal: Eléctrica fucsia (#FF00A6)
* - Fondo: Perla blanca (#F9F6EE)
* - Acentos: Lázuli amarillo (#F4E409)
* - Texto: Índigo profundo (#2E2D88)
* - Botones: Turquesa humeante (#3AD1C8)
* Fuentes: Montserrat y Nunito
*/

/* === RESET === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* === VARIABLES === */
:root {
    --color-primary: #FF00A6;
    --color-background: #F9F6EE;
    --color-accent: #F4E409;
    --color-text: #2E2D88;
    --color-button: #3AD1C8;
    --color-button-hover: #2BBCB3;
    --color-white: #ffffff;
    --color-light: #f5f5f5;
    --color-dark: #333333;
    --color-gray: #888888;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Nunito', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* === BASE STYLES === */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* === UTILIDADES === */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* === BOTONES === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-button);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-button-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-text);
}

.btn-secondary:hover {
    background-color: #e5d608;
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-button);
    border: 2px solid var(--color-button);
}

.btn-outline:hover {
    background-color: var(--color-button);
    color: var(--color-white);
}

/* === HEADER === */
.site-header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: block;
}

.logo img {
    height: auto;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .nav-list li:not(:last-child) {
    margin-right: 1.5rem;
}

.main-nav .nav-list a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav .nav-list a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.main-nav .nav-list a:not(.btn):hover::after {
    width: 100%;
}

/* Estilos para el formulario del toggle del menú */
.menu-toggle-form {
    display: none;
    background: none;
    padding: 0;
    margin: 0;
    border: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

/* === HERO SECTION === */
.hero {
    padding: 6rem 0;
    background-color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    height: 120px;
    background-color: var(--color-background);
    transform: skewY(-4deg);
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    color: var(--color-primary);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: perspective(800px) rotateY(-8deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: perspective(800px) rotateY(0);
}

/* === ABOUT SECTION === */
.about {
    text-align: center;
    padding-top: 8rem;
}

.about h2 {
    color: var(--color-primary);
    margin-bottom: 2.5rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* === SERVICES SECTION === */
.services {
    background-color: var(--color-light);
    position: relative;
    z-index: 2;
}

.services h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--color-text);
}

.service-card p {
    padding: 0 1.5rem;
    color: var(--color-dark);
}

.service-card .price {
    font-weight: 700;
    color: var(--color-primary);
}

.service-card .btn {
    margin: 1.5rem;
    display: block;
}

/* === PROCESS SECTION === */
.process {
    text-align: center;
}

.process h2 {
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.step {
    flex: 1;
    min-width: 200px;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 1rem;
}

/* === TESTIMONIALS SECTION === */
.testimonials {
    background-color: var(--color-light);
    text-align: center;
}

.testimonials h2 {
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -1rem;
    padding: 1rem;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    flex: 0 0 calc(33.333% - 2rem);
    scroll-snap-align: start;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 1rem;
    min-width: 300px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 4rem;
    position: absolute;
    left: -1rem;
    top: -2rem;
    opacity: 0.2;
    color: var(--color-primary);
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-primary);
}

/* === CONTACT FORM === */
.contact-form {
    background-color: var(--color-white);
    position: relative;
}

.contact-form h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 0, 166, 0.2);
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

.checkbox label {
    margin-bottom: 0;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

/* === CONTACT INFO === */
.contact-info {
    text-align: center;
}

.contact-info h2 {
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.contact-item {
    margin: 1rem;
    min-width: 200px;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-item i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
}

.contact-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === FOOTER === */
.site-footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
    margin-bottom: 2rem;
}

.footer-logo img {
    margin-bottom: 1rem;
}

.footer-logo p {
    max-width: 300px;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.footer-column {
    margin-right: 1rem;
    margin-bottom: 2rem;
    min-width: 150px;
}

.footer-column h4 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul a {
    color: var(--color-white);
    transition: var(--transition);
}

.footer-column ul a:hover {
    color: var(--color-accent);
}

.contact-info li {
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === LEGAL PAGES === */
.legal-page {
    padding: 6rem 0;
}

.legal-page h1 {
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.legal-content h2 {
    color: var(--color-text);
    margin-top: 2rem;
}

.legal-content h3 {
    color: var(--color-text);
    font-size: 1.2rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
}

/* === THANKS PAGE === */
.thanks-section {
    padding: 8rem 0;
    text-align: center;
}

.thanks-content h1 {
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.thanks-message {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.thanks-message p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* === COOKIE BANNER === */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1rem;
    transition: opacity 0.3s;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

/* === MEDIA QUERIES === */
/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .menu-toggle-form {
        display: block;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .main-nav .nav-list.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .main-nav .nav-list li {
        margin: 0 0 1rem 0 !important;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .testimonial {
        flex: 0 0 calc(100% - 2rem);
    }
    
    .contact-details {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial {
        flex: 0 0 calc(50% - 2rem);
    }
}

/* Laptop/Desktop */
@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }
    
    section {
        padding: 6rem 0;
    }
}

/* Estilos adicionales para páginas de servicios detallados */
.page-header {
    background-color: var(--color-light);
    text-align: center;
    padding: 4rem 0;
}

.page-header h1 {
    color: var(--color-primary);
}

.services-detail {
    padding: 4rem 0;
}

.service-item {
    display: flex;
    margin-bottom: 4rem;
    gap: 3rem;
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
}

.service-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.service-content {
    flex: 1;
}

.service-content h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-content .price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .service-item {
        flex-direction: column !important;
    }
    
    .service-image {
        margin-bottom: 2rem;
    }
    
    .service-image img {
        height: 250px;
    }
} 