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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* Header y Navegación */
header {
    background: linear-gradient(135deg, #3a6186 0%, #89253e 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo img {
    height: 80px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('images/fondo.jpeg');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.hero-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: #ff4e53;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.3s ease;
}

.btn-primary:hover {
    background: #e63946;
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 80%;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 5px;
    background: #ff4e53;
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.icon img {
    width: 100%;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.card p {
    color: #666;
}

/* Preview Section */
.preview {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('images/fondo.jpeg');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
}

.preview-slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0.5rem 2rem;
    scrollbar-width: none; /* Firefox */
}

.preview-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.slide {
    flex: 0 0 calc(33.33% - 1.33rem);
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 1.5rem;
}

.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.slide p {
    padding: 0 1rem;
    color: #555;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: white;
}

.contact-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #666;
    font-size: 1.1rem;
}

.contact form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.contact input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    outline: none;
}

.contact button {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

.success-message, .error-message {
    text-align: center;
    font-size: 1.1rem;
    padding: 15px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.success-message {
    background-color: #DFF0D8;
    color: #3C763D;
}

.error-message {
    background-color: #F2DEDE;
    color: #A94442;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    display: block;
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links img {
    width: 100%;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        padding: 3rem 0;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero-image img {
        max-width: 90%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        background: #6a11cb;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .hamburger {
        display: flex;
    }

    .slide {
        flex: 0 0 calc(100% - 1rem);
    }

    .contact form {
        flex-direction: column;
        align-items: center;
    }

    .contact input {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }
}
