/* Variables */
:root {
    --primary-color: #1B6B66;
    --secondary-color: #F4C97A;
    --accent-color: #045A52;
    --text-color: #1B6B66;
    --gray-bg: #F4F4F4;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    background: var(--gray-bg);
    color: var(--text-color);
    min-width: 320px;
    padding-top: 80px; /* Para el navbar fixed */
}

h1, h2, h3 {
    /* font-family: 'Playfair Display', serif; */
}

/* Header/Navbar Bootstrap */
.main-header {
    background: transparent;
    box-shadow: none;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 1000;
}

.navbar {
    /*background: var(--white);*/
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-radius: 0;
    height: 80px;
    padding: 0;
    transition: var(--transition);
}

.navbar .container{
    background-color: white;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

@media (max-width: 576px) {


#navbarNav{
    margin-top: 30px;
}

}

.navbar-logo-bg {
    background: #1B6B66;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -12px;
}

.navbar-logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.navbar-nav {
    gap: 2.5rem;
}

.navbar-nav .nav-link {
    color: #045A52;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
    padding: 2px 0;
    border-bottom: 2px solid transparent;
    position: relative;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: #1ABBAA;
    border-bottom: 2px solid #1ABBAA;
    font-weight: 600;
}

.navbar-consulta {
    display: flex;
    align-items: center;
    margin-left: 0;
    padding-right: 32px;
    height: 100%;
}

.consulta-btn {
    background: #C9A06D;
    color: var(--accent-color);
    font-size: 18px;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: background 0.2s;
    display: inline-block;
    letter-spacing: 0.5px;
    border: none;
}

.consulta-btn span {
    color: #425334;
    font-weight: 700;
}

.consulta-btn:hover {
    background: #ffe2a8;
    color: var(--accent-color);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -80px;
    overflow: hidden;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 60px !important;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 27px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
}

