/* Reseteo y variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --coral-primary: #FF6F61;
    --teal-primary: #006D77;
    --accent-yellow: #FFD166;
    --text-dark: #2F2F2F;
    --heading-blue: #073B4C;
    --background-white: #FDFCFB;
    --shadow-light: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--coral-primary) 0%, var(--teal-primary) 100%);
    min-height: 100vh;
}

/* Contenedor principal */
.main-container {
    background: var(--background-white);
    min-height: 100vh;
    margin: 0 auto;
    box-shadow: 0 0 30px var(--shadow-light);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px var(--shadow-light);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mejorar header con hover y focus */
header:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-blue);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
}

.nav-menu a:hover {
    color: var(--coral-primary);
    background: rgba(255, 111, 97, 0.1);
}

/* Secciones principales con animaciones mejoradas */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.section:nth-child(even) {
    animation-delay: 0.3s;
}

.section:nth-child(odd) {
    animation-delay: 0.15s;
}

.section:nth-child(3n) {
    animation-delay: 0.45s;
}

.section:nth-child(4n) {
    animation-delay: 0.6s;
}

/* Анимация появления секций */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Плавная анимация при наведении на секции */
.section:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(7, 59, 76, 0.7), rgba(255, 111, 97, 0.7)), url('./img/hWBol1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 10rem 2rem 8rem;
    margin-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-yellow);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    font-size: 1.1rem;
}

.btn:hover {
    background: transparent;
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 209, 102, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--coral-primary);
    border-color: var(--coral-primary);
}

.btn-secondary:hover {
    background: var(--coral-primary);
    color: white;
}

/* Títulos de sección */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--heading-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Tarjetas */
.card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral-primary), var(--accent-yellow));
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.card h3 {
    color: var(--heading-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Planes de servicios */
.pricing-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 3px solid var(--accent-yellow);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.07);
}

.price {
    font-size: 2.5rem;
    color: var(--coral-primary);
    font-weight: 800;
    margin: 1rem 0;
}

/* Formulario */
.form-container {
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 15px 35px var(--shadow-light);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--heading-blue);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--coral-primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    color: black;
}

/* Testimonios */
.testimonial {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 4px solid var(--accent-yellow);
}

.stars {
    color: var(--accent-yellow);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--heading-blue);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--accent-yellow);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--heading-blue);
    color: white;
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 8rem 1rem 6rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 4rem 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-actions {
        justify-content: center;
        width: 100%;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card:hover,
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .card,
    .testimonial,
    .pricing-card {
        padding: 2rem 1.5rem;
    }
}

/* Animaciones adicionales mejoradas */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Animación de entrada para elementos */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotateX(-90deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) rotateX(0deg);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Aplicar animaciones a diferentes elementos */
.card:nth-child(odd) {
    animation: slideInLeft 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.card:nth-child(even) {
    animation: slideInRight 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.testimonial {
    animation: bounceIn 1s ease-out forwards;
    animation-delay: 0.3s;
}

.pricing-card {
    animation: fadeInUp 1s ease-out forwards;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.3s; }
.pricing-card:nth-child(3) { animation-delay: 0.5s; }

/* Hover эффекты для интерактивности */
.card, .testimonial, .pricing-card {
    opacity: 0;
    transform: translateY(30px);
}

/* Улучшенные transition для smooth эффектов */
* {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Utilidades */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }
