:root {
    --primary: #002e5d; 
    --secondary: #c5a059; 
    --accent: #00a8cc;
    --dark: #1a1a1a;
    --light: #f4f7f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

/* Navbar y Logo */
.navbar {
    padding: 15px 5%;
    background: white;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { background: var(--primary); color: white; padding: 5px 15px; border-radius: 5px; font-weight: bold; font-size: 24px; }
.logo-text { font-size: 24px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; }
.logo-text span { color: var(--secondary); }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px; 
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem); 
    margin-bottom: 10px;
    color: var(--primary);
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.main-options {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.option-card {
    position: relative;
    width: 400px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.option-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.option-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,46,93,0.9), transparent); z-index: 1; }
.option-card h2 { position: absolute; bottom: 30px; left: 20px; right: 20px; color: white; z-index: 2; font-size: 1.8rem; }
.option-card:hover { transform: translateY(-15px) scale(1.02); box-shadow: 0 30px 50px rgba(0,46,93,0.3); }
.option-card:hover img { transform: scale(1.1); }

/* Sección de Detalles Dinámica */
.details-section {
    display: none;
    padding: 120px 5% 60px;
    min-height: 100vh;
}

.section-title { font-size: 2.5rem; color: var(--primary); margin-bottom: 50px; text-align: center; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Tarjetas de Trámites */
.procedure-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.procedure-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.procedure-card:hover .card-image-wrapper img {
    transform: scale(1.15); 
}

.procedure-card h3 {
    color: var(--primary);
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
}

/* Beneficios */
.features {
    padding: 100px 5%;
    background: white;
    text-align: center;
}

.section-subtitle {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 50px;
    font-family: 'Playfair Display', serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    padding: 40px;
    border-radius: 20px;
    background: var(--light);
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}

.feature-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary);
}

.f-icon { font-size: 3rem; margin-bottom: 20px; }
.feature-item h3 { margin-bottom: 15px; }

/* Pasos */
.how-it-works {
    padding: 100px 5%;
    background: var(--primary);
    color: white;
    text-align: center;
}

.how-it-works .section-subtitle { color: white; }

.steps-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    position: relative;
    padding: 20px;
}

.step-num {
    width: 70px;
    height: 70px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.step h3 { margin-bottom: 10px; font-size: 1.3rem; }

/* Ventanas Modales (General) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active { display: flex; opacity: 1; }

.modal-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    border-top: 8px solid var(--secondary);
}

.modal-overlay.active .modal-box { transform: scale(1); }

.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    font-size: 2rem; color: #888;
    cursor: pointer; transition: 0.2s;
}

.close-btn:hover { color: var(--primary); }
.modal-box h3 { color: var(--primary); font-size: 1.8rem; margin-bottom: 15px; }
.modal-box p { font-size: 1rem; line-height: 1.6; color: #555; margin-bottom: 30px; }

.modal-buttons { display: flex; flex-direction: column; gap: 15px; }

.btn-ws, .btn-mail {
    padding: 15px; border: none; border-radius: 10px; cursor: pointer;
    font-weight: bold; text-decoration: none; text-align: center;
    font-size: 1rem; transition: 0.3s; display: flex; align-items: center;
    justify-content: center; gap: 10px; font-family: 'Montserrat', sans-serif;
}

.btn-ws { background: #25D366; color: white; }
.btn-mail { background: var(--primary); color: white; }
.btn-ws:hover, .btn-mail:hover { opacity: 0.9; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.btn-back {
    background: white; border: 2px solid var(--primary); color: var(--primary);
    padding: 10px 25px; border-radius: 25px; cursor: pointer; margin-bottom: 30px;
    font-weight: bold; transition: 0.3s; font-family: 'Montserrat', sans-serif;
}
.btn-back:hover { background: var(--primary); color: white; }

/* Estilos del Formulario de Correo */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary);
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input[readonly] {
    background-color: #f4f7f6;
    color: var(--primary);
    font-weight: bold;
    cursor: not-allowed;
    border-color: transparent;
}

.btn-submit {
    background: var(--secondary);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #a88544; /* Dorado más oscuro */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Botón flotante de WhatsApp General */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1500;
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1) translateY(-5px); }

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 5% 20px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-info h3 { color: var(--secondary); font-size: 2rem; margin-bottom: 15px; }
.footer-info p { color: #ccc; max-width: 300px; margin: 0 auto; line-height: 1.6; }

.footer-contact h4 { color: var(--secondary); font-size: 1.2rem; margin-bottom: 15px; }
.footer-contact p { color: #ccc; margin-bottom: 5px; }
.footer-contact strong { color: white; font-size: 1.1rem; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

/* -------------------------------------------
   NUEVOS ESTILOS PARA LAS MODIFICACIONES 
   ------------------------------------------- */
.category-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-top: -30px;
    margin-bottom: 40px;
    font-weight: 500;
}

.features-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.sub-category-title {
    font-size: 2rem;
    color: var(--secondary);
    margin: 40px 0 20px;
    text-align: left;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
    font-family: 'Playfair Display', serif;
}
@media (max-width: 768px) {
    .main-options {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
    }

    .option-card {
        /* Formula: Toma el 100% de la pantalla del celular y réstale 60 píxeles obligatorios de aire */
        width: calc(100% - 60px) !important; 
        max-width: 340px !important; 
        height: 250px !important; 
        margin: 0 auto !important;
    }
}