/* Base styles */
:root {
    --primary-color: #2a9d8f;
    --secondary-color: #e76f51;
    --dark-color: #264653;
    --light-color: #f8f9fa;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

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

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.menu {
    display: flex;
}

.menu li {
    margin-left: 20px;
}

.menu a {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(42, 157, 143, 0.7), rgba(0, 0, 0, 0)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #238176;
    transform: translateY(-3px);
}

.cta-button.secondary {
    background-color: var(--secondary-color);
}

.cta-button.secondary:hover {
    background-color: #d65f42;
}

/* Section Styling */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
    font-size: 2rem;
}

section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.content p {
    margin-bottom: 20px;
}

/* Por Qué Es Gratis Section */
.por-que-gratis {
    background-color: white;
}

/* Qué Hacemos Section */
.que-hacemos {
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.service-item {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.highlight {
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 40px;
    color: var(--dark-color);
}

/* El Servicio Section */
.servicio {
    background-color: white;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* A Quién Va Dirigido Section */
.quien {
    background-color: #f9f9f9;
}

.target-audience {
    display: flex;
    justify-content: center;
    margin: 40px 0 30px;
}

.target {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 400px;
}

.target i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.target-image {
    text-align: center;
    margin: 30px 0;
}

.target-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    object-fit: cover;
}

/* Colabora Section */
.colabora {
    background-color: white;
}

/* Contacto Section */
.contacto {
    background-color: #f9f9f9;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

button[type="submit"] {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

#form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

#form-message .success {
    color: var(--success-color);
    background-color: rgba(46, 204, 113, 0.1);
    padding: 10px;
    border-radius: 5px;
}

#form-message .error {
    color: var(--danger-color);
    background-color: rgba(231, 76, 60, 0.1);
    padding: 10px;
    border-radius: 5px;
}

#form-message .sending {
    color: var(--primary-color);
    background-color: rgba(42, 157, 143, 0.1);
    padding: 10px;
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    text-align: center;
}

footer .logo {
    color: white;
    margin-bottom: 10px;
}

.contact-info {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-item a {
    color: white;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.copyright {
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .menu.active {
        left: 0;
    }

    .menu li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 10px 20px;
    }

    section h2 {
        font-size: 1.5rem;
    }
}