/* 
* Main CSS File for domain.com
* Color Palette:
* - Основной фон: лазурный (#01A2A6)
* - Акценты: кораллово-розовый (#FF6B6B), янтарный (#FFD166)
* - Тексты: графитовый (#2C2C2C), вторичный текст — тёплый серый (#7E7E7E)
* - Элементы UI: бледно-зелёный (#B8E986), белый (#FFFFFF)
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #01A2A6;
    --color-accent1: #FF6B6B;
    --color-accent2: #FFD166;
    --color-text: #2C2C2C;
    --color-text-secondary: #7E7E7E;
    --color-ui: #B8E986;
    --color-white: #FFFFFF;
    --font-primary: 'Segoe UI', Arial, sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
    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-accent1);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--color-accent1);
    bottom: 0;
    left: 0;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--color-accent1);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: var(--color-accent2);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-ui);
    color: var(--color-text);
}

/* Animation Keyframes */
@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); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a {
    display: flex;
    align-items: center;
    color: var(--color-text);
}

.logo-container span {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 10px;
}

.logo {
    animation: pulse 2s infinite;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 600;
    color: var(--color-text);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent1);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--color-accent1);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 30px;
}

.cta-button:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.cta-button::after {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--color-text);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    text-align: center; /* Centrar texto */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-color: rgba(255, 107, 107, 0.2);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    animation: fadeIn 1s ease-out;
    margin: 0 auto; /* Centrar contenido */
}

.hero h1 {
    margin-bottom: 30px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center; /* Centrar botones */
}

/* Cambiado el estilo del primer botón para que no se mezcle con el fondo */
.hero .btn:first-child {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.hero .btn:first-child:hover {
    background-color: var(--color-accent2);
    color: var(--color-text);
}

/* About Section */
.about {
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.about-content {
    animation: slideInLeft 1s ease-out;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    animation: slideInRight 1s ease-out;
}

/* Services Section */
.services {
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(1, 162, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Why Us Section */
.why-us {
    background-color: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 20px;
    border: 2px solid var(--color-primary); /* Añadir borde */
    border-radius: 10px; /* Redondear esquinas */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Añadir sombra */
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px); /* Efecto al pasar el cursor */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 209, 102, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    transform: rotate(10deg);
    background-color: rgba(255, 107, 107, 0.2);
}

/* Testimonials Section */
.testimonials {
    background-color: #f9f9f9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0; /* Evitar que la imagen se redimensione */
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Asegurar que la imagen sea perfectamente circular */
}

.testimonial-author-name {
    font-weight: 600;
}

.testimonial-author-title {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Contact Form Section */
.contact {
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.contact-info {
    padding: 30px;
    background-color: rgba(1, 162, 166, 0.05);
    border-radius: 10px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-item i {
    margin-right: 15px;
    color: var(--color-primary);
}

/* Imagen de contacto */
.contact-image {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-form {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(1, 162, 166, 0.2);
    outline: none;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232C2C2C' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.gradient-border {
    position: relative;
    border-radius: 10px;
    padding: 40px;
    background: var(--color-white);
    overflow: hidden;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent1), var(--color-accent2));
    z-index: -1;
    border-radius: 12px;
    animation: animateGradient 3s linear infinite;
}

@keyframes animateGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Blog Section */
.blog {
    background-color: #f9f9f9;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 20px;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: var(--color-white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3, .footer-column h4 {
    color: var(--color-white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after, .footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent1);
}

.footer-column p {
    color: #bbb;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bbb;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--color-accent1);
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

address {
    font-style: normal;
    color: #bbb;
}

address a {
    color: #bbb;
}

address a:hover {
    color: var(--color-accent1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 0;
    margin-right: 20px;
}

#accept-cookies {
    padding: 8px 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

#accept-cookies:hover {
    background-color: var(--color-accent1);
}

/* Policy Pages */
.policy-page {
    padding: 100px 0;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h2 {
    margin-top: 40px;
}

.policy-content h3 {
    margin-top: 30px;
}

.policy-content ul, .policy-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Thank You Page */
.thank-you-page {
    padding: 100px 0;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border: 2px solid var(--color-accent1); /* Añadir borde */
    border-radius: 15px; /* Esquinas redondeadas */
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* Sombra para efecto 3D */
}

.check-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(184, 233, 134, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.check-icon svg {
    width: 40px;
    height: 40px;
}

.thank-you-content .buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

@media screen and (max-width: 576px) {
    .thank-you-content .buttons {
        flex-direction: column;
    }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        order: 1;
    }
    
    .about-image {
        order: 0;
        margin-bottom: 30px;
    }
    
    .hero {
        padding: 80px 0;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        max-height: 300px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 0 0 15px 0;
    }
    
    nav ul li:last-child {
        margin-bottom: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-buttons .btn:first-child {
        margin-bottom: 10px;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .gradient-border {
        padding: 25px;
    }
} 