:root {
  --primary: #1e2a46;
  --white: #ffffff;
  --light-gray: #f4f6f8;
  --text: #333;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* NAVBAR */

header {
  position: fixed;
  width: 100%;
  background: var(--primary);
  color: var(--white);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.logo img{
  height: 65px; /* usar entre 55-65px */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* HERO */

.hero {
  height: 100vh;
  background: url("assets/fondo\ logo.png") center/cover fixed no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--white);
  text-align: center;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(30, 42, 70, 0.85);
}

.hero-content {
  position: relative;
  max-width: 700px;
}

.hero-logo {
  width: 600px; /* ajustá según cómo lo veas */
  max-width: 90%;
  margin-top: 100px;
  margin-bottom: 200px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hero-content p {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
  padding: 12px 30px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* SECTIONS */

section {
  padding: 100px 0;
}

.section-gray {
  background: var(--light-gray);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
}

.about-text {
  max-width: 800px;
  margin: 16px auto 16px auto;
  text-align: center;
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.service-card {
  background: var(--white);
  padding: 40px;
  border: 1px solid #e0e0e0;
  transition: 0.3s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card .icon {
  margin-bottom: 20px;
}

.service-card .icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
  transition: 0.3s;
  opacity: 0.8;
}

.service-card:hover .icon svg {
  transform: scale(1.1);
  opacity: 1;
}
/* TEAM SECTION */

#equipo {
  padding: 100px 0;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.team-card {
  text-align: center;
  max-width: 300px;
  overflow: hidden;
}

.team-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

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

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

.team-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* CONTACT */

.contact-form {
  max-width: 600px;
  margin: 40px auto 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
}

button {
  border: none;
  cursor: pointer;
}

/* CONTACT 2 COLUMNS */

.contact-wrapper {
  display: flex;
  gap: 80px;
  margin-top: 60px;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 25px;
}

.contact-info p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.map-container {
  margin-top: 30px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-form-container {
  flex: 1;
}

.contact-form-container h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.contact-text {
  margin-bottom: 25px;
  line-height: 1.6;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  font-family: inherit;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.form-success{
  display:none;
  margin-top:20px;
  color:#1e2a46;
  font-weight:500;
}

/* FOOTER */

footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 15px 20px;
}

.footer-logo img{
  height:80px;
  margin-bottom:15px;
}

footer p {
  font-size: 14px;
  letter-spacing: 1px;
}

/* FLOATING SOCIAL BUTTONS */

.social-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: row; /* uno al lado del otro */
  gap: 15px;
  z-index: 999;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Estado oculto elegante */
.social-floating.hidden {
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
}

.social-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.social-btn svg {
  width: 28px;
  height: 28px;
}

/* WhatsApp color oficial */
.whatsapp {
  background: #25D366;
}

/* Instagram degradado oficial */
.instagram {
  background: radial-gradient(circle at 30% 107%, 
      #fdf497 0%, 
      #fdf497 5%, 
      #fd5949 45%, 
      #d6249f 60%, 
      #285AEB 90%);
}

/* Hover elegante */
.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

/* SCROLL ANIMATION */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* NAVBAR SCROLL EFFECT */

header.scrolled {
  background: rgba(30, 42, 70, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.3s ease;
}

/* RESPONSIVE */
@media (max-width: 1024px) {

  .hero {
    /* usar una imagen existente y ajustar foco en mobile */
    background-image: url("assets/fondo\ logo\ mobile.png");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll; /* evita problemas con fixed en móviles */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    text-align: center;
  }

}

@media (max-width: 768px) {

  .nav-links {
    position: absolute;
    right: 0;
    top: 70px;
    background: var(--primary);
    flex-direction: column;
    width: 100%;
    text-align: center;
    display: none;
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

}

@media (max-width: 900px) {

  .contact-wrapper {
    flex-direction: column;
    gap: 50px;
  }

}