/* Base Styles */
:root {
    --color-primary: #007BFF;
    --color-accent: #FF6F61;
    --color-light-grey: #F5F5F5;
    --color-dark: #222222;
    --color-lime: #A4DE02;
    --color-white: #FFFFFF;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --scroll-margin-top: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

section[id] {
    scroll-margin-top: var(--scroll-margin-top);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

p {
    margin-bottom: 20px;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes slideIn {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

/* Header Styles */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 60px;
    width: auto;
}

.logo svg {
    height: 100%;
    width: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--color-dark);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background-color: rgba(164, 222, 2, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    flex: 0 0 55%;
}

.hero-image {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--color-dark);
    animation: fadeIn 0.8s ease-out forwards;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--color-dark);
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    animation: fadeIn 1.2s ease-out 0.6s forwards;
    opacity: 0;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* About Section */
.empresa {
    background-color: var(--color-white);
}

.empresa-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.empresa-text {
    flex: 0 0 50%;
}

.empresa-image {
    flex: 0 0 40%;
}

.rounded-image {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.rounded-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Benefits Section */
.ventajas {
    background-color: var(--color-light-grey);
}

.ventajas-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.ventaja-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    flex: 0 0 calc(33.333% - 20px);
    text-align: center;
    transition: var(--transition);
}

.ventaja-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.ventaja-icon {
    margin-bottom: 20px;
}

/* Services Section */
.servicios {
    background-color: var(--color-white);
}

.servicios-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.servicio-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    flex: 0 0 calc(33.333% - 20px);
    transition: var(--transition);
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.servicio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.servicio-card h3 {
    padding: 20px 20px 10px;
}

.servicio-card p {
    padding: 0 20px 20px;
}

.servicio-card .btn {
    margin: 0 20px 20px;
}

/* Contact Form */
.contacto {
    background-color: var(--color-light-grey);
}

.contacto form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-check {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-check input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.form-check label a {
    color: var(--color-primary);
    text-decoration: none;
}

.form-check label a:hover {
    text-decoration: underline;
}

/* Testimonials */
.testimonios {
    background-color: var(--color-white);
}

.testimonios-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonio {
    background-color: var(--color-light-grey);
    border-radius: var(--border-radius);
    padding: 30px;
    flex: 0 0 calc(33.333% - 20px);
    transition: var(--transition);
}

.testimonio:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.testimonio-content {
    position: relative;
    margin-bottom: 20px;
}

.testimonio-content p {
    font-style: italic;
}

.testimonio-content p::before {
    content: '"';
    font-size: 60px;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -15px;
}

.autor-nombre {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.autor-empresa {
    font-size: 14px;
    color: #666;
}

/* FAQ Section */
.faq {
    background-color: var(--color-light-grey);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

/* Стили для элемента details/summary */
.faq-item summary {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 18px;
    position: relative;
    list-style: none; /* Убираем маркер списка */
}

/* Убираем стандартный маркер для summary в Firefox */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Создаем свой маркер для summary */
.faq-item summary::after {
    content: "+";
    font-size: 24px;
    color: var(--color-primary);
    transition: var(--transition);
    position: absolute;
    right: 20px;
}

.faq-item[open] summary::after {
    content: "+";
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.faq-answer {
    padding: 0 20px 20px;
}

.faq-answer p {
    margin-bottom: 0;
}

/* Location Section */
.ubicacion {
    background-color: var(--color-white);
}

.ubicacion-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.ubicacion-info {
    flex: 0 0 40%;
}

.ubicacion-mapa {
    flex: 0 0 50%;
}

.map-image {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 30px 0 15px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo {
    flex: 0 0 25%;
}

.footer-logo .logo {
    margin-bottom: 10px;
    height: 45px;
}

.footer-logo p {
    font-size: 0.9em;
    line-height: 1.4;
}

.footer-nav {
    flex: 0 0 20%;
}

.footer-contact {
    flex: 0 0 25%;
}

.footer-title {
    font-family: var(--font-primary);
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--color-white);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 6px;
}

.footer-nav ul li a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9em;
}

.footer-nav ul li a:hover {
    color: var(--color-white);
}

.footer-contact p {
    color: #aaa;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.footer-bottom {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.85em;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 1001;
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.cookie-text {
    flex: 1;
    padding-right: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-cookie {
    padding: 8px 20px;
    font-size: 14px;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-content {
        flex: 0 0 60%;
    }
    
    .hero-image {
        flex: 0 0 35%;
    }
    
    .ventaja-card,
    .servicio-card,
    .testimonio {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content,
    .hero-image {
        flex: 0 0 100%;
    }
    
    .hero-image {
        margin-top: 30px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .empresa-content,
    .ubicacion-content {
        flex-direction: column;
    }
    
    .empresa-text,
    .empresa-image,
    .ubicacion-info,
    .ubicacion-mapa {
        flex: 0 0 100%;
    }
    
    .empresa-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 90px);
        background-color: var(--color-white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 0;
        margin-bottom: 20px;
    }
    
    .footer-logo,
    .footer-nav,
    .footer-contact {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .ventaja-card,
    .servicio-card,
    .testimonio {
        flex: 0 0 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        padding-right: 0;
        margin-bottom: 15px;
    }
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

.alert-error {
    background-color: rgba(255, 111, 97, 0.1);
    border-left: 4px solid var(--color-accent);
    color: #D32F2F;
} 