/* 
 * Auditoría Confiable - Main Stylesheet
 * Modern, animated and responsive design
 */

/* === BASE STYLES === */
:root {
    --color-bg-gradient-start: #fdfbfb;
    --color-bg-gradient-end: #ebedee;
    --color-primary: #009ca6;
    --color-secondary: #2c3e50;
    --color-text: #111;
    --color-text-light: #666;
    --color-white: #fff;
    --color-light: #f5f7f9;
    --color-border: #e1e4e8;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-2xl: 32px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-bg-gradient-start), var(--color-bg-gradient-end));
    min-height: 100vh;
}

section[id] {
    scroll-margin-top: 80px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--color-secondary);
    font-weight: 600;
}

h1 {
    font-size: 1.9rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
}

/* === LAYOUT === */
.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--color-light);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.animate-fade-in:nth-child(2) {
    animation-delay: 0.3s;
}

.animate-fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

/* === HEADER AND NAVIGATION === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

/* CSS-only hamburger menu */
.nav-container {
    position: relative;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle-label span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    position: absolute;
    transition: var(--transition);
}

.nav-toggle-label span:first-child {
    top: 0;
}

.nav-toggle-label span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle-label span:last-child {
    bottom: 0;
}

.nav {
    display: flex;
    align-items: center;
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: var(--color-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav ul li a:hover, 
.nav ul li a.active {
    color: var(--color-primary);
}

.btn-contact {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-contact:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* === HERO SECTION === */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('./img/ADvA7.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--color-white);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

/* === ABOUT SECTION === */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-white);
    font-size: 30px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.service-card ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 15px 0 20px;
}

.service-card ul li {
    margin-bottom: 8px;
}

.service-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* === BENEFITS SECTION === */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-white);
    font-size: 24px;
}

/* === PROCESS SECTION === */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 4px;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
}

.process-step {
    position: relative;
    padding-left: 120px;
    margin-bottom: 50px;
    animation: fadeIn 1s ease both;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:nth-child(2) {
    animation-delay: 0.2s;
}

.process-step:nth-child(3) {
    animation-delay: 0.4s;
}

.process-step:nth-child(4) {
    animation-delay: 0.6s;
}

.process-step:nth-child(5) {
    animation-delay: 0.8s;
}

.step-number {
    position: absolute;
    left: 30px;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    z-index: 1;
}

.step-content {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.step-content:hover {
    box-shadow: var(--shadow-lg);
}

/* === TESTIMONIALS SECTION === */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    left: -10px;
    top: -20px;
    font-size: 60px;
    color: var(--color-primary);
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.testimonial-author p {
    margin-bottom: 0;
    color: var(--color-text-light);
    font-size: 14px;
}

/* === CERTIFICATES SECTION === */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.certificate {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.certificate:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.certificate-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-white);
    font-size: 30px;
}

.certificate h3 {
    margin-bottom: 5px;
}

.certificate p {
    margin-bottom: 0;
    color: var(--color-text-light);
}

/* === CONTACT SECTION === */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    background-color: var(--color-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.info-item i {
    margin-right: 15px;
    font-size: 24px;
    color: var(--color-primary);
}

.info-item div h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.info-item div p {
    margin-bottom: 0;
}

.map {
    margin-top: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-form {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    border-top: 4px solid var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 156, 166, 0.1);
    background-color: #fff;
}

.form-group select {
    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='%232c3e50' 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 15px center;
    background-size: 18px;
    padding-right: 45px;
    cursor: pointer;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.form-group.checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.form-group.checkbox label a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-group.checkbox label a:hover {
    color: var(--color-secondary);
}

button[type="submit"] {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button[type="submit"]:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* === FOOTER === */
.footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
}

.footer-desc {
    margin-top: 20px;
    opacity: 0.8;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-list li i {
    margin-right: 10px;
    color: var(--color-primary);
}

.contact-list a {
    color: var(--color-white);
    opacity: 0.8;
    transition: var(--transition);
}

.contact-list a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.legal-links li {
    margin-bottom: 12px;
}

.legal-links a {
    color: var(--color-white);
    opacity: 0.8;
    transition: var(--transition);
}

.legal-links a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* === THANKS PAGE === */
.thanks-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.thanks-content {
    margin: 0 auto;
    text-align: center;
    max-width: 600px;
    padding: 50px;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.thanks-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.thanks-content h1 {
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* === POLICY PAGES === */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.policy-logo {
    text-align: center;
    margin-bottom: 40px;
}

.policy-content h1 {
    margin-bottom: 30px;
    text-align: center;
}

.policy-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* === COOKIE POPUP === */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 15px 0;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: bottom 0.5s ease, opacity 0.3s ease;
}

.cookie-popup.show {
    bottom: 0;
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 0;
    margin-right: 20px;
}

.cookie-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-content .btn {
    white-space: nowrap;
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* === Icons (Placeholder styles for icons) === */
[class^="icon-"] {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
    
    
    h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
   
    .section {
        padding: 60px 0;
    }
    
 
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step {
        padding-left: 80px;
    }
    
    .step-number {
        left: 10px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .policy-content {
        padding: 30px;
    }
}

/* === CSS-only Hamburger Menu for Mobile === */
@media (max-width: 992px) {
    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        transition: left 0.3s ease;
        padding: 100px 30px 30px;
        overflow-y: auto;
    }
    
    .nav ul {
        flex-direction: column;
    }
    
    .nav ul li {
        margin: 0 0 20px;
    }
    
    .nav ul li:last-child {
        margin-bottom: 0;
    }
    
    .nav-toggle:checked ~ .nav {
        left: 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span:first-child {
        transform: rotate(45deg) translate(5px, 9px);
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span:last-child {
        transform: rotate(-45deg) translate(5px, -9px);
    }
}

/* === ФОРМА === */
.error-message {
    background-color: #fff3f3;
    border-left: 4px solid #dc3545;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    color: #dc3545;
}

.error-message ul {
    margin: 0;
    padding-left: 20px;
}

.error-message li {
    margin-bottom: 5px;
}

.error-message li:last-child {
    margin-bottom: 0;
} 