/* =========================================================
   CONTACTANOS
   COLEGIO DE CONTADORES PÚBLICOS DE TUMBES
   ========================================================= */


/* =========================================================
   SECCIÓN PRINCIPAL
   ========================================================= */

.ccpt-contacto {

    position: relative;

    padding: 90px 0 100px;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.88),
            rgba(255, 255, 255, 0.88)
        ),
        url("../images/tumbes.jpg");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;

    overflow: hidden;
}


/* =========================================================
   CAPA DE SUAVIZADO
   ========================================================= */

.ccpt-contacto::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        rgba(255, 255, 255, 0.25);

    backdrop-filter: blur(2px);

    -webkit-backdrop-filter: blur(2px);

    pointer-events: none;

    z-index: 0;
}


/* =========================================================
   DETALLES DECORATIVOS
   ========================================================= */

.ccpt-contacto::after {

    content: "";

    position: absolute;

    width: 450px;

    height: 450px;

    right: -250px;

    bottom: -250px;

    border-radius: 50%;

    background:
        rgba(155, 45, 32, 0.06);

    pointer-events: none;

    z-index: 0;
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.ccpt-contacto .container {

    position: relative;

    z-index: 2;
}


/* =========================================================
   GRID PRINCIPAL
   ========================================================= */

.ccpt-contacto-grid {

    display: grid;

    grid-template-columns:
        0.85fr 1.15fr;

    gap: 55px;

    align-items: center;
}


/* =========================================================
   COLUMNA INFORMACIÓN
   ========================================================= */

.ccpt-contacto-info {

    padding: 10px 0;
}


/* =========================================================
   ETIQUETA
   ========================================================= */

.ccpt-contacto-etiqueta {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 12px;

    color: #9B2D20;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.ccpt-contacto-etiqueta::before {

    content: "";

    width: 38px;

    height: 2px;

    background: #9B2D20;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.ccpt-contacto-info h2 {

    margin: 0;

    color: #111111;

    font-size: 56px;

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -1px;
}


.ccpt-contacto-info h2 span {

    color: #9B2D20;
}


/* =========================================================
   LÍNEA DECORATIVA
   ========================================================= */

.ccpt-contacto-linea {

    width: 95px;

    height: 4px;

    margin: 20px 0 25px;

    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            #9B2D20 0%,
            #9B2D20 70%,
            #C99A2E 70%,
            #C99A2E 100%
        );
}


/* =========================================================
   SUBTÍTULO
   ========================================================= */

.ccpt-contacto-info h3 {

    margin: 0 0 10px;

    color: #9B2D20;

    font-size: 25px;

    font-weight: 800;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.ccpt-contacto-descripcion {

    max-width: 500px;

    margin: 0 0 28px;

    color: #444444;

    font-size: 16px;

    line-height: 1.7;

    font-weight: 500;
}


/* =========================================================
   INFORMACIÓN DE CONTACTO
   ========================================================= */

.ccpt-contacto-item {

    display: flex;

    align-items: center;

    gap: 15px;

    width: 100%;

    max-width: 510px;

    margin-bottom: 12px;

    padding: 12px 16px;

    background:
        rgba(255, 255, 255, 0.90);

    border: 1px solid
        rgba(155, 45, 32, 0.10);

    border-radius: 14px;

    box-shadow:
        0 5px 18px
        rgba(60, 20, 15, 0.06);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}


.ccpt-contacto-item:hover {

    transform:
        translateX(7px);

    border-color:
        rgba(155, 45, 32, 0.30);

    box-shadow:
        0 9px 25px
        rgba(155, 45, 32, 0.12);
}


/* =========================================================
   ICONOS DE CONTACTO
   ========================================================= */

.ccpt-contacto-icono {

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #9B2D20,
            #7D2118
        );

    color: #ffffff;

    font-size: 19px;

    box-shadow:
        0 5px 12px
        rgba(155, 45, 32, 0.20);
}


/* =========================================================
   TEXTO DE CONTACTO
   ========================================================= */

.ccpt-contacto-item strong {

    display: block;

    margin-bottom: 2px;

    color: #9B2D20;

    font-size: 14px;

    font-weight: 800;
}


