/*
Theme Name: Caupolican Ochoa Landing
Author: Estudio Jurídico Caupolicán Ochoa – Departamento de Tecnología
Author URI: https://caupolicanochoa.com
Description: Tema landing page para el Estudio Jurídico Caupolicán Ochoa. Responsive y compatible con la última versión de WordPress.
Version: 1.4
License: GNU General Public License v2 or later
Text Domain: Estudio Jurídico Caupolicán Ochoa
*/
:root {
    --co-dark-blue: #003652;
    --co-mid-blue: #005b7f;
    --co-light-blue: #3fa0e6;
    --co-text: #222222;
    --co-bg: #f5f5f5;
    --co-white: #ffffff;
    --co-font-main: "Helvetica Neue", Arial, sans-serif;
}
*,
*::before,
*::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--co-font-main);
    color: var(--co-text);
    background-color: var(--co-bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
/* HEADER */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(0, 54, 82, 0.97);
    color: var(--co-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-branding { display: flex; align-items: center; min-width: 0; }
.site-branding a { display: inline-flex; align-items: center; }
.site-branding img {
    height: auto;
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

/* Header logo responsive sizes */
@media (max-width: 960px) {
    .site-branding img {
        max-height: 90px;
    }
}
@media (max-width: 600px) {
    .site-branding img {
        max-height: 70px;
    }
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
}
.main-nav a {
    position: relative;
    padding-bottom: 0.15rem;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--co-light-blue);
    transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a:focus::after { width: 100%; }
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.6);
    color: var(--co-white);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
}
/* MAIN LAYOUT */
main { margin-top: 64px; }
.section { padding: 4rem 1.25rem; }
.section-alt { background: var(--co-white); }
.section-dark { background: var(--co-dark-blue); color: var(--co-white); }
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}
/* HERO */
#inicio {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, var(--co-dark-blue), var(--co-mid-blue));
    color: var(--co-white);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: center;
}
.hero-title {
    font-size: 2.5rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}
.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.hero-meta { font-size: 0.9rem; opacity: 0.9; }
.hero-cta {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.hero-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.9;
}
.btn-primary,
.btn-outline {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--co-light-blue);
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.btn-primary { background: var(--co-light-blue); color: var(--co-white); }
.btn-outline { background: transparent; color: var(--co-white); }
/* Hero image */
.hero-image-col {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
}
.hero-image-wrapper {
    position: relative;
    right: 0;
    bottom: -2rem;
}
.hero-image-wrapper img {
    width: auto;
    max-width: 420px;
    height: auto;
}
/* TITULOS GENERALES */
.section-title {
    font-size: 1.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0 0 0.75rem;
}
.section-subtitle {
    max-width: 880px;
    font-size: 0.98rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
}
/* GRIDS GENERALES */
.areas-grid,
.team-grid,
.contact-grid {
    display: grid;
    gap: 1.5rem;
}
.areas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr); }
.area-card,
.team-card,
.contact-form {
    background: var(--co-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}
.team-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}
.team-card .team-role {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0073aa;
    margin-bottom: 0.6rem;
}
.team-card .team-bio {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CONTACTO SECTION */

.contact-details p {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
}

.contact-details strong {
    font-weight: 600;
}

.contact-map-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--co-light-blue);
    font-size: 0.8rem;
    background: var(--co-light-blue);
    color: var(--co-white);
    text-decoration: none;
    white-space: nowrap;
}

.map-button:hover {
    opacity: 0.9;
}

/* Contact form inputs */

.contact-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #dddddd;
    padding: 0.55rem 0.7rem;
    font-family: var(--co-font-main);
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .btn-primary {
    margin-top: 0.3rem;
}

.contact-form-note {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.contact-form-response {
    margin-top: 0.6rem;
    font-size: 0.85rem;
}

/* Social links */

.contact-social {
    margin-top: 1.5rem;
}

.contact-social-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.social-link {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #e4edf2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    color: #003652;
}

.social-link span {
    display: none;
}

.social-link svg {
    width: 16px;
    height: 16px;
}

/* Footer */
.site-footer {
    background: #000000;
    color: var(--co-white);
    padding: 1.5rem 1.25rem;
    text-align: center;
    font-size: 0.8rem;
}
.site-footer .logo-line {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
/* RESPONSIVE */
@media (max-width: 960px) {
    .hero-grid,
    .areas-grid,
    .team-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-image-wrapper {
        bottom: 0;
        margin-top: 2rem;
    }
    .hero-image-wrapper img {
        max-width: 320px;
        margin: 0 auto;
    }
}
@media (max-width: 780px) {
    .main-nav { display: none; }
    .main-nav.is-open {
        display: block;
        position: absolute;
        top: 100%; right: 0; left: 0;
        background: rgba(0,54,82,0.97);
        padding: 0.75rem 1.25rem 1rem;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }
    .nav-toggle { display: inline-block; }
    .hero-title { font-size: 2rem; }
}


.footer-logo {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
}
.footer-logo img {
    max-height: 46px;
    width: auto;
}
@media (max-width: 600px) {
    .footer-logo img {
        max-height: 38px;
    }
}


@media (max-width: 1024px) {
    .site-branding img {
        max-height: 60px;
    }
}
@media (max-width: 768px) {
    .site-branding img {
        max-height: 50px;
    }
}
@media (max-width: 480px) {
    .site-branding img {
        max-height: 40px;
    }
}

/* Logo del footer */
.footer-logo {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
}
.footer-logo img {
    max-height: 46px;
    width: auto;
}
@media (max-width: 600px) {
    .footer-logo img {
        max-height: 38px;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.whatsapp-float img {
    display: block;
    width: 64px;
    height: auto;
}
/* Tablets */
@media (max-width: 992px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
    }
    .whatsapp-float img {
        width: 56px;
    }
}
/* Teléfonos */
@media (max-width: 640px) {
    .whatsapp-float {
        right: 12px;
        bottom: 12px;
    }
    .whatsapp-float img {
        width: 50px;
    }
}

/* hero image adjustments v8 */
.hero-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.18));
}

/* Footer logo fix */
.footer-logo img {
    width: 240px;
    height: auto;
}
@media(max-width:768px){
    .footer-logo img { width: 180px; }
}
@media(max-width:480px){
    .footer-logo img { width: 150px; }
}

/* Header logo shrink */
header .logo img, .header-logo img {
    max-height: 60px !important;
    height: auto;
}

/* Hero image fix */
.hero-image-wrapper {
    bottom: 0 !important;
}
#inicio, .hero-section {
    padding-bottom: 0 !important;
}
.hero-image-wrapper img {
    width: auto;
    max-width: 100%;
    height: auto;
}
