/*
Theme Name: EGM Theme
Author: Antigravity
Description: Tema moderno y limpio para EGM Servicios Integrales
Version: 1.1
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --primary-color: #db0011; /* Red from logo */
  --primary-hover: #b3000e;
  --secondary-color: #37454c; /* Dark slate gray from logo */
  --secondary-hover: #263136;
  --dark-text: #1e293b;
  --light-text: #64748b;
  --bg-color: #f1f5f9; /* Gris muy claro */
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-text);
  background-color: var(--bg-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

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

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

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

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Header */
.site-header {
  background-color: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.site-branding img {
  max-height: 60px;
  width: auto;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-navigation a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2226 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Stats Section */
.stats-section {
  background-color: var(--secondary-color);
  padding: 40px 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat-box h3 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-box p {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Online Workspace (Upload) */
.online-workspace {
  padding: 80px 0;
  margin-top: -50px;
}

.upload-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  border-top: 4px solid var(--primary-color);
}

.drop-zone {
  border: 2px dashed var(--secondary-color);
  border-radius: 8px;
  padding: 40px 20px;
  background-color: #f8fafc;
  margin: 20px 0;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.drop-zone:hover {
  background-color: #f1f5f9;
  border-color: var(--primary-color);
}

.drop-zone-text {
  color: var(--secondary-color);
  font-weight: 600;
}

.drop-zone-input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-form input[type="email"], 
.file-upload-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
}

/* Calculator Styles */
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.file-upload-form input[type="number"], 
.file-upload-form select, 
.file-upload-form input[type="text"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

.file-upload-form input:focus, 
.file-upload-form select:focus, 
.file-upload-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(219, 0, 17, 0.1);
}

.factura-grid {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  text-align: left;
  border: 1px solid var(--border-color);
}

.factura-grid input[type="text"] {
  margin-bottom: 0;
}

.factura-grid.active {
  display: grid;
}

.planes-table-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}

.planes-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.planes-table th, .planes-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.planes-table th {
  background-color: #f8fafc;
  font-weight: 600;
  color: var(--secondary-color);
}

.planes-table tr:last-child td {
  border-bottom: none;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.add-item-btn {
  margin-top: 15px;
  margin-bottom: 25px;
}

/* Services Section */
.services-section {
  padding: 80px 0;
}

.bg-light {
  background-color: #f1f5f9;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--secondary-color);
}

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

.service-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border-bottom: 4px solid var(--secondary-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.services-section#imprenta .service-card {
  border-bottom-color: var(--primary-color);
}

.services-section#imprenta .service-card h3 {
  color: var(--primary-color);
}

/* Footer */
/* Internal Pages */
.internal-page .page-header {
  background: var(--secondary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.internal-page .page-header h1 {
  color: white;
  margin-bottom: 10px;
}

.internal-page .content-section {
  padding: 60px 0;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .two-columns {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  background-color: var(--secondary-color);
  color: #cbd5e1;
  padding: 40px 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
    gap: 15px;
  }
}
