/* Optima font family */
@font-face {
  font-family: "Optima";
  src: url("fonts/Optima_Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Optima";
  src: url("fonts/OPTIMA.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Optima";
  src: url("fonts/OPTIMA_B.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Optima";
  src: url("fonts/Optima_Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

/* Seravek font family */
@font-face {
  font-family: "Seravek";
  src: url("fonts/Seravek_Basic.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Seravek";
  src: url("fonts/Seravek_Basic_Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Seravek";
  src: url("fonts/Seravek_Basic_Bold_Italic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: "Seravek";
  src: url("fonts/Seravek_Basic_ExtraLight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: "Seravek";
  src: url("fonts/Seravek_Basic_ExtraLight_Italic.otf") format("opentype");
  font-weight: 200;
  font-style: italic;
}
@font-face {
  font-family: "Seravek";
  src: url("fonts/Seravek_Basic_Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Seravek";
  src: url("fonts/Seravek_Basic_Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Seravek";
  src: url("fonts/Seravek_Basic_Light_Italic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: "Seravek";
  src: url("fonts/Seravek_Basic_Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Seravek";
  src: url("fonts/Seravek_Basic_Medium_Italic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
}

/* Variables CSS para colores Togasa */
:root {
  --primary-color: #214151;
  --secondary-color: #19403e;
  --accent-color: #bca893;
  --neutral-color: #e3dbd2;
  --text-primary: #19403e;
  --text-light: #e3dbd2;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Seravek", sans-serif !important;
  color: var(--text-primary);
  line-height: 1.6;
}

.font-headline {
  font-family: "Optima", serif;
}

.font-body {
  font-family: "Seravek", sans-serif!important;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Optima", serif;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Párrafos */
p {
  font-family: "Seravek", sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

/* Apply animations */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slideInFromRight 0.8s ease-out;
}

.animate-slide-in-left {
  animation: slideInFromLeft 0.8s ease-out;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(25, 64, 62, 0.15);
}

/* Smooth transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease,
    border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Custom scrollbar con colores Togasa */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Custom button styles */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-family: "Optima", serif;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(25, 64, 62, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-family: "Optima", serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Hero section styling */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(25, 64, 62, 0.8) 0%,
    rgba(33, 65, 81, 0.6) 100%
  );
}

/* Cortes angulares - Nueva estética Togasa */
.angular-cut-tl {
  clip-path: polygon(15px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 15px);
}

.angular-cut-tr {
  clip-path: polygon(
    0% 0%,
    calc(100% - 15px) 0%,
    100% 15px,
    100% 100%,
    0% 100%
  );
}

.angular-cut-bl {
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    0% 100%
  );
}

.angular-cut-br {
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    0% 100%
  );
}

.angular-cut-corners {
  clip-path: polygon(
    15px 0%,
    calc(100% - 15px) 0%,
    100% 15px,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    15px 100%,
    0% calc(100% - 15px),
    0% 15px
  );
}

.angular-cut-corners-lg {
  clip-path: polygon(
    25px 0%,
    calc(100% - 25px) 0%,
    100% 25px,
    100% calc(100% - 25px),
    calc(100% - 25px) 100%,
    25px 100%,
    0% calc(100% - 25px),
    0% 25px
  );
}

.angular-cut-asymmetric {
  clip-path: polygon(
    20px 0%,
    calc(100% - 10px) 0%,
    100% 10px,
    100% calc(100% - 20px),
    calc(100% - 10px) 100%,
    10px 100%,
    0% calc(100% - 10px),
    0% 20px
  );
}

/* Cards styling con cortes angulares */
.card {
  background: white;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(25, 64, 62, 0.1);
  border: 1px solid var(--neutral-color);
  transition: all 0.3s ease;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  clip-path: polygon(
    15px 0%,
    calc(100% - 15px) 0%,
    100% 15px,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    15px 100%,
    0% calc(100% - 15px),
    0% 15px
  );
}

.card:hover::before {
  opacity: 0.05;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(25, 64, 62, 0.15);
  border-color: var(--accent-color);
}

/* Development cards */
.development-card {
  transition: all 0.3s ease;
  border: 1px solid var(--neutral-color);
  background: white;
  position: relative;
  overflow: hidden;
}

.development-card::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 30px;
  height: 30px;
  background: var(--accent-color);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.development-card:hover::after {
  opacity: 1;
}

.development-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(25, 64, 62, 0.12);
  border-color: var(--accent-color);
}

/* Services section */
.service-card {
  transition: all 0.3s ease;
  background: white;
  border: 1px solid var(--neutral-color);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 25px;
  height: 25px;
  background: var(--primary-color);
  clip-path: polygon(0% 0%, 0% 100%, 100% 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(25, 64, 62, 0.1);
  border-color: var(--accent-color);
}

/* Testimonials */
.testimonial-card {
  background: var(--neutral-color);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.testimonial-card::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 35px;
  height: 35px;
  background: var(--primary-color);
  clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
}

/* Footer styling */
footer {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Form styling */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--neutral-color);
  border-radius: 8px;
  font-size: 16px;
  font-family: "Seravek", sans-serif;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(25, 64, 62, 0.1);
  outline: none;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-color);
  font-family: "Optima", serif;
}

/* Mobile responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .section-padding {
    padding: 2rem 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .stat-counter {
    font-size: 2.5rem;
  }
}

/* Status badges */
.status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: "Optima", serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-desarrollo {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.status-terminado {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.status-disponible {
  background-color: #22c55e;
  color: white;
}

/* NAVBAR CUSTOMIZATION */
.bg-navbar {
  background-color: var(--primary-color) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(227, 219, 210, 0.1);
}

.bg-navbar a,
.bg-navbar .icon,
#mobile-menu.bg-navbar a {
  color: var(--text-light) !important;
  text-transform: uppercase;
  font-family: "Optima", serif;
  letter-spacing: 0.5px;
}

/* WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-float:hover {
  background-color: #22c55e;
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

/* Vibration animation for WhatsApp button */
@keyframes vibrate {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-3px, 3px);
  }
  40% {
    transform: translate(-3px, -3px);
  }
  60% {
    transform: translate(3px, 3px);
  }
  80% {
    transform: translate(3px, -3px);
  }
  100% {
    transform: translate(0);
  }
}

.vibrate {
  animation: vibrate 0.6s ease-in-out;
}

/* Notification badge */
.notification-red {
  background: #ef4444;
  color: #fff;
  width: 28px;
  height: 28px;
  position: relative;
  top: 15px;
  left: 12px;
  z-index: 1000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(1);
}

/* Modal backdrop */
.modal-backdrop {
  backdrop-filter: blur(8px);
  background: rgba(25, 64, 62, 0.5);
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hero section animations */
.hero-slide-in {
  animation: slideInFromLeft 0.8s ease-out;
}

.hero-slide-in-delay-200 {
  animation: slideInFromLeft 0.8s ease-out 0.2s both;
}

.hero-slide-in-delay-400 {
  animation: slideInFromLeft 0.8s ease-out 0.4s both;
}

.hero-slide-in-delay-600 {
  animation: slideInFromLeft 0.8s ease-out 0.6s both;
}

/* Section styling */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

/* Text utilities */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Image overlays */
.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(25, 64, 62, 0.3) 0%,
    rgba(33, 65, 81, 0.2) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
  opacity: 1;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid #000;
  }
}

/* Custom utilities for Togasa brand */
.bg-primary {
  background-color: var(--primary-color) !important;
}

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

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

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

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

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

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

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

/* Border utilities */
.border-primary {
  border-color: var(--primary-color) !important;
}

.border-accent {
  border-color: var(--accent-color) !important;
}

#inicio {
  clip-path: polygon(
    88% 100%,
    88% 91%,
    92% 91%,
    92% 79%,
    82% 79%,
    82% 64%,
    92% 64%,
    92% 23%,
    97% 23%,
    97% 54%,
    100% 54%,
    100% 0%,
    0% 0%,
    0% 100%,
    70% 100%,
    70% 80%,
    82% 80%,
    82% 100%
  );
}

.diagonal-cut {
  clip-path: polygon(
  78% 0%,
  78% 9%,
  83% 9%,
  83% 21%,
  72% 21%,
  72% 36%,
  83% 36%,
  83% 77%,
  92% 77%,
  92% 46%,
  100% 46%,
  100% 100%,
  0% 100%,
  0% 0%,
  60% 0%,
  60% 20%,
  72% 20%,
  72% 0%
);
}


.diagonal-cut-2 {
clip-path: polygon(
  0% 100%,
  0% 0%,
  62% 0%,
  62% 15%,
  74% 15%,
  74% 0%,
  85% 0%,
  85% 25%,
  59% 25%,
  59% 35%,
  78% 35%,
  78% 52%,
  91% 52%,
  91% 87%,
  100% 87%,
  100% 100%
);
}


@media (max-width: 500px) {
  .diagonal-cut,
  .diagonal-cut-2,
  #inicio {
    clip-path: initial;
  }
}
