/* Font Face Declarations */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/Playfair_Display/static/PlayfairDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/Playfair_Display/static/PlayfairDisplay-Bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/Playfair_Display/static/PlayfairDisplay-Black.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue.ttc') format('truetype-collection');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue.ttc') format('truetype-collection');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue.ttc') format('truetype-collection');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue.ttc') format('truetype-collection');
    font-weight: 600;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom CSS Variables for Brand Consistency */
:root {
    /* Colores principales del manual de marca */
    --primary-blue: #20203E;
    --secondary-blue: #2B3A5C;
    --teal-accent: #3D8B8B;
    --accent-blue: #517FA4;
    
    /* Colores de texto */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    
    /* Colores de fondo del manual */
    --background-light: #E8E4DD;
    --background-cream: #F5F3EF;
    --background-white: #ffffff;
    --border-light: #d4cfca;
    
    /* Sombras */
    --shadow-soft: rgba(32, 32, 62, 0.1);
    --shadow-medium: rgba(32, 32, 62, 0.15);
    
    /* Gradientes del manual */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    --gradient-teal: linear-gradient(135deg, #3D8B8B 0%, #2E6B6B 100%);
    --gradient-light: linear-gradient(135deg, var(--background-cream) 0%, var(--background-light) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-white);
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #666;
}

.about-text p {
    font-size: 1.8rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 3rem;
    max-width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(32, 32, 62, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow-soft);
    transition: all 0.3s ease;
    padding: 0 !important;
    margin: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: -50px auto;
    padding: 0 30px;
    min-height: auto;
    height: auto;
}

.logo-section {
    display: flex;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0;
}

.logo {
    height: 235px !important;
    width: auto;
    max-width: 550px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    opacity: 1 !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    vertical-align: top;
}

.logo:hover {
    transform: scale(1.05);
}

.navigation {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 0.905rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Animación de línea removida */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 160px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(32, 32, 62, 0.7) 0%, rgba(32, 32, 62, 0.7) 50%, rgba(32, 32, 62, 0.7) 100%);
    z-index: 1;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-text h1 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

.hero-image {
    position: relative;
    display: none; /* Ocultar contenedor vacío */
}

.hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.section-header h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--background-light);
}

.about .container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 8rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.about-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-main-text {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-blue);
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 0.5rem;
    margin-bottom: 3rem;
    text-align: center;
    width: 100%;
    letter-spacing: -0.01em;
    margin-left: auto;
    margin-right: auto;
}

.about-secondary-text {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-blue);
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 4rem;
    text-align: center;
    width: 100%;
    letter-spacing: -0.01em;
    margin-left: auto;
    margin-right: auto;
}

.about-text h3 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 2.2rem;
    line-height: 1.3;
    max-width: 700px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem auto 0;
    max-width: 500px;
    justify-items: center;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-10px);
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Practice Areas Section */
.practice-areas {
    padding: 6rem 0;
    background: var(--background-cream);
}

.areas-list-container {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.areas-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.area-list-item {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.area-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-left-color: var(--primary-blue);
}

.area-list-item:hover .area-icon {
    transform: scale(1.1);
}

.area-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.area-icon i {
    font-size: 1.2rem;
    color: white;
}

.area-list-item h3 {
    color: var(--primary-blue);
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.area-card p {
    color: #666;
    line-height: 1.6;
}

.practice-image {
    text-align: center;
    display: none; /* Ocultar contenedor vacío */
}

.practice-image img {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Articles Section */
.articles-section {
    padding: 6rem 0 3rem 0;
    background: var(--background-white);
    position: relative;
}

.articles-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.articles-section .section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.articles-section .section-header p {
    font-size: 1.1rem;
    color: #666;
}

.articles-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.articles-carousel {
    overflow: hidden;
    position: relative;
}

.articles-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.article-card {
    flex: 0 0 calc(33.333% - 1.35rem);
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 2.5rem 2rem;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.article-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-date {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(32, 32, 62, 0.3);
}

.carousel-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(32, 32, 62, 0.4);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-btn i {
    font-size: 1.2rem;
}

/* Stats Section */
.stats-section {
    padding: 2rem 0 4rem 0;
    background: var(--background-white);
}

.stats-section .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 700px;
    margin: 0 auto;
    justify-items: center;
}

.stats-section .stat {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.stats-section .stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stats-section .stat h4 {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stats-section .stat p {
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    margin: 0;
}

.stats-disclaimer {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
    padding: 0 2rem;
}

.stats-disclaimer p {
    color: var(--primary-blue);
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
}

/* Contact Section */
.contact-single-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-light);
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e8e8e8;
}

.contact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-row:first-child {
    padding-top: 0;
}

.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-icon-wrapper i {
    font-size: 1.8rem;
    color: #fff;
}

.contact-row:hover .contact-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
}

.contact-info-wrapper {
    flex: 1;
}

.contact-info-wrapper h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-info-wrapper p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.contact-link {
    color: var(--primary-blue);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}

.contact {
    padding: 6rem 0;
    background: var(--background-cream);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card-modern {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-medium);
    border-color: var(--primary-blue);
}

.contact-card-modern:hover::before {
    transform: scaleX(1);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.2);
    transition: all 0.4s ease;
}

.contact-card-modern:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.3);
}