.ccpt-contacto-item span {

    display: block;

    color: #333333;

    font-size: 14px;

    line-height: 1.4;

    font-weight: 500;
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.ccpt-contacto-formulario {

    position: relative;

    padding: 40px;

    background:
        rgba(255, 255, 255, 0.97);

    border-radius: 25px;

    border:
        1px solid
        rgba(255, 255, 255, 0.90);

    box-shadow:
        0 20px 60px
        rgba(45, 20, 15, 0.18);

    overflow: hidden;

    animation:
        contactoEntrada .7s ease-out;
}


/* =========================================================
   FRANJA SUPERIOR
   ========================================================= */

.ccpt-contacto-formulario::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 6px;

    background:
        linear-gradient(
            90deg,
            #7D2118,
            #9B2D20,
            #C99A2E
        );
}


/* =========================================================
   CABECERA DEL FORMULARIO
   ========================================================= */

.ccpt-formulario-header {

    text-align: center;

    margin-bottom: 30px;
}


.ccpt-formulario-titulo {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-bottom: 12px;
}


/* =========================================================
   ICONO DEL FORMULARIO
   ========================================================= */

.ccpt-formulario-icono {

    width: 52px;

    height: 52px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #9B2D20,
            #7D2118
        );

    color: #ffffff;

    font-size: 22px;

    box-shadow:
        0 6px 16px
        rgba(155, 45, 32, 0.20);
}


.ccpt-formulario-titulo h3 {

    margin: 0;

    color: #111111;

    font-size: 27px;

    font-weight: 800;
}


/* =========================================================
   DESCRIPCIÓN DEL FORMULARIO
   ========================================================= */

