main {
    padding: 1rem;
    margin-top: 40px; /* Para evitar que el header cubra el contenido */
}

section {
    margin-bottom: 1rem;
    scroll-margin-top: 80px;
}
/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Estilos del Header */
.header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
}

/* Menú Desktop */
.nav-desktop ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-desktop a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-desktop a:hover {
    color: #1E90FF; /* Azul Caribeño */
}

.btn-contacto, button
{
    background: #FF4444; /* Rojo */
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
}
/* Estilos del Hero */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('/imagenes/Hero3.png');

    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 20px; /* Compensa el header fijo */
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
    animation: fadeIn 1.5s ease-in;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    background: #FF4444;
    color: white;
    padding: 1rem 2.5rem;
    margin-top: 100px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s, background 0.3s;
    display: inline-block;
}

.btn-hero:hover {
    background: #FF3333;
    transform: scale(1.05);
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .btn-hero {
        padding: 0.8rem 2rem;
    }
}

/* Menú Mobile */
.menu-mobile {
    display: none;
}

.hamburguesa {
    font-size: 1.5rem;
    color: #FF4444;
    cursor: pointer;
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#check:checked ~ .nav-mobile {
    display: block;
}

.nav-mobile ul {
    list-style: none;
    padding: 1rem;
}

.nav-mobile li {
    margin: 1rem 0;
    text-align: center;
}

/*     RESPONSIVE    */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
        
    }
    .check_hamburguesa{
        display: none;
    }
    .menu-mobile {
        display: block;
        width: 25px;
        margin-right: 20px;
        
    }

    .header {
        padding: 1rem;
    }
    .servicios-grid {
        grid-template-columns: 1fr;
    }

       
    .servicio-card img {
        height: 200px;
    }
    .form-container-blue, .form-container-red {
        padding: 1rem;
        .form-grid-2col {
            grid-template-columns: 1fr !important;  /* Fuerza 1 columna */
            gap: 0.5rem;
        }
    
    }
        
}

@media (max-width: 480px) {
    .servicios-section {
        padding: 40px 15px;
    }
    
    .servicio-info {
        padding: 7px;
    }
    .form-container-blue, .form-container-red, .contact-container {
        padding: 1rem;
        .form-grid-2col {
            grid-template-columns: 1fr !important;  /* Fuerza 1 columna */
            gap: 0.5rem;
            .boton-llamada{
                margin-left: 15px;
            }
        }
    }
}
/*  ESTILOS SERVICIOS   */
.servicios-section {
    padding: 60px 5px;
    background-color: #ffffff;
}

.servicios-container {
    max-width: 1200px;
    margin: 0 auto;
}
.servicios-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.servicio-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: justify;
    transition: transform 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
}

.servicio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid #002D62;
}

.servicio-info {
    padding: 10px;
    background-color: #f9f9f9;
}

.servicio-info h3 {
    color: #002D62;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.servicio-info p {
    color: #555;
    line-height: 1.6;
}
/*  ESTILOS DE CONTACTO    */
.contact-section {
    padding: 40px 20px;
    background-color: #f5f5f5;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
       
}
/*  CSS LLamada   */
.boton-llamada {
    display: inline-flex;
    align-items: center;
    background-color: #002D62;
    color: white;
    padding: 8px 15px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.boton-llamada:hover {
    background-color: #CE1126;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.icono-llamada {
    font-size: 25px;
    
    margin-right: 10px;
}

.numero {
    margin-left: 8px;
    font-size: 15px;
}

h2 {
    color: #002D62;
    text-align: center;
    margin-bottom: 30px;
}

.whatsapp-btn-container {
    text-align: center;
    margin-bottom: 30px;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

.contact-form {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    
}
.contact-section {
    .contact-form{
        label {
            display: block;
            margin-bottom: 8px;
            color: #002D62;
            font-weight: 500;
        }
    }
    
}

.submit-btn {
    background-color: #002D62;
    align-content: center;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #001a3d;
}

.fa-whatsapp {
    font-size: 20px;
}

/* Contenedores principales */
.form-login {
    max-width: 400px;
    margin: 50px auto;
    margin-top: 80px;    
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);    
    .form-row {
        label {
            color: #ffffff;
            font-weight: 500;
        }
    }
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1px;
        label {
        display: block;
        margin-bottom: 4px;
        color: #002D62;
        font-weight: 500;
    }
    input {
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    padding-bottom: 4px;
}

.form-section {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-section-blue {
    background: #002D62;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
        
}

.form-section-red {
    border: 4px solid #FF4444
}

.form-container-blue {
    background: #002D62;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
        
}

.form-container-red {
    border: 4px solid #FF4444;
    /* border: 4px solid #CE1126; */
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
}
/* Estilos del formulario */
.form-section {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;    
}
/* Grid de 2 columnas (Remitente/Destinatario) */
.form-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
/* Inputs y selects */
input, select {
    width: 100%;    
    margin-bottom: 0.5rem;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background: #FFFFFF;
    font-size: 18px;         /* Texto más grande */
    box-sizing: border-box;  /* Padding incluido en el ancho */
    height: 40px;            /* Altura consistente */
    font-family: inherit; 
    
}

/* Labels generales */
.form-group label {
    display: block;
    color: #FFFFFF; /* Blanco para contenedor azul */
    margin-bottom: 0.2rem;
    font-weight: 500;
    label[for^="Val_declarado[]"] {
        font-size: 4px; /* Tamaño de fuente reducido */
        color:#FF3333;  
      }
}

.form-container-red label {
    color: #333333; /* Color oscuro para contenedor rojo */
}
.form-group {
    border: 1px solid #FF4444;
    padding: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}
#btn-limpia{
    vertical-align: top;
}
textarea {
    width: 100%;  /* Ocupa todo el ancho disponible */
    max-width: 100%; /* No permite que se salga del contenedor */
    min-width: 150px; /* Un tamaño mínimo para que no se haga demasiado pequeño */
    font-size: 16px;
    height: auto; /* Permite que la altura se ajuste */
    min-height: 50px; /* Altura mínima */
    resize: vertical; /* Permite redimensionar solo en altura */
    word-wrap: break-word; /* Ajusta el texto automáticamente */
    overflow-wrap: break-word;
}

#firmaCanvas {
    border: 1px solid #333;
    background: white;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}
