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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f5f5f5;
    color: #222;
    line-height: 1.6;
}


h3 {
    margin-bottom: 1rem;
    color: #002147;
}

/* Header y hero section */
header {
    position: relative;
    background: url('Falman_Aduanas_Cabecera.webp?auto=format&fit=crop&w=1950&q=80') center/cover fixed no-repeat;
    height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    overflow: hidden;
}

header::before {
    content: "";
    background-color: rgba(0, 22, 45, 0.8);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

header .content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    text-align: center;
    padding: 20px;
}

/* Estilos del logo */
.logo {
    width: 25%;
    height: auto;
}

/* Estilo para tablets y celulares */
@media screen and (max-width: 768px) {
    .logo {
        width: 20%;
        height: auto;
    }
}

header h1 {
    font-size: 3em;
    margin-bottom: 15px;
}

header p {
    font-size: 1.5em;
}

/* Secciones principales */
section {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
    width: 100%;
}

section h2 {
    text-align: center;
    margin: 2rem 0 2.5rem;
    color: #002147;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.highlight {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.service {
    flex: 1;
    min-width: 280px;
    background: #eaf3ff;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.cta {
    background-color: #002147;
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    margin-top: 50px;
}

.cta h2 {
    color: white;
}

.cta a {
    display: inline-block;
    background: white;
    color: #002147;
    margin-top: 15px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta a:hover {
    background: #eaf3ff;
    transform: scale(1.05);
}

/* Formulario */
form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
    border-color: #002147;
    outline: none;
}

form button {
    background-color: #002147;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #003670;
}

/* Grid y cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1000px;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.card h3 {
    margin: 1rem 0;
}

.card p {
    margin: 0;
}

.card:hover {
    transform: translateY(-5px);
}

.icono {
    font-size: 2rem;
    color: #002147;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #002147;
    color: white;
    padding: 2rem 5%;
    text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
    section {
        padding: 20px 0;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
    
    .card {
        margin: 0 auto 1.5rem;
        width: 100%;
        max-width: 400px;
        min-height: 180px;
        box-sizing: border-box;
    }

    .service {
        min-width: 100%;
    }

    .services {
        flex-direction: column;
    }
}

/* Utilidades */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

/* Redes Sociales */
.sociales {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.sociales a {
    color: white;
    font-size: 2.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.sociales a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}