.ccpt-formulario-header p {

    max-width: 580px;

    margin: 0 auto;

    color: #666666;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   FILAS DEL FORMULARIO
   ========================================================= */

.ccpt-form-row {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;

    margin-bottom: 20px;
}


/* =========================================================
   GRUPOS
   ========================================================= */

.ccpt-form-group {

    width: 100%;
}


.ccpt-form-group label {

    display: block;

    margin-bottom: 8px;

    color: #222222;

    font-size: 14px;

    font-weight: 700;
}


.ccpt-form-group label span {

    color: #9B2D20;

    font-weight: 800;
}


/* =========================================================
   INPUTS
   ========================================================= */

.ccpt-input {

    position: relative;

    width: 100%;
}


.ccpt-input input,
.ccpt-input select {

    width: 100%;

    height: 53px;

    padding:
        0 48px 0 16px;

    border:
        1px solid #DDD6D4;

    border-radius: 10px;

    background: #ffffff;

    color: #333333;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color .3s ease,
        box-shadow .3s ease;
}


.ccpt-input input::placeholder {

    color: #A5A5A5;
}


.ccpt-input input:focus,
.ccpt-input select:focus {

    border-color: #9B2D20;

    box-shadow:
        0 0 0 3px
        rgba(155, 45, 32, 0.08);
}


/* =========================================================
   ICONOS INPUT
   ========================================================= */

.ccpt-input i {

    position: absolute;

    right: 17px;

    top: 50%;

    transform:
        translateY(-50%);

    color: #999999;

    font-size: 16px;

    pointer-events: none;

    transition:
        color .3s ease;
}


.ccpt-input input:focus + i {

    color: #9B2D20;
}


/* =========================================================
   SELECT
   ========================================================= */

.ccpt-input select {

    appearance: none;

    -webkit-appearance: none;

    cursor: pointer;
}


.ccpt-input select:valid {

    color: #333333;
}


/* =========================================================
   MENSAJE
   ========================================================= */

.ccpt-form-mensaje {

    margin-top: 2px;

    margin-bottom: 20px;
}


.ccpt-textarea {

    position: relative;
}


.ccpt-textarea textarea {

    width: 100%;

    min-height: 145px;

    resize: vertical;

    padding:
        15px 45px 15px 16px;

    border:
        1px solid #DDD6D4;

    border-radius: 10px;

    background: #ffffff;

    color: #333333;

    font-family: inherit;

    font-size: 14px;

    line-height: 1.5;

    outline: none;

    transition:
        border-color .3s ease,
        box-shadow .3s ease;
}


.ccpt-textarea textarea::placeholder {

    color: #A5A5A5;
}


.ccpt-textarea textarea:focus {

    border-color: #9B2D20;

    box-shadow:
        0 0 0 3px
        rgba(155, 45, 32, 0.08);
}


.ccpt-textarea i {

    position: absolute;

    right: 17px;

    bottom: 17px;

    color: #999999;

    font-size: 16px;

    pointer-events: none;
}


/* =========================================================
   AVISO DE PRIVACIDAD
   ========================================================= */

.ccpt-form-aviso {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 22px;

    padding: 13px 16px;

    background: #FBF7ED;

    border:
        1px solid #F0E2BE;

    border-radius: 11px;
}


.ccpt-form-aviso-icono {

    width: 42px;

    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #C99A2E;

    color: #ffffff;

    font-size: 17px;
}


.ccpt-form-aviso p {

    margin: 0;

    color: #555555;

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   BOTÓN ENVIAR
   ========================================================= */

.ccpt-btn-enviar {

    width: 100%;

    height: 56px;

    border: none;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            #9B2D20,
            #7D2118
        );

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    font-family: inherit;

    font-size: 15px;

    font-weight: 800;

    letter-spacing: .4px;

    cursor: pointer;

    box-shadow:
        0 8px 22px
        rgba(155, 45, 32, 0.22);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}


.ccpt-btn-enviar:hover {

    transform:
        translateY(-3px);

    background:
        linear-gradient(
            135deg,
            #7D2118,
            #9B2D20
        );

    box-shadow:
        0 12px 30px
        rgba(155, 45, 32, 0.30);
}


.ccpt-btn-enviar:active {

    transform:
        translateY(0);
}


/* =========================================================
   CAMPOS OBLIGATORIOS
   ========================================================= */

.ccpt-obligatorios {

    margin-top: 12px;

    text-align: center;

    color: #9B2D20;

    font-size: 12px;

    font-weight: 600;
}


/* =========================================================
   ANIMACIÓN
   ========================================================= */

@keyframes contactoEntrada {

    from {

        opacity: 0;

        transform:
            translateY(25px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .ccpt-contacto {

        padding:
            70px 20px 80px;

        background-attachment:
            scroll;
    }


    .ccpt-contacto-grid {

        grid-template-columns: 1fr;

        gap: 45px;
    }


    .ccpt-contacto-info {

        text-align: center;
    }


    .ccpt-contacto-etiqueta {

        justify-content: center;
    }


    .ccpt-contacto-info h2 {

        font-size: 48px;
    }


    .ccpt-contacto-linea {

        margin-left: auto;

        margin-right: auto;
    }


    .ccpt-contacto-descripcion {

        margin-left: auto;

        margin-right: auto;
    }


    .ccpt-contacto-item {

        margin-left: auto;

        margin-right: auto;

        text-align: left;
    }

}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 600px) {

    .ccpt-contacto {

        padding:
            55px 15px 65px;

        background-attachment:
            scroll;

        background-position:
            center center;
    }


    .ccpt-contacto-info h2 {

        font-size: 39px;

        letter-spacing: -.5px;
    }


    .ccpt-contacto-info h3 {

        font-size: 21px;
    }


    .ccpt-contacto-descripcion {

        font-size: 15px;
    }


    .ccpt-contacto-item {

        padding:
            10px 12px;

        gap: 11px;

        border-radius: 12px;
    }


    .ccpt-contacto-icono {

        width: 43px;

        height: 43px;

        font-size: 17px;
    }


    .ccpt-contacto-item strong {

        font-size: 13px;
    }


    .ccpt-contacto-item span {

        font-size: 12.5px;

        word-break: break-word;
    }


    /* FORMULARIO */

    .ccpt-contacto-formulario {

        padding:
            30px 18px;

        border-radius: 18px;
    }


    .ccpt-formulario-titulo {

        flex-direction: column;
    }


    .ccpt-formulario-icono {

        width: 48px;

        height: 48px;

        font-size: 20px;
    }


    .ccpt-formulario-titulo h3 {

        font-size: 23px;

        text-align: center;
    }


    .ccpt-formulario-header p {

        font-size: 13px;
    }


    .ccpt-form-row {

        grid-template-columns: 1fr;

        gap: 16px;

        margin-bottom: 16px;
    }


    .ccpt-input input,
    .ccpt-input select {

        height: 51px;
    }


    .ccpt-textarea textarea {

        min-height: 130px;
    }


    .ccpt-form-aviso {

        align-items: flex-start;

        padding: 12px;
    }


    .ccpt-form-aviso-icono {

        width: 37px;

        height: 37px;

        font-size: 15px;
    }


    .ccpt-form-aviso p {

        font-size: 12px;
    }


    .ccpt-btn-enviar {

        height: 53px;

        font-size: 14px;
    }

}