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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: #fbf1e3;
}

html {
    scroll-behavior: smooth;
}

header {
    background: linear-gradient(135deg, #101820 0%, #dd8797 100%);
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(16, 24, 32, 0.3);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(237, 155, 173, 0.5);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 20px rgba(237, 155, 173, 0.8), 0 0 30px rgba(237, 155, 173, 0.6);
        transform: scale(1.05);
    }
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ed9bad;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #ed9bad;
}

.nav-links a:hover:after {
    width: 100%;
}

.hero {
    margin-top: 70px;
    min-height: 500px;
    height: 70vh;
    background: linear-gradient(rgba(16, 24, 32, 0.85), rgba(221, 135, 151, 0.85)),
                url('https://images.unsplash.com/photo-1554224311-beee460201f9?w=1600&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.hero:before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(237, 155, 173, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    z-index: 2;
    animation: fadeInUp 1s ease;
    max-width: 90%;
}

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

.hero h1 {
    font-size: clamp(32px, 8vw, 56px);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: clamp(16px, 4vw, 24px);
    margin-bottom: 30px;
}

.cta-button {
    background: linear-gradient(135deg, #dd8797 0%, #ed9bad 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: clamp(16px, 3vw, 18px);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(221, 135, 151, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover:before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(221, 135, 151, 0.6);
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

.image-slider {
    padding: 60px 20px;
    background: white;
    overflow: hidden;
}

.slider-container {
    max-width: 1200px;
    margin: 0 auto;
}

.slider-title {
    text-align: center;
    font-size: clamp(28px, 6vw, 42px);
    color: #101820;
    margin-bottom: 40px;
    animation: fadeIn 1s ease;
    position: relative;
    padding-bottom: 20px;
}

.slider-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #dd8797, #ed9bad);
    border-radius: 2px;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(16, 24, 32, 0.2);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 400px;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(16, 24, 32, 0.9));
    color: white;
    padding: 40px 20px 20px;
    transform: translateY(0);
    transition: transform 0.3s;
}

.slide-caption h3 {
    font-size: clamp(20px, 4vw, 24px);
    margin-bottom: 10px;
}

.slide-caption p {
    font-size: clamp(14px, 3vw, 16px);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    pointer-events: none;
}

.slider-btn {
    background: linear-gradient(135deg, #dd8797, #ed9bad);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(221, 135, 151, 0.4);
    pointer-events: all;
}

.slider-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(221, 135, 151, 0.6);
}

.slider-btn:active {
    transform: scale(0.9);
}

.services {
    padding: 60px 20px;
    background: linear-gradient(135deg, #fbf1e3 0%, #f5e6d3 100%);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    text-align: center;
    font-size: clamp(28px, 6vw, 42px);
    color: #101820;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.services h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #dd8797, #ed9bad);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(16, 24, 32, 0.1);
    transition: all 0.4s;
    animation: fadeInUp 0.6s ease;
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(237, 155, 173, 0.2), transparent);
    transition: left 0.5s;
}

.service-card:hover:before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(221, 135, 151, 0.3);
    border: 2px solid #ed9bad;
}

.service-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.service-card:hover .service-icon {
    animation: spin 0.5s ease;
}

@keyframes spin {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.2); }
}

.service-card h3 {
    color: #101820;
    font-size: clamp(20px, 4vw, 24px);
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.6;
}

.testimonials {
    padding: 60px 20px;
    background: white;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials h2 {
    text-align: center;
    font-size: clamp(28px, 6vw, 42px);
    color: #101820;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.testimonials h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #dd8797, #ed9bad);
    border-radius: 2px;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px;
    min-height: 250px;
}

.testimonial-card {
    background: linear-gradient(135deg, #dd8797 0%, #ed9bad 100%);
    padding: 30px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(221, 135, 151, 0.3);
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
    overflow: hidden;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 100px;
    opacity: 0.2;
}

.stars {
    color: #ffd700;
    font-size: 20px;
    margin-bottom: 15px;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.testimonial-text {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: clamp(15px, 3vw, 18px);
}

.testimonial-author {
    font-weight: bold;
    font-size: clamp(16px, 3vw, 18px);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.carousel-btn {
    background: linear-gradient(135deg, #dd8797, #ed9bad);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(221, 135, 151, 0.4);
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(221, 135, 151, 0.6);
}

.carousel-btn:active {
    transform: scale(0.9);
}

.comment-form {
    max-width: 600px;
    margin: 40px auto 0;
    background: #fbf1e3;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(16, 24, 32, 0.1);
    border: 2px solid #ed9bad;
}

.comment-form h3 {
    color: #101820;
    margin-bottom: 25px;
    text-align: center;
    font-size: clamp(22px, 5vw, 28px);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #101820;
    font-weight: 600;
    font-size: clamp(14px, 3vw, 16px);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ed9bad;
    border-radius: 10px;
    font-size: clamp(14px, 3vw, 16px);
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dd8797;
    box-shadow: 0 0 10px rgba(221, 135, 151, 0.3);
}

.star-rating {
    display: flex;
    gap: 10px;
    font-size: 28px;
    flex-wrap: wrap;
}

.star {
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s;
}

.star:hover,
.star.active {
    color: #ffd700;
    transform: scale(1.2);
}

.submit-btn {
    background: linear-gradient(135deg, #dd8797 0%, #ed9bad 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: clamp(16px, 3vw, 18px);
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.submit-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover:before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(221, 135, 151, 0.5);
}

.submit-btn:active {
    transform: translateY(0) scale(0.98);
}

footer {
    background: linear-gradient(135deg, #101820 0%, #dd8797 100%);
    color: white;
    padding: 50px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: clamp(20px, 4vw, 24px);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ed9bad;
}

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

.footer-section ul li {
    margin-bottom: 10px;
    font-size: clamp(14px, 3vw, 16px);
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: #ed9bad;
    padding-left: 5px;
}

.footer-section p {
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(237, 155, 173, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 18px;
}

.social-icon:hover {
    background: #ed9bad;
    transform: translateY(-5px) rotate(360deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: clamp(13px, 3vw, 15px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

.success-message {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    display: none;
    animation: slideInDown 0.5s ease;
    font-size: clamp(14px, 3vw, 16px);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries para mejor compatibilidad móvil */
@media (max-width: 768px) {
    nav {
        justify-content: center;
        gap: 15px;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        margin-top: 110px;
        min-height: 400px;
        background-attachment: scroll;
    }

    .slide {
        height: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        margin-top: 120px;
    }

    .slider-btn,
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .slide {
        height: 250px;
    }

    .comment-form {
        padding: 20px;
    }

    .star-rating {
        font-size: 24px;
        justify-content: center;
    }
}

/* Mejoras para touch en dispositivos móviles */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .slide:hover .slide-caption {
        transform: none;
    }

    .slide-caption {
        transform: translateY(0);
    }

    .nav-links a:hover:after {
        width: 0;
    }

    .cta-button:active,
    .submit-btn:active,
    .slider-btn:active,
    .carousel-btn:active {
        transform: scale(0.95);
    }
}