:root {
    --primary-blue: #003366;
    /* Azul Oscuro Institucional */
    --secondary-blue: #005f8f;
    /* Azul Botones */
    --header-bg: #e0f7fa;
    /* Fondo Header */
    --text-color: #333;
    --white: #ffffff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: #f0f0f0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: var(--header-bg);
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid #009688;
    /* Linea verde teal inferor del header */
    height: 80px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.logo-placeholder {
    height: 50px;
    font-weight: bold;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    flex-grow: 1;
}

/* Main Content / Hero */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding: 20px;
}

/* Base Layout for the distinct 2-column look in some images */
/* But mostly it's a centered card or a split view. 
   Image 1 has "NUESTROS SERVICIOS" banner left, and card center overlay.
*/

.content-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    /* Fixed height for the banner effect */
    background-image: url('../assets/arbitraje.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.section-title-badge {
    position: absolute;
    top: 40px;
    left: 40px;
    background-color: var(--secondary-blue);
    color: white;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.btn-manual {
    position: absolute;
    top: 100px;
    left: 40px;
    background-color: #ffffff;
    color: var(--secondary-blue);
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: background 0.3s;
}

.btn-manual:hover {
    background-color: var(--secondary-blue);
    color: #ffffff;
}

.card {
    background: var(--white);
    padding: 40px;
    width: 350px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
}

.card h2 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 15px;
}

.card p,
.card label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.4;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-blue);
    color: white;
    padding: 10px 30px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn:hover {
    background-color: #004c75;
}

.btn-secondary {
    background-color: #004c75;
    /* Similar variant */
}

/* Forms */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background-color: #f9f9f9;
}

.btn-group {
    display: flex;
    gap: 10px;
}

.text-left {
    text-align: left;
}

/* Footer-ish logos if needed inside header */
.pucp-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

/* Helper class to replace inline styles for the hero text description */
.hero-text {
    position: absolute;
    left: 40px;
    top: 100px;
    color: white;
    width: 400px;
    z-index: 2;
    text-shadow: 1px 1px 3px black;
}

.btn-login {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    transition: all .25s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
    transform: translateY(-1px);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        height: auto;
        flex-direction: column;
        padding: 15px 20px;
        gap: 10px;
    }

    .header-title {
        font-size: 1.1rem;
        order: 2;
        margin: 10px 0;
    }

    .header-left {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .header-right {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .main-container {
        padding: 10px;
        align-items: flex-start; /* Allow scrolling content */
        height: auto;
    }

    .content-wrapper {
        height: auto;
        min-height: 500px; /* Keep some height but allow expansion */
        flex-direction: column;
        justify-content: flex-start;
        padding-bottom: 40px;
    }

    .section-title-badge {
        position: relative;
        top: auto;
        left: auto;
        margin-top: 20px;
        margin-bottom: 20px;
        text-align: center;
        align-self: center;
        font-size: 1rem;
        width: 90%;
        text-align: center;
    }

    .hero-text {
        position: relative;
        top: auto;
        left: auto;
        width: 90%;
        margin: 0 auto 30px auto;
        text-align: center;
    }

    .card {
        margin: 0 auto !important; /* Override inline styles */
        width: 90%;
        padding: 25px 20px;
        position: relative;
        left: auto;
        right: auto;
    }
    
    .logo-placeholder {
        height: 40px;
    }
}