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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    font-weight: 600;
    overflow-x: hidden;
}

/* Variables */
:root {
    --vinotinto: #8b2635;
    --vinotinto-dark: #6b1d28;
    --azul-oscuro: #1e3a8a;
    --blanco: #ffffff;
    --negro: #0a0a0a;
    --gris-claro: #f8f9fa;
    --gris-medio: #6b7280;
    --verde-whatsapp: #25d366;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--verde-whatsapp);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--vinotinto) 0%, var(--azul-oscuro) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--blanco);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-quote {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.7;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--blanco);
    color: var(--vinotinto);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

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

.hero-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: fadeInRight 0.8s ease;
}

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

/* Servicios */
.services {
    padding: 80px 0;
    background: var(--gris-claro);
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--negro);
    margin-bottom: 12px;
}

.services-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gris-medio);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.category-card {
    background: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 35px rgba(0,0,0,0.15);
}

.category-card:nth-child(5) { 
    grid-column: 1 / -1;
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
}

.category-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.category-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.08);
}

.category-content {
    padding: 32px 28px;
}

.category-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--negro);
    margin-bottom: 20px;
    line-height: 1.2;
}

.category-services {
    list-style: none;
    margin-bottom: 28px;
    padding: 0;
}

.category-services li {
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gris-medio);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
    padding-left: 24px;
    transition: all 0.2s ease;
}

.category-services li:last-child {
    border-bottom: none;
}

.category-services li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--vinotinto) 0%, var(--azul-oscuro) 100%);
    border-radius: 50%;
}

.category-services li:hover {
    color: var(--negro);
    padding-left: 28px;
}

.btn-category {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--vinotinto) 0%, var(--azul-oscuro) 100%);
    color: var(--blanco);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 38, 53, 0.3);
}

.btn-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 38, 53, 0.4);
}

/* Testimonios */
.testimonials {
    padding: 80px 0;
    background: var(--blanco);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--negro);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial {
    background: var(--gris-claro);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gris-medio);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 16px;
    border-top: 2px solid rgba(139, 38, 53, 0.2);
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--negro);
}

.author-location {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gris-medio);
}

/* Contacto */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--vinotinto) 0%, var(--azul-oscuro) 100%);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--blanco);
    margin-bottom: 12px;
}

.contact-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--verde-whatsapp);
    color: var(--blanco);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    margin-bottom: 20px;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.6);
}

.contact-phone {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 8px;
}

.contact-location {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    background: var(--negro);
    padding: 30px 0;
    text-align: center;
}

.footer-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-grid {
        gap: 32px;
    }
    
    .category-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-quote {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-image img {
        max-width: 350px;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .category-card:nth-child(5) {
        max-width: 100%;
    }
    
    .category-image {
        height: 200px;
    }
    
    .category-content {
        padding: 28px 24px;
    }
    
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials-title {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .contact-title {
        font-size: 2.2rem;
    }
    
    .contact-phone {
        font-size: 1.5rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-quote {
        font-size: 1.1rem;
    }
    
    .services-title {
        font-size: 1.8rem;
    }
    
    .category-image {
        height: 180px;
    }
    
    .category-content {
        padding: 24px 20px;
    }
    
    .category-title {
        font-size: 1.4rem;
    }
    
    .category-services li {
        font-size: 0.95rem;
    }
    
    .testimonials-title {
        font-size: 1.8rem;
    }
    
    .testimonial {
        padding: 24px;
    }
    
    .contact-title {
        font-size: 1.9rem;
    }
    
    .btn-contact {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

/* Animaciones suaves */
.category-card,
.testimonial {
    will-change: transform;
}

/* Smooth transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
