/* Import base styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* Navigation styles (matching original design) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #d4af37;
}

.logo-container img {
    height: 50px;
    width: auto;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.mobile-menu.active {
    display: block;
}

/* News Section */
.news-section {
    padding: 120px 2rem 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-container {
    width: 100%;
}

.news-header {
    text-align: center;
    margin-bottom: 4rem;
}

.news-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.news-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.news-card-category {
    background: rgba(212, 175, 55, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
}

.news-card-date,
.news-card-location {
    font-weight: 500;
}

/* 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);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-header {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(212, 175, 55, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body {
    padding: 2rem;
}

.modal-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.modal-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.modal-body p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: #444;
}

.modal-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 2rem 0 1rem 0;
}

.modal-body ul {
    margin: 1rem 0 1.5rem 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #444;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .news-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .news-section {
        padding: 100px 1rem 60px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-title {
        font-size: 2rem;
    }
    
    .news-subtitle {
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-body h2 {
        font-size: 1.6rem;
    }
    
    .modal-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .news-card-content {
        padding: 1rem;
    }
    
    .news-card-title {
        font-size: 1.1rem;
    }
    
    .news-card-excerpt {
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-body h2 {
        font-size: 1.4rem;
    }
}



/* ==================== FOOTER SECTION ==================== */
.footer-section {
    background: #65150A;
    color: white;
    position: relative;
    overflow: hidden;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 48px 0;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
  }
  
  /* ==================== FOOTER BRAND ==================== */
  .footer-brand {
    max-width: 350px;
  }
  
  .footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
  }
  
  .footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 32px;
  }
  
  .footer-social {
    display: flex;
    gap: 16px;
  }
  
  .footer-social-link {
    width: 44px;
    height: 44px;
    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;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .footer-social-link:hover {
    background: white;
    color: #65150A;
    transform: translateY(-2px);
  }
  
  .footer-social-link svg {
    width: 20px;
    height: 20px;
  }
  
  /* ==================== FOOTER LINKS ==================== */
  .footer-links {
    display: flex;
    flex-direction: column;
  }
  
  .footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
    position: relative;
  }
  
  .footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: white;
    opacity: 0.6;
  }
  
  .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-menu li {
    margin-bottom: 12px;
  }
  
  .footer-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
  }
  
  .footer-menu a:hover {
    opacity: 1;
    color: white;
    transform: translateX(4px);
  }
  
  /* ==================== FOOTER CONTACT ==================== */
  .footer-contact {
    display: flex;
    flex-direction: column;
  }
  
  .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    opacity: 0.9;
  }
  
  .footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: white;
    opacity: 0.7;
    flex-shrink: 0;
  }
  
  /* ==================== AIRES-SOFT CREDIT ==================== */
  .aires-soft-credit {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    text-align: center;
  }
  
  .aires-soft-credit p {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin: 0;
  }
  
  .aires-soft-credit a {
    text-decoration: none;
    font-weight: 700;
    background: linear-gradient(
        90deg,
        rgb(0,115,229),
        #fff,
        rgb(0,115,229)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 3s linear infinite;
    background-size: 200% auto;
  }
  
  @keyframes textGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* ==================== BOTÓN WHATSAPP ==================== */
  .whatsapp-btn{
    position:fixed; 
    bottom:24px; 
    right:24px; 
    width:56px; 
    height:56px; 
    background:#25d366; 
    border-radius:50%;
    display:flex; 
    align-items:center; 
    justify-content:center; 
    box-shadow:0 4px 12px rgba(0,0,0,.15);
    transition:background-color .3s; 
    z-index:50; 
    text-decoration:none;
  }
  
  .whatsapp-btn:hover{ 
    background:#128c7e; 
  }
  
  .whatsapp-btn svg{ 
    width:32px; 
    height:32px; 
    color:#fff; 
  }
  
  /* ==================== ANIMACIONES ==================== */
  @keyframes fadeInUp{ 
    from{opacity:0; transform:translateY(30px);} 
    to{opacity:1; transform:none;} 
  }
  
  @keyframes fadeInLeft{ 
    from{opacity:0; transform:translateX(-30px);} 
    to{opacity:1; transform:none;} 
  }
  
  .treatment-item{ 
    animation: fadeInLeft .6s ease-out both; 
  }
  
  .treatment-item:nth-child(2){ 
    animation-delay:.2s; 
  }
  
  .treatment-item:nth-child(3){ 
    animation-delay:.4s; 
  }
  
  .treatment-item:nth-child(4){ 
    animation-delay:.6s; 
  }
  
  /* ==================== RESPONSIVE DESIGN ==================== */
  
  /* Large Tablets and Small Desktops */
  @media (max-width: 1200px) {
    .navbar { 
        padding: 24px 32px; 
    }
    
    .hero-title { 
        font-size: 3.5rem; 
    }
    
    .tratamentos-content, 
    .about-content { 
        padding: 60px 48px; 
    }
    
    .contact-container {
        padding: 0 32px;
        gap: 60px;
    }
    
    .footer-container {
        padding: 60px 32px 0;
    }
  }
  
  /* Tablets */
  @media (max-width: 1024px) {
    .navbar { 
        padding: 24px; 
    }
    
    .nav-menu { 
        display: none; 
    }
    
    .mobile-menu-btn { 
        display: block; 
    }
    
    .hero-title { 
        font-size: 3rem; 
    }
  
    /* Stack sections vertically */
    .tratamentos-section, 
    .about-section { 
        grid-template-columns: 1fr; 
    }
  
    .tratamentos-content, 
    .about-content { 
        padding: 48px 32px; 
    }
    
    .tratamentos-title, 
    .about-title { 
        font-size: 2.5rem; 
    }
  
    /* Mobile badge positioning */
    .treatment-item { 
        padding-left: calc(var(--badge-size) / 2 + 20px); 
    }
    
    .treatment-icon {
        left: calc(-1 * (var(--badge-size) / 2));
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 32px;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .footer-container {
        padding: 60px 32px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        max-width: none;
    }
  }
  
  /* Mobile Landscape and Small Tablets */
  @media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
        height: 80px;
    }
    
    .logo-container img {
        max-height: 50px;
    }
    
    .hero-content {
        min-height: calc(100vh - 80px);
        padding: 0 20px;
    }
    
    .hero-title { 
        font-size: 2.5rem; 
    }
    
    .hero-subtitle {
        font-size: 12px;
    }
    
    .tratamentos-content, 
    .about-content { 
        padding: 32px 24px; 
    }
    
    .tratamentos-title, 
    .about-title { 
        font-size: 2rem; 
    }
  
    .treatment-item { 
        margin-bottom: 32px; 
    }
    
    .treatment-icon { 
        width: 56px; 
        height: 56px; 
    }
    
    .treatment-content h3 {
        font-size: 18px;
    }
    
    .treatment-content p {
        font-size: 13px;
    }
    
    .about-image {
        padding: 20px;
    }
    
    .about-image img {
        max-width: 80%;
    }
    
    .contact-section {
        padding: 48px 0;
    }
    
    .contact-container {
        padding: 0 24px;
        gap: 32px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-form-container {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-item {
        padding: 20px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .footer-container {
        padding: 48px 24px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-menu a:hover {
        transform: none;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
  }
  
  /* Mobile Portrait */
  @media (max-width: 480px) {
    .navbar {
        padding: 12px 16px;
        height: 70px;
    }
    
    .logo-container img {
        max-height: 40px;
    }
    
    .hero-content {
        min-height: calc(100vh - 70px);
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .tratamentos-content,
    .about-content {
        padding: 24px 16px;
    }
    
    .tratamentos-title,
    .about-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }
    
    .treatment-item {
        margin-bottom: 24px;
        padding-left: calc(var(--badge-size) / 2 + 16px);
    }
    
    .treatment-icon {
        width: 48px;
        height: 48px;
    }
    
    .treatment-content h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .treatment-content p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .about-text {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .about-btn {
        padding: 10px 24px;
        font-size: 12px;
    }
    
    .contact-section {
        padding: 32px 0;
    }
    
    .contact-container {
        padding: 0 16px;
        gap: 24px;
    }
    
    .contact-title {
        font-size: 1.75rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    
    .contact-form-container {
        padding: 24px 16px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 16px;
    }
    
    .contact-text h4 {
        font-size: 1rem;
    }
    
    .contact-text p {
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .footer-container {
        padding: 32px 16px 0;
    }
    
    .footer-content {
        gap: 24px;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .aires-soft-credit p {
        font-size: 0.8rem;
        padding: 0 16px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
    }
    
    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
  }
  
  /* Extra Small Mobile */
  @media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .tratamentos-title,
    .about-title,
    .contact-title {
        font-size: 1.5rem;
    }
    
    .treatment-item {
        padding-left: calc(var(--badge-size) / 2 + 12px);
    }
    
    .treatment-icon {
        width: 40px;
        height: 40px;
    }
    
    .treatment-content h3 {
        font-size: 14px;
    }
    
    .treatment-content p {
        font-size: 11px;
    }
    
    .contact-form-container {
        padding: 20px 12px;
    }
    
    .footer-container {
        padding: 24px 12px 0;
    }
  }
  
  /* ==================== ACCESSIBILITY ==================== */
  @media (prefers-reduced-motion: reduce) {
    .treatment-item,
    .footer-social-link:hover,
    .footer-menu a:hover,
    .treatment-item:hover,
    .contact-item:hover {
        transform: none;
        animation: none;
    }
    
    .aires-soft-credit a {
        animation: none;
    }
  }
  
  /* High contrast mode support */
  @media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0,0,0,.5);
    }
    
    .treatment-icon {
        border: 2px solid #000;
    }
    
    .contact-item {
        border: 1px solid rgba(0,0,0,.2);
    }
  }
  
  /* Print styles */
  @media print {
    .whatsapp-btn,
    .mobile-menu-btn,
    .mobile-menu {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        page-break-after: always;
    }
    
    .footer-section {
        page-break-before: always;
    }
  }