/* Estilos generales */
:root {
    --primary: #2b2a2f;
    /* dark charcoal */
    --secondary: #ff6b35;
    /* warm orange */
    --accent: #ffd166;
    /* warm yellow */
    --accent-2: #5e4b56;
    /* muted plum */
    --light: #fff7ef;
    /* warm background */
    --dark: #1a1518;
    /* deep dark */
    --success: #28c76f;
    --error: #ff6b6b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 18px rgba(11, 18, 32, 0.12);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(11, 18, 32, 0.18);
}

.btn-accent {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.btn-accent:hover {
    filter: brightness(1.02);
}

section {
    padding: 80px 0;
}

h1,
h2,
h3,
h4 {
    margin-bottom: 20px;
    color: var(--primary);
}

p {
    margin-bottom: 15px;
}

/* Mensajes de éxito/error */
.mensaje-exito {
    background: var(--success);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.mensaje-error {
    background: var(--error);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary);
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.85), rgba(255, 209, 102, 0.75)), url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 160px 0 90px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
}

.hero {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.85), rgba(255, 107, 107, 0.75)), url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 160px 0 90px;
}

background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 18, 32, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 22px 48px rgba(11, 18, 32, 0.12);
    border: 1px solid rgba(0, 180, 216, 0.12);
}

.service-icon {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
}

/* Por qué elegirnos */
.why-us {
    background: white;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
}

.feature i {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* Testimonios */
.testimonials {
    background: var(--light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* CTA */
.cta {
    background: var(--primary);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Formulario de contacto */
.contact {
    background: white;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--secondary);
    font-size: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--primary) 0%, var(--dark) 60%);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    nav ul li a {
        display: block;
        padding: 15px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .contact-container {
        gap: 30px;
    }

    /* Footer responsive: stack columns on small screens */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column ul {
        display: inline-block;
        text-align: left;
    }
}

/* ====================================================================== */
/* MENSAJES DE CONFIRMACIÓN Y ERROR */
/* ====================================================================== */

.mensaje-exito,
.mensaje-error {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 5px solid;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease-out;
}

.mensaje-exito {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.mensaje-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.mensaje-exito i,
.mensaje-error i {
    font-size: 24px;
    margin-right: 10px;
    vertical-align: top;
}

.mensaje-exito h3,
.mensaje-error h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.mensaje-exito p,
.mensaje-error p {
    margin: 5px 0;
    line-height: 1.5;
}

@keyframes slideIn {
    :root {
        --primary: #0b1220;
        /* deep navy */
        --secondary: #00b4d8;
        /* vivid cyan */
        --accent: #ff6b6b;
        /* coral red */
        --accent-2: #ffd166;
        /* warm yellow */
        --light: #f7fbff;
        --dark: #071023;
        --success: #28c76f;
        --error: #ff6b6b;
    }