.hero-subtitle {    
    font-size: 27px;
    color: var(--white);
    font-weight: 600;
    letter-spacing: 2px;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.about-img-block {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-img-block:hover .about-img {
    transform: scale(1.05);
}

.about-text {
    padding: 0 2rem;
}

.about-text p:not(.about-title) {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #666;
}

.about-title {
    font-size: 30px;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 700;
}

.about-description {
    font-size: 20px;
    font-weight: 500;
    color: #000 !important;
}

.about-green {
    color: var(--primary-color);
    font-weight: 600;
}

.about-blue {
    color: var(--accent-color);
}

.about-gray {
    color: #666;
}

.about-text b {
    color: var(--text-color);
    font-weight: 600;
}

/* Misión y Visión Section */
.mv-section {
    background: var(--gray-bg);
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.mv-col {
    padding: 4rem 3rem;
    background: #2B7C7A;
    position: relative;
    padding: 20px;
}

.mv-content-wrapper {
    max-width: 500px;
}

.mv-title-group {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.mv-title-lines {
    margin-right: 1.5rem;
    position: relative;
}

.mv-line-vertical {
    width: 3px;
    height: 80px;
    background: var(--white);
    margin: 0 auto;
}

.mv-title {
    padding-top: 40px;
    font-size: 35px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mv-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--white);
    margin: 0;
}

.mv-img-block {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.mv-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Pilares Section */
.pilares-section {
    padding: 80px 0;
    background: var(--white);
}

.pilares-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pilares-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pilares-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.pilar-tag {
   padding: 15px;
   width: 30%;
   color: var(--white);
   font-size: 20px;
}

.pilar-tag-1 {
    background: #1ABBAA;
}

.pilar-tag-2 {
    background: #186b66;
    color: var(--white);
}

.pilar-tag-3 {
    background: #045A52;
}

.pilar-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Areas de Práctica Section */
.areas-practice-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
}

.areas-container {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 400px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.areas-left-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #DAD8D8;
    z-index: 1;
}

.areas-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.areas-title {
    font-size: 45px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-top: 120px;
}

.areas-right {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.areas-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.area-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    transition: var(--transition);
}

.area-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 0%;
    flex-shrink: 0;
}

.area-item div {
    font-size: 30px !important;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

.area-item:hover {
    transform: translateX(5px);
}



.areas-btn-container {
    text-align: center;
    margin-top: 3rem;
}

.areas-btn {
    background: #C9A06D;
    color: #045A52;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.areas-btn span {
    color: #045A52;
    font-weight: 700;
}

.areas-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Contact Form Styles */
.contact {
    padding: 80px 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}



.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--gray-bg);
    padding: 2rem;
    border-radius: 0px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-form .form-control {
    border: 2px solid transparent;
    border-radius: 0px;
    padding: 0.75rem 1rem;
    font-size: 13px !important;
    transition: var(--transition);
    background: var(--white);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(27, 107, 102, 0.25);
}

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

.submit-button {
    background: var(--primary-color) !important;
    border: none !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    transition: var(--transition) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.submit-button:hover {
    background: var(--accent-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

.form-message {
    display: none;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading-spinner {
    display: none;
    text-align: center;
    margin: 1rem 0;
}

.loading-spinner:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-map iframe {
    border-radius: 0px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Footer */
.footer-ma {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px;
}

.footer-main {
    padding: 3rem 0;
}

.footer-col {
    padding: 0 1rem;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-brand p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    display: inline-block;
    transition: var(--transition);
}

.footer-social-link img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.footer-social-link:hover img {
    transform: scale(1.1);
}

.footer-contact b,
.footer-areas b {
    color: var(--secondary-color);
    font-weight: 700;
}

.footer-contact,
.footer-areas {
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

.footer-bar {
    background: #C9A06D;
    padding: 1rem 0;
    text-align: center;
    color: #186b66;
    font-size: 0.9rem;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 80px;   
    height: 80px;
}

.whatsapp-button img {
    width: 100%;
    height: 100%;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navbar-logo-bg {
        width: 100px;
    }
    
    .navbar-consulta {
        padding-right: 20px;
    }
    
    .areas-list-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .navbar {
        height: 70px;
    }
    
    .navbar-logo-bg {
        width: 90px;
        height: 70px;
    }
    
    .navbar-nav {
        gap: 1.5rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 16px;
    }
    
    .navbar-consulta {
        padding-right: 15px;
    }
    
    .consulta-btn {
        font-size: 16px;
        padding: 0.6rem 1.2rem;
    }
    
    .about-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-img-block {
        height: 300px;
    }
    
    .about-text {
        padding: 0 1rem;
    }
    
    .areas-container {
        flex-direction: column;
    }
    
    .areas-left-bg {
        width: 100%;
        height: 200px;
    }
    
    .areas-content {
        padding: 2rem;
    }
    
    .areas-img-block {
        height: 300px;
    }
    
    .areas-img {
        height: 300px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .navbar-box,
    .about-container,
    .areas-container {
        max-width: 95vw;
    }
    
    .areas-list-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .area-item div {
        font-size: 0.9rem;
    }
    
    .hero-section h1 {
        font-size: 35px;
    }
    
    .contact {
        padding: 60px 20px;
    }
    
    .contact h2 {
        font-size: 2rem;
    }
}

@media (max-width: 800px) {
    .navbar {
        height: 60px;
    }
    
    .navbar-logo-block, .navbar-consulta {
        display: none;
    }
    
    .navbar-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .navbar-box,
    .about-container,
    .areas-container {
        max-width: 100vw;
        margin: 0;
        border-radius: 0;
    }
    
    .areas-right {
        padding: 2rem 1rem;
    }
    
    .areas-list-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .area-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .area-dot {
        width: 8px;
        height: 8px;
    }
    
    .area-item div {
        font-size: 0.8rem;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .mv-section {
        min-height: auto;
    }
    
    .mv-container {
        flex-direction: column;
    }
    
    .mv-content {
        flex-direction: column;
    }
    
    .mv-col {
        padding: 2rem 1rem;
    }
    
    .mv-title-group {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .mv-title-lines {
        margin-right: 0;
    }
    
    .mv-title {
        font-size: 1.5rem;
    }
    
    .mv-text {
        font-size: 0.9rem;
    }
    
    .mv-img-block, .mv-img {
        display: none;
    }
    
    .footer-ma {
        padding: 2rem 0;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-col {
        text-align: center;
        padding: 0;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-social-link img {
        width: 20px;
        height: 20px;
    }
    
    .footer-contact,
    .footer-areas {
        font-size: 0.9rem;
    }
    
    .footer-contact b,
    .footer-areas b {
        font-size: 1rem;
    }
    
    .footer-bar {
        font-size: 0.8rem;
    }
    
    .pilares-tags {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .pilar-tag {
        width: 100%;
        max-width: 300px;
    }
    
    .areas-content {
        padding: 1.5rem;
    }
    
    .areas-title {
        font-size: 2rem;
    }
    
    .areas-container {
        margin: 0 1rem;
    }
    
    .areas-left-bg {
        height: 150px;
    }
    
    .contact {
        padding: 40px 20px;
    }
    
    .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .submit-button {
        font-size: 1rem !important;
        padding: 0.8rem 1.5rem !important;
    }
}

@media (min-width: 1600px) {
    .navbar-box,
    .about-container,
    .areas-container {
        max-width: 1400px;
    }
    
    .areas-list-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .area-item div {
        font-size: 1.1rem;
    }
    
    .hero-section h1 {
        font-size: 55px;
    }
}

@media (min-width: 2000px) {
    .navbar-box,
    .about-container,
    .areas-container {
        max-width: 1600px;
    }
    
    .areas-list-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .area-item div {
        font-size: 1.2rem;
    }
    
    .hero-section h1 {
        font-size: 65px;
    }
}

@media (max-width: 1366px) {
    body {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    body {
        font-size: 13px;
    }
}