.contact-card-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.contact-card-modern h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.contact-card-modern p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, var(--background-cream) 0%, #f0ebe3 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #d4cfca;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-accent);
    box-shadow: 0 0 0 3px rgba(61, 139, 139, 0.15);
    background: #fafaf8;
}

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

.contact-image {
    text-align: center;
    display: none; /* Ocultar contenedor vacío */
}

.contact-image img {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: #b8c5d1;
    line-height: 1.8;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-section p i {
    width: 20px;
    text-align: center;
    color: var(--accent-blue);
}

.footer-instagram-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #b8c5d1;
    text-decoration: none;
    line-height: 1.8;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.footer-instagram-link i {
    width: 20px;
    text-align: center;
    color: var(--accent-blue);
    font-size: 1.1rem;
}

.footer-instagram-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-instagram-link:hover i {
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #b8c5d1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b8c5d1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 110px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 110px);
        background: rgba(20, 30, 50, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        gap: 1.5rem;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .logo {
        height: 90px;
        max-width: 350px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        margin: 2rem 0;
    }
    
    .about .container {
        max-width: 90%;
        padding: 0 3rem;
    }
    
    .about-content {
        width: 100%;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
        margin: 3rem auto 0;
        justify-items: center;
    }
    
    .about-main-text {
        font-size: 2.5rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .about-secondary-text {
        font-size: 2.5rem;
        line-height: 1.3;
        margin-bottom: 3rem;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 1.1rem;
    }
    
    .areas-list-container {
        flex-direction: column;
        gap: 2rem;
        max-width: 500px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 140px;
    }
    
    .articles-carousel-container {
        padding: 0 50px;
    }
    
    .article-card {
        flex: 0 0 100%;
        padding: 1.5rem;
        min-height: 240px;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .logo {
        height: 70px;
        max-width: 250px;
    }
    
    .carousel-btn i {
        font-size: 1rem;
    }
    
    .stats-section {
        padding: 1.5rem 0 3rem 0;
    }
    
    .stats-section .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 350px;
    }
    
    .stats-section .stat {
        padding: 2rem 1.5rem;
    }
    
    .stats-section .stat h4 {
        font-size: 2.5rem;
    }
    
    .stats-section .stat p {
        font-size: 0.85rem;
    }
    
    .stats-disclaimer {
        padding: 0 1rem;
        margin-top: 2rem;
    }
    
    .stats-disclaimer p {
        font-size: 0.9rem;
    }
    
    .contact-single-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon-wrapper {
        width: 55px;
        height: 55px;
    }
    
    .contact-icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .contact-info-wrapper h4 {
        font-size: 1.2rem;
    }
    
    .contact-info-wrapper p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .about .container {
        padding: 0 1.5rem;
    }
    
    .about-main-text {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .about-secondary-text {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 2.5rem;
    }
    
    .area-list-item {
        padding: 1.2rem 1rem;
    }
    
    .area-list-item h3 {
        font-size: 0.9rem;
    }
    
    .area-icon {
        width: 40px;
        height: 40px;
    }
    
    .area-icon i {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card-modern {
        padding: 2rem 1.5rem;
    }
    
    .contact-card-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-card-icon i {
        font-size: 1.5rem;
    }
    
    .contact-card-modern h4 {
        font-size: 1.2rem;
    }
    
    .contact-card-modern p {
        font-size: 1rem;
    }
    
    .articles-carousel-container {
        padding: 0 60px;
    }
    
    .article-card {
        flex: 0 0 calc(50% - 1rem);
        padding: 2rem 1.5rem;
        min-height: 260px;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .stats-section .stats {
        gap: 2rem;
    }
    
    .stats-section .stat {
        padding: 2.5rem 1.5rem;
    }
    
    .stats-section .stat h4 {
        font-size: 3rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    position: relative;
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
}

.modal-icon i {
    font-size: 2rem;
    color: white;
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
}

.modal-services {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-blue);
}

.modal-services h3 {
    color: var(--primary-blue);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-services ul {
    list-style: none;
    padding: 0;
}

.modal-services li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.modal-services li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.modal-cta {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .modal-icon i {
        font-size: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .close {
        top: 0.5rem;
        right: 1rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 5% auto;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-services {
        padding: 1rem;
    }
}

/* Extended Modal Styles (for Penal and other detailed areas) */
.modal-extended {
    max-width: 1200px;
    max-height: 90vh;
}

.modal-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2.5rem;
    text-align: center;
    padding: 0 1rem;
}

.modal-extended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.modal-extended-card {
    background: #f8f9ff;
    padding: 2rem;
    border-radius: 15px;
    border-top: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.modal-extended-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.extended-card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.extended-card-icon i {
    font-size: 1.5rem;
    color: white;
}

.modal-extended-card h3 {
    color: var(--primary-blue);
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.modal-extended-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
    text-align: center;
}

.modal-extended-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.modal-extended-card li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

.modal-extended-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Responsive Extended Modal */
@media (max-width: 1024px) {
    .modal-extended {
        max-width: 95%;
    }
    
    .modal-extended-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modal-extended {
        max-width: 95%;
        margin: 5% auto;
    }
    
    .modal-extended-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-extended-card {
        padding: 1.5rem;
    }
    
    .modal-intro {
        font-size: 1rem;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .modal-extended {
        width: 98%;
        max-height: 90vh;
    }
    
    .modal-extended-card {
        padding: 1.2rem;
    }
    
    .extended-card-icon {
        width: 50px;
        height: 50px;
    }
    
    .extended-card-icon i {
        font-size: 1.2rem;
    }
    
    .modal-extended-card h3 {
        font-size: 1.1rem;
    }
}

/* Penal Page Styles */
.penal-hero {
    padding: 10rem 0 4rem;
    background: var(--gradient-primary);
    position: relative;
    text-align: center;
    color: white;
}

.penal-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.penal-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.penal-icon i {
    font-size: 3rem;
    color: white;
}

.penal-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.penal-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.penal-services {
    padding: 6rem 0;
    background: #f8f9ff;
}

.penal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.penal-service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-blue);
}

.penal-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.penal-service-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.penal-service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.penal-service-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.penal-service-card li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.penal-service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.penal-cta {
    padding: 6rem 0;
    background: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.cta-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Penal Page */
@media (max-width: 768px) {
    .penal-hero {
        padding: 8rem 0 3rem;
    }
    
    .penal-icon {
        width: 100px;
        height: 100px;
    }
    
    .penal-icon i {
        font-size: 2.5rem;
    }
    
    .penal-hero h1 {
        font-size: 2rem;
    }
    
    .penal-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .penal-service-card {
        padding: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .penal-hero {
        padding: 7rem 0 2rem;
    }
    
    .penal-icon {
        width: 80px;
        height: 80px;
    }
    
    .penal-icon i {
        font-size: 2rem;
    }
    
    .penal-hero h1 {
        font-size: 1.8rem;
    }
    
    .penal-service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Team Section */
.team {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
}

.team .section-header h2 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 3rem;
    font-weight: 700;
}

.team .section-header p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.member-photo {
    width: 320px;
    height: 400px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.photo-placeholder {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.team-member:hover .photo-placeholder {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.9);
}

.member-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.member-role {
    color: #4a9eff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.member-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.team-member .btn {
    margin-top: 1rem;
}

/* Responsive Team Grid */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .team .section-header h2 {
        font-size: 2.5rem;
    }
    
    .member-photo {
        width: 260px;
        height: 330px;
    }
    
    .photo-placeholder {
        font-size: 3rem;
    }
    
    .member-info h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .team {
        padding: 4rem 0;
    }
    
    .team .section-header h2 {
        font-size: 2.2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-member {
        padding: 1rem;
    }
    
    .member-photo {
        width: 220px;
        height: 280px;
    }
    
    .photo-placeholder {
        font-size: 2.5rem;
    }
}

/* Profile Pages Styles */
.profile-hero {
    padding: 10rem 0 4rem;
    background: var(--gradient-primary);
    position: relative;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.profile-photo {
    text-align: center;
}

.profile-photo img {
    width: 280px;
    height: 380px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin: 0 auto;
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.photo-placeholder-large {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.photo-placeholder-large i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.7);
}

.profile-info h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.profile-role {
    color: #4a9eff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 3px;
}

.profile-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details {
    padding: 4rem 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-card .contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-card .contact-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #666;
    line-height: 1.5;
}

.experience, .education {
    padding: 4rem 0;
    background: #fff;
}

.experience h2, .education h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
}

.experience-content, .education-content {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item, .education-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-blue);
}

.experience-item h3, .education-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.experience-period, .education-year {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.experience-role, .education-degree {
    color: #666;
    font-weight: 500;
    margin-bottom: 1rem;
}

.experience-item p:last-child {
    color: #666;
    line-height: 1.6;
}

.back-section {
    padding: 2rem 0;
    background: #f8f9fa;
    text-align: center;
}

/* New Profile Page Two Column Design */
.profile-header {
    padding: 10rem 0 3rem;
    background: var(--gradient-primary);
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.profile-photo-large img {
    width: 300px;
    height: 400px;
    border-radius: 15px;
    object-fit: cover;
    object-position: center 20%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.profile-header-info h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.profile-main {
    padding: 5rem 0;
    background: var(--background-cream);
}

.profile-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.column-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-blue);
}

.profile-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1.2rem;
    box-shadow: 0 4px 15px var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.profile-info-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px var(--shadow-medium);
    border-color: var(--primary-blue);
}

.profile-card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-card-icon i {
    font-size: 1.3rem;
    color: white;
}

.profile-card-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.profile-card-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-word;
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.education-item-new {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow-soft);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.education-item-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.education-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #3a6d8c 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.education-icon i {
    font-size: 1.5rem;
    color: white;
}

.education-details h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.education-item-new .education-degree {
    color: #555;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.education-item-new .education-year {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Profile Pages */
@media (max-width: 768px) {
    .profile-header {
        padding: 8rem 0 2rem;
    }
    
    .profile-header-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-header-info h1 {
        font-size: 2.2rem;
    }
    
    .profile-main {
        padding: 3rem 0;
    }
    
    .profile-two-column {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .column-title {
        font-size: 1.8rem;
    }
    
    .profile-photo-large img {
        width: 260px;
        height: 350px;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .profile-photo img {
        width: 260px;
        height: 350px;
    }
    
    .photo-placeholder-large {
        width: 200px;
        height: 200px;
    }
    
    .photo-placeholder-large i {
        font-size: 4rem;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .experience h2, .education h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 7rem 0 2rem;
    }
    
    .profile-header-info h1 {
        font-size: 1.8rem;
    }
    
    .profile-photo-large img {
        width: 220px;
        height: 300px;
    }
    
    .column-title {
        font-size: 1.5rem;
    }
    
    .profile-info-card {
        padding: 1.2rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .education-item-new {
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-hero {
        padding: 8rem 0 3rem;
    }
    
    .profile-photo img {
        width: 220px;
        height: 300px;
    }
    
    .photo-placeholder-large {
        width: 150px;
        height: 150px;
    }
    
    .photo-placeholder-large i {
        font-size: 3rem;
    }
    
    .profile-info h1 {
        font-size: 1.8rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .experience-item, .education-item {
        padding: 1.5rem;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Animación de burbujeo/pulso */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}

/* Ajustes específicos para fotos de perfil */
img[src*="diazJuanIgnacio/2.2"] {
    object-position: center 15% !important;
}

img[src*="diazMarcelo/2.2"] {
    object-position: center 25% !important;
}

/* Ajuste específico para foto de Juan Ignacio en sección equipo */
img[src*="diazJuanIgnacio/1.1"] {
    object-fit: cover ;
    object-position: center 15% !important;
}

/* Mejoras de calidad para todas las imágenes de perfil */
.profile-photo-large img,
.member-photo img {
    image-rendering: -webkit-optimize-contrast;
    -webkit-filter: blur(0px);
    filter: blur(0px);
    transform: translateZ(0);
    will-change: transform;
}

/* Article Modal Styles */
.modal-body h3 {
    color: var(--primary-blue);
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-body ul {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
}

.modal-body ul li {
    margin-bottom: 0.7rem;
    line-height: 1.6;
    color: #555;
    font-size: 0.9rem;
}

.modal-body strong {
    color: var(--primary-blue);
    font-weight: 600;
}
