/*-------------------------------------------------------------------
    # Modern Style for Cruz Roja Colombiana Seccional Córdoba
    # A sophisticated, elegant and attention-grabbing design
-------------------------------------------------------------------*/

:root {
  /* Main colors */
  --primary: #e52b1e;
  --primary-dark: #b91c1c;
  --primary-light: #fecaca;
  --primary-ultra-light: #fee2e2;
  --secondary: #333333;
  --light: #ffffff;
  --dark: #111827;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Typography */
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Poppins", sans-serif;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
}

/*-------------------------------------------------------------------
    # General Styles
-------------------------------------------------------------------*/
html {
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background-color: var(--light);
  overflow-x: hidden;
  min-height: 100%;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 2rem;
  font-weight: 700;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1320px;
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

.section-padding {
  padding: 6rem 0;
}

.section-padding-lg {
  padding: 8rem 0;
}

.section-margin {
  margin: 6rem 0;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-primary-light {
  background-color: var(--primary-light) !important;
}

.bg-primary-ultra-light {
  background-color: var(--primary-ultra-light) !important;
}

.bg-gray-gradient {
  background: linear-gradient(to bottom, var(--gray-50), var(--light));
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.gradient-text {
  background: linear-gradient(135deg, var(--light), #f8f9fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.overflow-hidden {
  overflow: hidden;
}

.position-relative {
  position: relative;
}

/*-------------------------------------------------------------------
    # Buttons
-------------------------------------------------------------------*/
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-transform: none;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:focus,
.btn:hover {
  text-decoration: none;
}

.btn-primary {
  color: var(--light);
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 6px rgba(229, 43, 30, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  color: var(--light);
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 6px 15px rgba(229, 43, 30, 0.35);
  transform: translateY(-3px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  color: var(--primary);
  background-color: transparent;
  border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: var(--light);
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 6px 15px rgba(229, 43, 30, 0.25);
  transform: translateY(-3px);
}

.btn-light {
  color: var(--primary);
  background-color: var(--light);
  border-color: var(--light);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-light:hover,
.btn-light:focus {
  color: var(--primary);
  background-color: var(--gray-100);
  border-color: var(--gray-100);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.btn-outline-light {
  color: var(--light);
  background-color: transparent;
  border-color: var(--light);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: var(--primary);
  background-color: var(--light);
  border-color: var(--light);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon i,
.btn-icon svg {
  margin-right: 0.5rem;
}

.btn-icon-only {
  width: 3rem;
  height: 3rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-icon-right i,
.btn-icon-right svg {
  margin-right: 0;
  margin-left: 0.5rem;
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: -1;
}

.btn-ripple:hover:after,
.btn-ripple:focus:after {
  width: 300%;
  height: 300%;
  opacity: 1;
  transition: all 0.8s ease;
}

.btn-3d {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(800px);
  transition: all var(--transition-fast);
}

.btn-3d:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  border-radius: inherit;
  transform: translateZ(-10px);
  transition: all var(--transition-fast);
}

.btn-3d:hover {
  transform: perspective(800px) translateY(-5px);
}

.btn-3d:hover:before {
  transform: translateZ(-20px);
}

.btn-glow {
  position: relative;
  z-index: 1;
}

.btn-glow:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  z-index: -2;
}

.btn-glow:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  z-index: -1;
  opacity: 0;
  transition: all var(--transition-fast);
}

.btn-glow:hover:after {
  opacity: 1;
  filter: blur(10px);
  transform: scale(1.05);
}

/*-------------------------------------------------------------------
    # Header - Rediseñado con logo más grande
-------------------------------------------------------------------*/
.site-header {
  background-color: var(--light);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-fast);
  padding: 0.5rem 0;
  height: auto;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.logo {
  display: block;
  transition: all var(--transition-fast);
}

.logo img {
  max-height: 120px; /* Reducido para mejor visualización */
  transition: all var(--transition-fast);
}

.scrolled .logo img {
  max-height: 100px; /* Reducido para el estado scrolled */
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.main-nav {
  margin-right: 1.5rem;
}

.main-menu {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu > li {
  position: relative;
  margin-right: 0.5rem;
}

.main-menu > li:last-child {
  margin-right: 0;
}

.main-menu > li > a {
  display: block;
  padding: 1.5rem 0.75rem;
  color: var(--gray-800);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  position: relative;
}

.main-menu > li > a:before {
  content: "";
  position: absolute;
  bottom: 1.25rem;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--transition-fast);
}

.main-menu > li:hover > a:before,
.main-menu > li.active > a:before {
  transform: scaleX(1);
  transform-origin: left center;
}

.main-menu > li:hover > a,
.main-menu > li.active > a {
  color: var(--primary);
}

.main-menu > li.menu-item-has-children > a:after {
  content: "\f282";
  font-family: "bootstrap-icons";
  margin-left: 0.5rem;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.main-menu > li.menu-item-has-children:hover > a:after {
  transform: rotate(180deg);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background-color: var(--light);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 999;
  border-top: 3px solid var(--primary);
}

.main-menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  position: relative;
}

.sub-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--gray-700);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.sub-menu li a:hover {
  color: var(--primary);
  background-color: var(--gray-50);
  padding-left: 1.75rem;
}

.header-btn .btn {
  padding: 0.75rem 1.5rem;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.header-btn .btn:hover {
  box-shadow: var(--shadow);
}

.header-btn .btn:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: -1;
}

.header-btn .btn:hover:after {
  width: 300%;
  height: 300%;
  opacity: 1;
  transition: all 0.8s ease;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 20px;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--gray-800);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/*-------------------------------------------------------------------
    # Mobile Menu
-------------------------------------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100%;
  background-color: var(--light);
  z-index: 1000;
  overflow-y: auto;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-700);
  transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.mobile-menu-header .logo img {
  max-height: 120px;
}

.mobile-menu-body {
  padding: 1.5rem;
}

.mobile-nav {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.mobile-nav li {
  border-bottom: 1px solid var(--gray-200);
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav li a {
  display: block;
  padding: 1rem 0;
  color: var(--gray-800);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.mobile-nav li a:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

.mobile-nav li.menu-item-has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav li.menu-item-has-children > a i {
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.mobile-nav li.menu-item-has-children > a.active i {
  transform: rotate(180deg);
}

.mobile-nav .sub-menu {
  position: static;
  width: 100%;
  background-color: var(--gray-50);
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  display: none;
  border-top: none;
  list-style: none;
}

.mobile-nav .sub-menu li {
  border-bottom: none;
}

.mobile-nav .sub-menu li a {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  font-weight: 500;
}

.mobile-contact {
  margin-top: 2rem;
}

.mobile-contact h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.mobile-contact ul {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.mobile-contact ul li {
  display: flex;
  margin-bottom: 1rem;
}

.mobile-contact ul li i,
.mobile-contact ul li svg {
  color: var(--primary);
  margin-right: 0.75rem;
  font-size: 1.125rem;
}

.mobile-contact ul li span {
  display: block;
  color: var(--gray-700);
}

.mobile-social {
  display: flex;
  margin-top: 1.5rem;
}

.mobile-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--gray-100);
  border-radius: 50%;
  margin-right: 0.75rem;
  color: var(--gray-700);
  font-size: 1.125rem;
  transition: all var(--transition-fast);
}

.mobile-social a:hover {
  background-color: var(--primary);
  color: var(--light);
  transform: translateY(-3px);
}

.mobile-btn {
  margin-top: 2rem;
}

.mobile-btn .btn {
  position: relative;
  overflow: hidden;
}

.mobile-btn .btn:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: -1;
}

.mobile-btn .btn:hover:after {
  width: 300%;
  height: 300%;
  opacity: 1;
  transition: all 0.8s ease;
}

/*-------------------------------------------------------------------
    # Hero Banner - Estructura completamente rediseñada
-------------------------------------------------------------------*/
.hero-banner {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Barra de emergencias */
.emergency-bar {
  background-color: var(--primary);
  color: var(--light);
  padding: 0.75rem 0;
  position: relative;
  z-index: 10;
  margin-top: 100px; /* Ajustar según la altura del header */
}

.emergency-contact {
  color: var(--light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.emergency-contact:hover {
  color: rgba(255, 255, 255, 0.9);
}

.social-icons {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-icons li {
  margin-left: 1rem;
}

.social-icons a {
  color: var(--light);
  font-size: 1.125rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Contenido principal del hero */
.hero-main {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-main .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.85), rgba(0, 0, 0, 0.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: var(--light);
  padding: 2rem 0;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--light);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-buttons .btn {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Tarjetas destacadas */
.featured-cards {
  position: relative;
  margin-top: -50px;
  z-index: 2;
  padding-bottom: 30px;
}

.featured-card {
  display: block;
  background-color: var(--light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-medium);
  height: 100%;
  transform: translateY(0);
  margin-bottom: 15px;
  position: relative;
  border: 1px solid rgba(229, 43, 30, 0.1);
}

.featured-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.card-img {
  position: relative;
  height: 160px;
  overflow: hidden;
  width: 100%;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-medium);
}

.featured-card:hover .card-img img {
  transform: scale(1.1);
}

.card-content {
  padding: 1rem;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(249, 249, 249, 1));
}

.card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
  transition: all var(--transition-fast);
}

.featured-card:hover .card-content h3 {
  color: var(--primary);
}

.card-content p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

.card-content:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left center;
  transition: all var(--transition-medium);
}

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

/* Responsive styles */
@media (max-width: 1199px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .emergency-bar {
    margin-top: 90px;
  }
}

@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .emergency-bar {
    margin-top: 80px;
  }

  .hero-main {
    height: 70vh;
  }
}

@media (max-width: 767px) {
  .emergency-bar {
    margin-top: 70px;
    padding: 0.5rem 0;
  }

  .social-icons {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .emergency-contact {
    font-size: 0.875rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }

  .hero-main {
    height: 60vh;
  }

  .featured-cards {
    margin-top: -30px;
  }
}

@media (max-width: 575px) {
  .emergency-bar {
    margin-top: 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }

  .hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .hero-main {
    height: auto;
    min-height: 400px;
  }

  .card-img {
    height: 120px;
  }

  .card-content h3 {
    font-size: 0.9rem;
  }

  .card-content p {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-buttons .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

/*-------------------------------------------------------------------
    # Proyectos Destacados - Nuevo diseño mejorado
-------------------------------------------------------------------*/
.featured-projects {
  padding: 3rem 0;
  background-color: #f8f9fa;
  position: relative;
  z-index: 10;
  margin-top: -1px;
}

.project-card {
  display: block;
  background-color: var(--light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
  border: 1px solid rgba(229, 43, 30, 0.05);
  text-decoration: none;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(229, 43, 30, 0.15);
  border-color: rgba(229, 43, 30, 0.2);
}

.project-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
  opacity: 0.7;
  transition: all 0.4s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-card:hover .project-overlay {
  opacity: 0.9;
  background: linear-gradient(to top, rgba(229, 43, 30, 0.7) 0%, rgba(0, 0, 0, 0) 70%);
}

.project-content {
  padding: 1.5rem;
  position: relative;
  background: #ffffff;
  transition: all 0.3s ease;
}

.project-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
  transition: all 0.3s ease;
}

.project-content p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0;
  transition: all 0.3s ease;
}

.project-link {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  background-color: rgba(229, 43, 30, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.project-card:hover .project-link {
  opacity: 1;
  transform: translateX(0);
}

.project-card:hover .project-content h3 {
  color: var(--primary);
}

.project-card:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.project-card:hover:after {
  transform: scaleX(1);
}

/* Responsive styles */
@media (max-width: 991px) {
  .project-img {
    height: 180px;
  }

  .project-content h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  .featured-projects {
    padding: 2rem 0;
  }

  .project-card {
    margin-bottom: 1rem;
  }

  .project-img {
    height: 160px;
  }
}

@media (max-width: 575px) {
  .project-img {
    height: 140px;
  }

  .project-content {
    padding: 1rem;
  }

  .project-content h3 {
    font-size: 1rem;
  }

  .project-content p {
    font-size: 0.8rem;
  }

  .project-link {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    bottom: 1rem;
    right: 1rem;
  }
}
