/* --- Reset básico --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(180deg, #f5f6fa 0%, #e9efff 100%);
    color: #192f6a;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Menú sticky --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #192f6a, #3b5998);
    padding: 15px 50px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

nav:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

nav .logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff; /* Logo blanco elegante */
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.3s ease;
}

nav .logo:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ffdd57;
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* --- Header principal con parallax --- */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 80vh;
    background: url('https://images.unsplash.com/photo-1526378720007-19e6e39bfae6?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
    color: #fff;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(25,47,106,0.6); /* filtro oscuro */
}

header .header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    animation: fadeIn 1.2s ease forwards;
}

header h1 {
    font-size: 56px;
}

header p {
    font-size: 22px;
}

header .btn {
    background: linear-gradient(135deg, #3b5998, #4c669f);
    color: #fff;
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

header .btn:hover {
    opacity: 0.95;
    transform: translateY(-4px) scale(1.05);
}

/* --- Secciones y tarjetas --- */
section {
    padding: 100px 20px;
    text-align: center;
}

section h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

/* --- Servicios --- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.servicio {
    background: linear-gradient(145deg, #ffffff, #f0f4ff);
    padding: 30px 20px;
    border-radius: 25px;
    border: 2px solid rgba(76,102,159,0.5);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.servicio:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    transform: translateY(-7px) scale(1.02);
}

/* --- Nosotros --- */
.nosotros {
    background: linear-gradient(145deg, #ffffff, #f0f4ff);
    padding: 40px 30px;
    border-radius: 25px;
    border: 2px solid rgba(76,102,159,0.5);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    max-width: 900px;
    margin: 0 auto 60px auto;
    transition: all 0.4s ease;
}

.nosotros:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    transform: translateY(-5px);
}

.nosotros h2 {
    font-size: 32px;
    color: #3b5998;
    margin-bottom: 20px;
}

.nosotros p {
    font-size: 18px;
    line-height: 1.6;
}

/* --- Contacto --- */
#contacto {
    padding-top: 120px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
    padding: 45px;
    background: linear-gradient(145deg, #ffffff, #f0f4ff);
    border: 2px solid rgba(76,102,159,0.5);
    border-radius: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

form:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    transform: translateY(-5px);
}

input, textarea {
    padding: 18px 15px;
    border: 2px solid #ccc;
    border-radius: 20px;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #4c669f;
    outline: none;
    box-shadow: 0 0 15px rgba(76,102,159,0.4);
    transform: scale(1.02);
}

button {
    background: linear-gradient(135deg, #3b5998, #4c669f);
    color: #fff;
    padding: 18px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 18px 35px rgba(0,0,0,0.35);
}

/* --- Footer --- */
footer {
    background: linear-gradient(135deg, #192f6a, #3b5998);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.15);
}

/* --- Animaciones --- */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    header h1 {
        font-size: 36px;
    }
    section h2 {
        font-size: 28px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


#form-message {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

#form-message.success {
    color: #2ecc71;
}

#form-message.error {
    color: #e74c3c;
}
