/*
Theme Name: Clínica y Laboratorio Teresita
Description: Tema moderno y personalizado para Clínica y Laboratorio Teresita A.C., basado en diseño profesional con bloques administrables
Author: Clínica Teresita
Version: 1.0.0
Text Domain: clinica-teresita
*/

/* 
 * Tailwind CSS is loaded separately via functions.php
 * This file contains custom theme styles and overrides
 */

/* Custom CSS Variables */
:root {
  --primary-color: #1e3a8a;
  --secondary-color: #475569;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f8fafc;
  --white: #ffffff;
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Header Styles */
.site-header {
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-bottom: 1px solid #e5e7eb;
}

/* Custom Logo Styles */
.custom-logo-link {
  display: flex;
  align-items: center;
  max-width: 200px; /* Limita el ancho máximo del logo */
}

.custom-logo-link img {
  max-width: 100%;
  height: auto;
  max-height: 60px; /* Limita la altura máxima del logo */
  width: auto;
  object-fit: contain;
}

.site-branding {
  flex-shrink: 0;
  max-width: 200px; /* Asegura que el branding no ocupe demasiado espacio */
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-symbol {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
}

/* Navigation Styles */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-navigation a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.main-navigation a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  background: rgba(30, 58, 138, 0.8);
  backdrop-filter: blur(4px);
}

/* Content Blocks */
.content-block {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.content-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Timeline Styles */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 12px;
  width: 2px;
  height: calc(100% - 12px);
  background: #e5e7eb;
}

/* Footer Styles */
.site-footer {
  background: var(--secondary-color);
  color: var(--white);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Button Styles */
.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-section {
    padding: 3rem 1rem;
  }
  
  .content-block {
    margin: 1rem 0;
  }
  
  /* Responsive Logo Styles */
  .custom-logo-link {
    max-width: 150px; /* Logo más pequeño en móviles */
  }
  
  .custom-logo-link img {
    max-height: 50px; /* Altura más pequeña en móviles */
  }
  
  .site-branding {
    max-width: 150px; /* Branding más pequeño en móviles */
  }
}

/* WordPress Admin Styles */
.wp-block {
  max-width: 1200px;
}

/* Custom Block Styles */
.wp-block-clinica-teresita-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.wp-block-clinica-teresita-timeline {
  padding: 2rem 0;
}

.wp-block-clinica-teresita-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.wp-block-clinica-teresita-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
} 