/* ===== VARIABLES Y RESET ===== */
:root {
  --primary-color: #4a6bff;
  --secondary-color: #00d4ff;
  --dark-bg: #121212;
  --card-bg: rgba(30, 30, 30, 0.7);
  --text-color: #e0e0e0;
  --border-color: #333;
  --footer-bg: #0a0a0a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* ===== ANIMACIONES ===== */
@keyframes bg-animation {
  0% { transform: translate(0, 0) }
  10% { transform: translate(-5%, -5%) }
  20% { transform: translate(-10%, 5%) }
  30% { transform: translate(5%, -10%) }
  40% { transform: translate(-5%, 15%) }
  50% { transform: translate(-10%, 5%) }
  60% { transform: translate(15%, 0) }
  70% { transform: translate(0, 10%) }
  80% { transform: translate(-15%, 0) }
  90% { transform: translate(10%, 5%) }
  100% { transform: translate(5%, 0) }
}

@keyframes gradientShift {
  0% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}

@keyframes escribiendo {
  from { width: 0 }
}

@keyframes parpadeo-cursor {
  50% { opacity: 0 }
}

/* ===== ELEMENTOS COMUNES ===== */
.bg {
  position: fixed;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200vh;
  background: transparent url('http://assets.iceable.com/img/noise-transparent.png') repeat 0 0;
  background-repeat: repeat;
  animation: bg-animation .2s infinite;
  opacity: .9;
  visibility: visible;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.center-text-serv {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.ejemplos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-transform: uppercase;
}

.btn:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  box-shadow: 0 5px 15px rgba(74, 107, 255, 0.4);
}

.btn-filled {
  background-color: var(--primary-color);
  color: var(--dark-bg);
}

.btn-filled:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
  align-items: space-between;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: rgba(18, 18, 18, 0.9);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--primary-color);
  backdrop-filter: blur(10px);
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.navbar .logo::before {
  content: ">";
  margin-right: 8px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 500;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    linear-gradient(45deg, #1a1a2e, #16213e, #0f3460, #533483);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin-bottom: 3rem;
}

.cursor {
  animation: 0.6s parpadeo-cursor infinite;
}

/* ===== ABOUT SECTION ===== */
.about-content {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.about-text {
    text-align: center;
  flex: 1;
  background-color: var(--card-bg);
  padding: 2rem;
  border-left: 3px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  
}

.about-text h4 {
  color: #4a6bff;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.service-card {
  background-color: var(--card-bg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(74, 107, 255, 0.2);
}

.service-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* ===== FOUNDERS SECTION ===== */
.founder-card {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 5rem;
  background-color: var(--card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.founder-card:nth-child(even) {
  flex-direction: row-reverse;
}

.founder-image {
  flex: 1 1 300px;
  min-height: 300px;
  max-height: 500px;
  overflow: hidden;
  width: 100%;
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.founder-card:hover .founder-image img {
  transform: scale(1.05);
}

.founder-info {
  flex: 2 1 400px;
  padding: 3rem;
}

.founder-name {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

/* ===== CONTACT SECTION ===== */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  padding: 120px 5% 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-card {
  background-color: rgba(30, 30, 30, 0.7);
  padding: 30px;
  margin-bottom: 30px;
  border-left: 3px solid #4a6bff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #4a6bff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 5px;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.contact-image:hover img {
  transform: scale(1.05);
}

.form-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #4a6bff;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(50, 50, 50, 0.7);
  border: 1px solid #444;
  color: #e0e0e0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #4a6bff;
  box-shadow: 0 0 0 2px rgba(74, 107, 255, 0.3);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ===== LEGAL SECTION ===== */
.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 50px;
}

.legal-section {
  background-color: rgba(30, 30, 30, 0.7);
  padding: 30px;
  margin-bottom: 30px;
  border-left: 3px solid #4a6bff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.legal-section h2 {
  color: #4a6bff;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.legal-section h3 {
  color: #00d4ff;
  margin: 25px 0 15px;
  font-size: 1.4rem;
}

.legal-section p, 
.legal-section li {
  margin-bottom: 15px;
  line-height: 1.7;
}

.legal-section ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.last-updated {
  text-align: right;
  color: #7f8c8d;
  font-style: italic;
  margin-bottom: 30px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--footer-bg);
  padding: 3rem 5%;
  border-top: 1px solid var(--primary-color);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-links,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a,
.legal-links a {
  position: relative;
}

.footer-links a::after,
.legal-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -3px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-links a:hover::after,
.legal-links a:hover::after {
  width: 100%;
}

.footer-links a:hover,
.legal-links a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .navbar {
    padding: 15px 5%;
  }

  .section {
    padding: 5rem 0;
  }

  .founder-image {
    min-height: 350px;
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--dark-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .about-content {
    flex-direction: column;
  }

  .founder-card,
  .founder-card:nth-child(even) {
    flex-direction: column;
    margin-bottom: 3rem;
  }

  .founder-image {
    min-height: 300px;
    max-height: 350px;
  }

  .founder-info {
    padding: 1.5rem;
  }

  .founder-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .founder-info p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .section-title::after {
    width: 60px;
    height: 2px;
    bottom: -0.5rem;
  }

  .legal-container {
    padding: 80px 15px 30px;
  }

  .legal-section {
    padding: 20px;
  }

  .contact-container {
    flex-direction: column;
  }

  .contact-info {
    order: 2;
  }

  .contact-form {
    order: 1;
  }

  .service-card.contact-service {
    position: relative;
    overflow: hidden;
  }

  .service-card.contact-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 107, 255, 0.1) 0%, transparent 100%);
  }

  .service-card.contact-service .service-icon {
    color: #4a6bff;
    font-size: 3rem;
  }

  .service-card.contact-service .contact-details {
    margin: 20px 0;
    font-size: 1.1rem;
  }

  .service-card.contact-service .contact-details i {
    color: #4a6bff;
    margin-right: 8px;
  }

  .service-card.contact-service .btn {
    margin-top: 15px;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .service-card,
  .contact-card {
    padding: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links,
  .legal-links {
    justify-content: center;
  }

  .founder-image {
    min-height: 250px;
    max-height: 300px;
  }

  .founder-info {
    padding: 1.2rem;
  }

  .founder-name {
    font-size: 1.3rem;
  }

  .founder-info p {
    font-size: 0.9rem;
  }

  .navbar {
    padding: 15px 1.5rem;
  }

  .nav-links {
    width: 100%;
    padding-top: 80px;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (min-width: 1600px) {
  .founder-image {
    max-height: 600px;
  }
}

/* Mejorar la legibilidad del texto */
.founder-info p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}