/* --- ESTILOS FORMULARIO DE CONTACTO (SERVICIOS) --- */
.contenedor-contacto-form {
    background-color: transparent;
    /* Hereda fondo */
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

.contacto-wrapper {
    display: flex;
    max-width: 1000px;
    width: 90%;
    gap: 50px;
    align-items: flex-start;
}

/* Formulario (Lado Izquierdo) */
.contacto-form-container {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex: 1;
    /* Ocupa más espacio */
    max-width: 500px;
}

.titulo-formulario {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 11px;
    color: #999;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Inputs y Select estilo línea inferior */
.form-group input,
.form-group select,
.form-group textarea {
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    outline: none;
    background: transparent;
    width: 100%;
    font-family: sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: #0099cc;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-enviar {
    background-color: #0099cc;
    color: #ffffff;
    border: none;
    padding: 15px 28px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 153, 204, 0.3);
    transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.btn-enviar:hover {
    background-color: #007bb5;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 123, 181, 0.35);
}

/* Información (Lado Derecho) */
.contacto-info-container {
    flex: 0 0 350px;
    /* Ancho fijo para info */
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    flex-shrink: 0;
}

.circulo-icono {
    width: 40px;
    height: 40px;
    background-color: #0099cc;
    /* Azul corporativo */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 153, 204, 0.3);
}

.circulo-icono i {
    color: white;
    font-size: 18px;
}

.info-text h4 {
    margin: 0 0 5px;
    font-size: 12px;
    color: #999;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-text p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    position: static;
    /* Reset global p styles */
    text-align: left;
}

/* Fix for card-servicio as anchor and unifying dimensions */
a.card-servicio {
    display: block !important;
    text-decoration: none;
    height: 250px !important;
    /* Enforce fixed height */
    width: 100% !important;
    /* Ensure full width of grid cell */
}

a.card-servicio img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* Crop images to fit the box */
    display: block;
}

/* --- ESTILOS DETALLE SERVICIOS (PÁGINAS INDIVIDUALES) --- */

/* Contenedor principal del detalle */
.main-detalle-servicio {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: sans-serif;
}

/* Intro texto */
.section-intro-servicio {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.section-intro-servicio h2 {
    color: #001f3f;
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.section-intro-servicio p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    position: static;
    text-align: center;
}

/* Secciones de dos columnas */
.section-contenido-bloque {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 50px;
}

.section-contenido-bloque.reverso {
    flex-direction: row-reverse;
}

.col-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.col-text {
    flex: 1;
}

/* Imágenes circulares */
.img-circular {
    width: 100%;
    max-width: 420px;
    height: 420px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 12px solid #ffffff;
    transition: transform 0.5s ease;
}

.img-circular:hover {
    transform: scale(1.03) rotate(2deg);
}

/* Títulos de secciones internas */
.col-text h3 {
    color: #003366;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.col-text p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    position: static;
    text-align: left;
}

/* Listas con checks */
.lista-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-check li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

.lista-check li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #0099cc;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .contenedor-contacto-form {
        padding: 40px 0;
    }

    .contacto-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .contacto-info-container {
        flex: auto;
        width: 100%;
        max-width: 500px;
    }

    .section-contenido-bloque,
    .section-contenido-bloque.reverso {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .img-circular {
        height: 300px;
        width: 300px;
    }

    .col-text p,
    .col-text h3 {
        text-align: center;
    }

    .lista-check li {
        text-align: left;
        /* Listas se ven mejor alineadas a la izquierda aun en móvil */
        display: inline-block;
        /* Para centrar el bloque de lista si se quiere */
    }

    .section-intro-servicio h2 {
        font-size: 28px;
    }
}

/* --- ESTILOS ASESORIA CONTABLE - SERVICIOS GRID --- */
.servicio-details {
    padding: 40px 0;
    background-color: #fff;
}

.details-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
}

.details-header h3 {
    color: #003366;
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.details-header p {
    font-size: 16px;
    color: #555;
    position: static;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-card {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.detail-icon {
    font-size: 36px;
    color: #333;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border: 2px solid #333;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.detail-card:hover .detail-icon {
    border-color: #0099cc;
    color: #0099cc;
}

.detail-card h4 {
    color: #000;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.detail-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    position: static;
}

@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}